Attendance Calculator

This attendance calculator shows your attendance percentage and, for a required 75% (or any other figure), how many classes you can still miss or how many you must attend in a row. For example, 28 of 40 classes is 70%, and you need the next 8 classes in a row to get back to 75%.

Processed on your device. Nothing is uploaded.

Your classes

HEC’s semester guidelines use 75% as the minimum; your university sets its own rule.

Adds a projection to the end of the semester.

Your attendance

Enter the classes held and attended to see your attendance.

How to use the attendance calculator

  1. Enter the classes held so far and the classes you attended, from your portal or attendance register.
  2. Check the required percentage. It starts at 75%; change it if your university uses another figure.
  3. Optionally enter how many classes are left this semester, to see where you can end up.
  4. Read your current percentage and either how many classes you can miss or how many you must attend in a row.

How it works

With r the required share (75% = 0.75):

  • Attendance now: attended ÷ held × 100.
  • Classes you can miss: floor(attended ÷ r − held). Missing them keeps you at or above r; one more takes you below it.
  • Classes to attend in a row: ceil((r × held − attended) ÷ (1 − r)). Each class you attend raises both numbers by one, so you catch up slowly.

Example: 28 of 40 classes is 70%. To reach 75%: (0.75 × 40 − 28) ÷ 0.25 = 8. After 8 more classes you have 36 of 48, exactly 75%.

With classes left: at the end of the semester you need ceil(r × all classes) attended. If 20 classes are left after 28 of 40, you need 45 of 60, and the best you can do is 48, so you can still miss 3 of the 20.

The arithmetic uses whole numbers, so a rule such as 80% never gives an answer that is off by one.

Why catching up takes so long

When you are short, every class you attend also adds one to the classes held. With a 75% rule, each class you attend closes the gap by only a quarter of a class. That is why 2 classes short at 28 of 40 needs 8 classes in a row, and why it pays to check early in the semester, when a few absences are still easy to make up.

Shortage, medical leave and exemptions

Each university sets its own rules for a shortage, for example whether you can still sit the final exam of that course and whether medical leave is excused. HEC’s guidelines say a student with absences may be placed on attendance probation by the dean or head of department (section 10.3). Read your university’s attendance rules, keep copies of any medical certificates, and talk to your department before the final exam, not after.

Frequently asked questions

How many classes can I miss with 75% attendance?

Divide the classes you attended by 0.75 and subtract the classes held, then round down. With 34 of 40 attended: 34 ÷ 0.75 − 40 = 5.33, so you can miss the next 5 classes and stay at 75% or above.

How many classes do I need to attend to get back to 75%?

Multiply the classes held by 0.75, subtract the classes attended, divide by 0.25 and round up. With 28 of 40 attended: (30 − 28) ÷ 0.25 = 8, so you must attend the next 8 classes in a row.

Is 75% attendance required in every Pakistani university?

HEC’s semester guidelines say each institution may set a policy for minimum attendance of 75% to complete a course (section 10.2). The exact rule, and what happens after a shortage, is in your own university’s regulations, so change the required percentage if yours is different.

Does attendance count per course or for the whole semester?

Usually per course, because each course has its own classes. Work out each course on its own. If your university counts lab and theory classes separately, enter them separately too.

What if I need 100% attendance?

Then every class counts: you can miss none, and after one absence you cannot get back to 100%. The calculator says so instead of showing an impossible number.

Are my numbers saved?

They stay in your browser and in the page address, so you can bookmark or share the link. They are saved on this device only if you tick “Remember my inputs”.

See all Student Tools →

Sources and review

Last reviewed: .