What this tool does
This calculator shows the five daily Islamic prayer times (Fajr, Dhuhr, Asr, Maghrib and Isha, plus sunrise, which ends the Fajr window) for 20 major cities or any latitude and longitude you enter. Below the timetable, a live countdown shows how long until the next prayer, and the Qibla compass gives the compass bearing from your location to the Kaaba in Makkah (21.4225° N, 39.8263° E), with the great-circle distance.
The calculation method
Times are computed with the Muslim World League method: Fajr begins when the sun is 18° below the horizon, Isha when it is 17° below, Maghrib at apparent sunset, Dhuhr at solar noon, and Asr by the standard rule (shadow factor 1, the Shafi, Maliki and Hanbali position). No extra minute adjustments are added.
Methods vary by region and school of thought: ISNA uses 15°/15°, the Egyptian authority 19.5°/17.5°, Karachi 18°/18°, and Umm al-Qura (used in Saudi Arabia) a fixed 90-minute interval after Maghrib for Isha. Your local mosque's timetable is the final reference; expect differences of a few minutes either way.
How the Qibla bearing is found
The bearing is the initial direction of the great-circle (shortest) path from your coordinates to the Kaaba, computed with spherical trigonometry and measured clockwise from true north. The dial above rotates a needle to that bearing. Note that a handheld compass points to magnetic north, which differs from true north by the local magnetic declination, sometimes by several degrees.
Limitations
At very high latitudes the sun may never reach 18° below the horizon in summer, so Fajr and Isha cannot be computed the standard way; this tool does not apply high-latitude rules. City presets use approximate city-center coordinates. For fasting, many scholars advise stopping food a few minutes before the calculated Fajr (imsak).