🕌 Prayer Times Calculator

Muhammad Yasir Yasin
By Muhammad Yasir Yasin · Updated 27 Nov 2026 Founder · 20 Year+ Telecom + IT Expert
Muhammad Yasir Yasin

Muhammad Yasir Yasin

Founder, metacalculator.org

Muhammad Yasir Yasin is a Telecom + IT expert from Pakistan with 20+ years of proven experience — the career documented on his LinkedIn. He has been in pure IT since 1998, and works as a crypto consultant & trader since 2016. He is the founder of metacalculator.org, seotools.metacalculator.org (SEO Tools) and metatrendonline.com (Digital Products Market Place): free tools built to give clear, checked answers, with no sign-ups and no paywalls.

Every calculator here is built from the published formula, tested by hand, and explained in plain words.

Work out the day's prayer times for any city in Pakistan — or anywhere on Earth — from the position of the sun: Fajr, Sunrise, Dhuhr, Asr, Maghrib and Isha, with the calculation method and Asr school you follow.

UTChrs
Result

Your prayer times will appear here. Choose your city and press Calculate.

The Sun Figures Behind These Times

The figures the calculator used for your date and place — the same numbers that produce the times above.

FigureValue
Press Calculate to see the sun figures for your date.

Prayer times are set by the sun. Fajr begins at dawn, Dhuhr just after the sun passes its highest point, Asr when a shadow reaches a set length, Maghrib at sunset and Isha when the evening twilight has gone. Because the sun's path changes with the date and the place, every city has its own timetable — and it shifts a little every day.

Choose one of the Pakistani cities built in, or enter any latitude and longitude as a custom location. Pick the calculation method your mosque or community follows — the default, the University of Islamic Sciences, Karachi method, is the one most Pakistani timetables use — and your school for Asr. The times are worked out with the standard solar formulas behind most published timetables.

How to use this calculator

Choose your city, check the date and method, and press Calculate to see the day's six times.

  1. Choose your city from the list — Karachi, Lahore, Islamabad and seven more are built in with their exact coordinates. For anywhere else, choose Custom location and type the latitude and longitude.
  2. Check the date — it starts on today — and the time zone, which is UTC+5 anywhere in Pakistan.
  3. Pick the calculation method (the Karachi method is the default) and the Asr school — Hanafi is the default in Pakistan; the Standard setting follows the Shafi'i, Maliki and Hanbali schools.
  4. Press Calculate to see all six times in 24-hour form with the 12-hour form in brackets, and the sun figures used underneath.

How the times are calculated

Every prayer time is the moment the sun reaches a particular angle for your location. The calculator first works out the sun's position for your date: its declination (how far north or south of the equator it stands, between +23.44° and −23.44° over the year) and the equation of time (the gap between clock time and sun time, up to about 16 minutes either way). From those two numbers everything else follows.

Dhuhr is solar noon — the moment the sun crosses your meridian — converted to clock time:

Dhuhr = 12 + time zone − (longitude ÷ 15) − equation of time

Fajr and Isha are twilight times: each begins when the sun is a set number of degrees below the horizon — the depression angle fixed by the calculation method (18° for both under the Karachi method). Sunrise and Maghrib use the moment the sun's upper edge crosses the horizon, an angle of 0.833°, which allows for the sun's radius and the bending of its light in the atmosphere. Asr is found from shadows, as the next section explains. The same formulas are used by the PrayTimes library and most timetable publishers, so calculated times agree with printed timetables to the minute in most places.

Calculation methods

Methods differ only in the twilight angles they use for Fajr and Isha. Choose the one your mosque or community follows — across Pakistan that is almost always the University of Islamic Sciences, Karachi method, which is the default here.

MethodFajr angleIshaCommonly used in
University of Islamic Sciences, Karachi18°18°Pakistan, Bangladesh, India and much of South Asia
Muslim World League18°17°Europe and much of the world
ISNA (Islamic Society of North America)15°15°The United States and Canada
Egyptian General Authority of Survey19.5°17.5°Egypt and parts of Africa and the Middle East
Umm al-Qura University, Makkah18.5°90 minutes after MaghribSaudi Arabia

Smaller angles mean later Fajr and earlier Isha: switching Karachi from the Karachi method to ISNA on 27 November 2026 moves Fajr from 05:36 to 05:50 and Isha from 19:02 to 18:49, while the other four times do not move at all.

Asr: the Hanafi and Shafi'i shadow rules

Asr begins when the shadow of an object reaches a set length, on top of the shadow it already had at solar noon. In the Standard rule — followed by the Shafi'i, Maliki and Hanbali schools — Asr starts when the shadow equals the object's own height plus its noon shadow (shadow factor 1). In the Hanafi rule the shadow must reach twice the object's height plus its noon shadow (shadow factor 2), so Hanafi Asr is always later. The calculator turns the factor into a sun angle with the formula angle = arccot(factor + tan|latitude − declination|), then finds the time the sun reaches that angle.

The difference is not small. In Karachi on 27 November 2026, Standard Asr is 15:22 and Hanafi Asr is 16:06 — 44 minutes apart, from exactly the same sun. Most of Pakistan follows the Hanafi school, so Hanafi is the default here; nothing else on the page changes when you switch.

Why prayer times change every day

Two things move through the year. The sun's declination swings between +23.44° in June and −23.44° in December, making days long in summer and short in winter — in Karachi the day lasts about 13 hours 41 minutes at the June solstice and only about 10 hours 36 minutes at the December solstice. And the equation of time drifts as the Earth's orbit speeds up and slows down, shifting solar noon itself by minutes across the year. Fajr and Isha, which hang on twilight, move the most; Dhuhr, tied to the meridian crossing, moves the least. That is why a printed monthly timetable is a page of slightly different rows — and why this calculator asks for the date, not just the city.

At very high latitudes there are summer weeks when the twilight never fully ends and the angle for Fajr or Isha is never reached. For those places and dates this calculator falls back to the standard remedy — the prayer's share of the night, the method's angle divided by 60 of the night — and says so in a note under the results.

Why your mosque's time may differ by a few minutes

A calculated time is the astronomical beginning of the prayer. A mosque timetable is a working schedule built on top of it, and the two often differ by a few minutes on purpose. Mosques add ihtiyat — precautionary minutes — especially before Fajr (so nobody eats after dawn in Ramadan) and after Maghrib; many round every time to the nearest five minutes so the timetable is easy to read; and the time printed for a prayer may be the jamaat (congregation) time, some minutes after the beginning time this calculator shows. Different coordinates for the same city — centre versus outskirts — shift times by a minute or so as well. None of this means one timetable is wrong: when your local mosque announces its times, follow those; use this calculator for planning, travel and places whose timetable you do not have.

Sources & References

  • PrayTimes, Prayer Times Calculation — the solar-position method, depression angles and shadow rule this calculator implements.
  • IslamicFinder-style published timetables for Karachi were used to check this page: the times for 27 November 2026 at islam.ulkaa.com and prayertime.info (University of Islamic Sciences, Karachi method, Hanafi Asr) match this calculator exactly: Fajr 05:36, Sunrise 06:57, Dhuhr 12:20, Asr 16:06, Maghrib 17:42, Isha 19:02.

Related calculators

Frequently asked questions

What time is Fajr in Karachi today?

It changes a little every day. On 27 November 2026, Fajr in Karachi is 05:36 by the University of Islamic Sciences, Karachi method. Choose Karachi, set the date you want and press Calculate to see Fajr — and the other five times — for any day of the year.

Why do prayer times change every day?

Because the sun's path changes. Its declination swings between +23.44° and −23.44° over the year, lengthening and shortening the day, and the equation of time shifts solar noon by minutes from week to week. Fajr and Isha move the most, Dhuhr the least.

What is the difference between Hanafi and Shafi'i Asr?

Both are shadow rules. Standard Asr — the Shafi'i, Maliki and Hanbali rule — begins when an object's shadow equals its height plus its noon shadow. Hanafi Asr waits until the shadow is twice the height plus the noon shadow, so it is later: in Karachi on 27 November 2026, Standard Asr is 15:22 and Hanafi Asr is 16:06.

Which calculation method should I choose?

The one your mosque or community follows. In Pakistan that is almost always the University of Islamic Sciences, Karachi method (Fajr 18°, Isha 18°), which is the default here. The Muslim World League method is common in Europe, ISNA in North America and Umm al-Qura in Saudi Arabia.

Why are these times a few minutes different from my mosque's timetable?

Mosques build a working schedule on top of the calculated beginning times: they add precautionary minutes (ihtiyat), often round to the nearest five minutes, and may print the jamaat time rather than the beginning time. A minute or two also depends on the exact coordinates used. Follow your mosque's announced times when they differ.

How does this calculator work out the times?

From the sun's position for your date and coordinates: its declination and the equation of time give solar noon (Dhuhr); Fajr and Isha are the times the sun is the method's angle below the horizon; Sunrise and Maghrib use 0.833° at the horizon; and Asr comes from the shadow rule, angle = arccot(factor + tan|latitude − declination|). It is the standard method behind most published timetables.

Can I get prayer times for a city that is not in the list?

Yes. Choose Custom location and enter the place's latitude and longitude, together with its time zone as hours from UTC. The calculator works for anywhere on Earth — including high-latitude places, where it uses the angle/60 share-of-the-night rule when twilight never fully ends and says so under the results.