This page shows how every prayer time on this site is calculated: the inputs, the parameters of each method, the formulas, a worked example for today, the sources, the measured accuracy and the known limits.

Worked example: New York City, NY, today. Every city page shows the same block for its own coordinates and date.

How these times are calculated (method, formulas, worked example, sources)

1. Inputs

PlaceNew York City, NY
Latitude, longitude40.7143, -74.0060
Date2026-11-18
Time zoneAmerica/New_York (EST, UTC-05:00)
Elevationnot used (sea-level horizon)

2. Method parameters

MethodIslamic Society of North America (ISNA)
Fajr angle15.0°
Isha15.0°
AsrStandard (shadow factor 1)
High-latitude rulenot needed on this date
Adjustmentsnone
Roundingto the nearest minute

3. Formulas

  1. D = JD − 2451545.0
  2. g = 357.529 + 0.98560028 D ; q = 280.459 + 0.98564736 D
  3. L = q + 1.915 sin g + 0.020 sin 2g ; e = 23.439 − 0.00000036 D
  4. RA = atan2(cos e · sin L, cos L) / 15 ; δ = asin(sin e · sin L)
  5. EqT = q/15 − RA
  6. Dhuhr (local mean solar time) = 12 − EqT ; clock time = Dhuhr − λ/15 + UTC offset
  7. T(a) = (1/15) · acos[(sin a − sin φ · sin δ) / (cos φ · cos δ)]
  8. Sunrise = Dhuhr − T(−0.833°) ; Maghrib = Dhuhr + T(−0.833°)
  9. Fajr = Dhuhr − T(−Fajr angle) ; Isha = Dhuhr + T(−Isha angle)
  10. Asr = Dhuhr + T(a) with a = arccot(s + tan|φ − δ(noon)|), s = 1 or 2
  11. 0.833° = 0.567° refraction + 0.2667° solar semi-diameter

φ is latitude, λ longitude (east positive), δ the Sun's declination. The Sun's position is evaluated at each event's own time and the calculation is iterated twice. Clock times come from the IANA time-zone rules, so daylight saving time is always applied correctly.

4. Worked example for 2026-11-18

Sun at solar noon:

JD (0h UT)2461362.5
D9818.1953
g314.3450°
q237.7373°
L236.3478°
e23.43547°
RA15.60244 h
δ-19.33345°
EqT14.803 min
PrayerδaT(a)Solar timeUTCClock time
Fajr-19.2721°-15.000°6.2325 h05:31:1110:27:1305:27
Sunrise-19.2851°-0.833°4.9128 h06:50:2311:46:2406:46
Dhuhr-19.3334°——11:45:1216:41:1311:41
Asr-19.3586°20.081°2.5674 h14:19:1619:15:1714:15
Maghrib-19.3815°-0.833°4.9064 h16:39:3821:35:3916:36
Isha-19.3944°-15.000°6.2257 h17:58:4822:54:4917:55

5. Measured accuracy

The engine is tested against an independent implementation (adhan-js 4.4.6) on 377 cases across 15 US cities and 13 dates, including daylight-saving transition days and Fairbanks, Alaska. The largest difference measured is 59.9 seconds.

Exception: in 5 Alaskan winter cases the Sun barely climbs above the Asr altitude, so Asr becomes very sensitive and differed by up to 4.2 minutes. Pages flag such dates.

6. Limits

  • These are astronomical calculations, not a religious ruling. Mosques publish their own iqama times and may use another method or add a few minutes of caution; follow your local mosque.
  • Elevation and local horizon (mountains, buildings) are not taken into account.

7. Method reference

MethodFajrIsha
Islamic Society of North America (ISNA)15.0°15.0°
Muslim World League (MWL)18.0°17.0°
Egyptian General Authority of Survey19.5°17.5°
University of Islamic Sciences, Karachi18.0°18.0°
Umm al-Qura University, Makkah18.5°90 min after Maghrib (120 in Ramadan)

8. Sources

Methodology v1.0, reviewed 2026-10 · engine 1.0. Methodology and changelog

Changelog

  • Methodology v1.0 (2026-10): first published version. Sun position evaluated at each prayer's own time; Asr threshold from the noon declination; measured accuracy published.