<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ahtasham Sifat</title>
    <description>The latest articles on DEV Community by Ahtasham Sifat (@ahtashamsifat).</description>
    <link>https://dev.to/ahtashamsifat</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4230038%2F59e5f0c8-bf7f-4a60-b16c-d79537d0c233.png</url>
      <title>DEV Community: Ahtasham Sifat</title>
      <link>https://dev.to/ahtashamsifat</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ahtashamsifat"/>
    <language>en</language>
    <item>
      <title>I built a free CGPA calculator for Pakistani students</title>
      <dc:creator>Ahtasham Sifat</dc:creator>
      <pubDate>Fri, 06 Nov 2026 09:01:58 +0000</pubDate>
      <link>https://dev.to/ahtashamsifat/i-built-a-free-cgpa-calculator-for-pakistani-students-1i93</link>
      <guid>https://dev.to/ahtashamsifat/i-built-a-free-cgpa-calculator-for-pakistani-students-1i93</guid>
      <description>&lt;p&gt;Every result season, the same scene repeats in Pakistani universities:&lt;br&gt;
students get their marks, crowd around whoever "knows the formula", and&lt;br&gt;
try to work out their CGPA on paper. Half of them get it wrong, because&lt;br&gt;
the formula is weighted — and almost nobody weights it correctly by hand.&lt;/p&gt;

&lt;p&gt;So I built the tool I wished existed: &lt;strong&gt;&lt;a href="https://thecgpacalculator.com/" rel="noopener noreferrer"&gt;The CGPA Calculator&lt;/a&gt;&lt;/strong&gt; — a free CGPA, GPA and&lt;br&gt;
percentage calculator made specifically for Pakistani university students.&lt;br&gt;
No sign-up, no ads-in-your-face, works on a cheap phone over a slow&lt;br&gt;
connection.&lt;/p&gt;

&lt;h3&gt;
  
  
  The actual math (it's simple, but easy to get wrong)
&lt;/h3&gt;

&lt;p&gt;Under the HEC 4.0 scale, each grade has fixed points:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Grade&lt;/th&gt;
&lt;th&gt;Points&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;4.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A-&lt;/td&gt;
&lt;td&gt;3.67&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;B+&lt;/td&gt;
&lt;td&gt;3.33&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;B&lt;/td&gt;
&lt;td&gt;3.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;B-&lt;/td&gt;
&lt;td&gt;2.67&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C+&lt;/td&gt;
&lt;td&gt;2.33&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C&lt;/td&gt;
&lt;td&gt;2.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C-&lt;/td&gt;
&lt;td&gt;1.67&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;D+&lt;/td&gt;
&lt;td&gt;1.33&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;D&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;F&lt;/td&gt;
&lt;td&gt;0.00&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;GPA = Σ(grade points × credit hours) ÷ Σ(credit hours)&lt;/p&gt;

&lt;p&gt;The credit-hour weighting is the whole game. A 3-credit course moves your&lt;br&gt;
GPA three times more than a 1-credit lab. The classic student mistake —&lt;br&gt;
averaging semester GPAs to get a CGPA — is wrong for the same reason:&lt;br&gt;
semesters don't all carry the same credit hours.&lt;/p&gt;

&lt;p&gt;CGPA → percentage uses the standard local conversion: percentage =&lt;br&gt;
CGPA × 9.5. The site has a &lt;a href="https://thecgpacalculator.com/cgpa-to-percentage/" rel="noopener noreferrer"&gt;dedicated converter&lt;/a&gt; because job&lt;br&gt;
and scholarship forms here still ask for percentages.&lt;/p&gt;

&lt;h3&gt;
  
  
  Design decisions that mattered more than the code
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Mobile-first, lightweight pages.&lt;/strong&gt; Most users are on Android phones
with patchy data. If the calculator isn't instant, it's useless.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No accounts, no storage.&lt;/strong&gt; Students shouldn't have to hand over
personal data to do arithmetic. Everything runs in the browser session.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;University-specific pages.&lt;/strong&gt; Grading bands differ slightly between
universities, so the site has dedicated pages for major Pakistani
universities instead of pretending one band table fits everyone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explain, don't just compute.&lt;/strong&gt; Every calculator page explains the
formula underneath it. A student who understands the math stops
fearing result day.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  What students actually use it for
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Checking their exact standing the day results drop&lt;/li&gt;
&lt;li&gt;Target-setting: "what grades do I need next semester to reach 3.5?"&lt;/li&gt;
&lt;li&gt;Scholarship and job forms that need a percentage equivalent&lt;/li&gt;
&lt;li&gt;Verifying the university's own transcript math (mistakes do happen)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're a student, it's free to use. If you're a developer, my honest&lt;br&gt;
takeaway is this: the most useful tools are often boring arithmetic&lt;br&gt;
wrapped in local knowledge — the right grading scale, the right&lt;br&gt;
conversion, the right defaults for your audience. Build for the form your&lt;br&gt;
users actually have to fill.&lt;/p&gt;

&lt;p&gt;Feedback welcome — especially from students at universities whose grading&lt;br&gt;
bands we should add next.&lt;/p&gt;

&lt;p&gt;— Ahtasham Sifat&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>showdev</category>
      <category>beginners</category>
      <category>tools</category>
    </item>
  </channel>
</rss>
