A little context. A clearer answer.
When this calculator is useful
Enter a place and date to calculate six astronomical reference instants. Compare the published angle presets and inspect how the selected rule changes unavailable twilight events. For a related calculation, try Use clock arithmetic to compare intervals separately from astronomical reference events..
What to enter
| Input | What it means | Example value |
|---|---|---|
| Local civil date | Gregorian local date from 2000-01-01 to 2099-12-31; select the real solar transit nearest local 12:00, even if an unusual longitude/offset combination puts it on an adjacent date. | Jul 1, 2026 |
| Latitude, north positive | Degrees from −89 to +89; north positive, south negative. | -6.912 ° |
| Longitude, east positive | Degrees from −180 to +180; east positive, west negative. | 107.622 ° |
| Total UTC offset, including DST | Local time minus UTC, −12 to +14 hours in steps of 0.25. Include DST yourself; the offset is fixed across adjacent nights. | 7 h |
| Published angle preset | Published depression angles: MWL 18°/17° or ISNA 15°/15° for Fajr/Isha. | MWL: Fajr 18°, Isha 17° |
| Asr shadow factor | Afternoon shadow growth above the noon shadow: 1 or 2 times the object height. | 1 × object height plus noon shadow |
| Unavailable twilight handling | Leave undefined, or use the actual adjacent-night midpoint only when the Fajr/Isha angle has no crossing. No anchors means no replacement. | Leave unavailable |
How the calculation works
- Choose the civil date, signed latitude and longitude, and the total local UTC offset including any DST.
- Select MWL 18°/17° or ISNA 15°/15°, the Asr shadow factor, and whether to replace unavailable twilight by the night midpoint.
- Read the event times, day offsets and replacement labels. Use the community’s own timetable for local practice.
sin h = sin φ sin δ + cos φ cos δ cos H; h(Asr) = atan(1 / (f + cot h₀))A worked example
Bandung, 1 July 2026: latitude −6.912°, longitude 107.622°, UTC+7, MWL, shadow factor 1 and no fallback give approximately 04:47, 06:02, 11:53, 15:15, 17:45 and 18:56. ISNA changes Fajr to 05:00 and Isha to 18:47. At Utti (60.9°, 26.933°), 19 July 2026, UTC+3, MWL twilight crossings are unavailable; the conditional midpoint option gives Fajr 01:19 and Isha 01:19 (+1), explicitly as replacements.
Example you can load
What to enterThis is a fixed example; changing the form above does not change these numbers.
Assumptions & limits
For Gregorian dates 2000–2099, latitude −89° to +89° and a flat, unobstructed sea-level horizon. Sunrise and sunset use a solar-center altitude of −0.833°. MWL uses Fajr/Isha depressions 18°/17°; ISNA uses 15°/15°. These are angle presets, not universal religious definitions or an official mosque schedule. No community safety margin, elevation, terrain, weather, iqamah or fasting ruling is included. Supply the total UTC offset including any DST; it remains fixed across the whole cycle and adjacent nights, with no automatic zone or DST-transition handling. The real solar transit nearest local 12:00 on the selected date identifies the cycle; unusual longitude/offset combinations can put even that transit on an adjacent date. An event outside that date shows a signed day offset. Midpoint replacement applies only to unavailable Fajr/Isha crossings and requires actual adjacent sunset/sunrise anchors. Defined crossings are unchanged; missing polar anchors are never invented. Asr is unavailable when noon altitude is nonpositive. Numerical precision does not imply observed timing accuracy.
Frequently asked questions
Are these the official prayer times for my community?
No. They are rounded astronomical reference instants. Dhuhr is solar transit and Maghrib is sunset with zero added margins. Communities can use observation, other angles and local adjustments. Compare the stated method with your local timetable.
What happens at high latitudes or across midnight?
Without adjustment, an absent angular crossing is unavailable. The optional rule replaces only absent Fajr with the midpoint of previous sunset and sunrise, and absent Isha with the midpoint of sunset and next sunrise. Both real anchors must exist. Polar-night Asr is unavailable if the noon Sun is not above the horizon. A suffix (+1) or (−1) means the next or previous local date.
How are the solar model, shadow factor and timezone used?
h is solar altitude, φ latitude, δ solar declination and H hour angle: sin h = sin φ sin δ + cos φ cos δ cos H. Asr altitude = atan(1/(f + cot h₀)), where f is the selected factor and h₀ the noon altitude. Times use the USNO solar-coordinate model and are rounded to the nearest minute. The shadow factor is added to the noon shadow; it is not the total shadow ratio. The entered UTC offset is fixed and already includes any DST. Changing it does not select a time zone or apply transition rules.