The Science of Islamic
Prayer Times
PrayCalc is an open-source Islamic prayer time calculator built on rigorous astronomical science. Its default method, DPC, computes the best Fajr and Isha times for any location on Earth.
DPC — Dynamic Prayer Calculation
Fixed methods use one twilight angle for the whole world. DPC works out the right angle for your latitude, your season, and the Earth's current distance from the Sun. It takes what every earlier method learned and folds it into a single calculation that adapts to where and when you are.
It is similar to the Moonsighting Committee method, and improved over it. DPC follows the same idea of prayer times that shift with the season, then smooths out the seasonal steps and adds an Earth-Sun distance correction. Where DPC's training data is sparse, we say so plainly.
Try the live calculator
Compute prayer times for any location and date — all 14 methods, dynamic angles, and the Hijri calendar — in your browser.
The Science
Solar Position & NREL SPA
Sub-arcsecond solar position using NREL SPA — the foundation of all prayer time calculations.
Twilight & Depression Angles
How depression angles determine Fajr and Isha — the physics of astronomical twilight.
Calculation Methods
The 14 standard Islamic calculation methods — Fajr/Isha angles, organizations, and regions.
Qibla Direction
Great-circle bearing to the Kaaba using spherical trigonometry.
Packages
pray-calc
Main prayer times engine. 14 methods, dynamic angles, TypeScript-first.
nrel-spa
Pure JS port of the NREL Solar Position Algorithm — sub-arcsecond precision.
hijri-core
Hijri ↔ Gregorian conversion. Umm al-Qura and civil algorithms.
moon-sighting
Lunar crescent visibility calculation for Hilal determination.
PrayCalc was built by Ali Camarata — an independent developer focused on Islamic technology. The underlying packages are open source and used to power praycalc.com and the Ummat super-app.