Location and date
Latitude, longitude, and the calendar date identify where and when to calculate. On the website, a city search sets that city’s time zone. Daylight saving follows the selected zone and date.
HOW WE CALCULATE
Kavaná calculates solar events from the date, latitude, and longitude using the NOAA/Meeus method. Prayer times are derived using the conventions below. This page documents the website calculator; iPhone app settings may differ.
01 · INPUTS
Latitude, longitude, and the calendar date identify where and when to calculate. On the website, a city search sets that city’s time zone. Daylight saving follows the selected zone and date.
Our implementation follows the NOAA/Meeus solar method, with a second pass at the estimated event time. Sunrise and sunset use a 90.833° zenith, allowing for the sun’s apparent radius and standard refraction.
NOAA calculation reference ↗We apply the rule for each zman: a fraction of the day, a number of minutes, or a solar angle. The choice of rule is separate from the astronomical calculation.
Website calculation rules ↓AI assistants can request these calculations through the zmanim MCP server.
Zmanim are calculated by deterministic code. Rav, the app’s AI companion, does not generate the times shown in the calculator.
02 · EQUATIONS
Let φ be latitude, λ longitude (positive east), δ solar declination, E the equation of time in minutes, and Z the event’s zenith angle. H is the solar hour angle in degrees.
q = (cos Z − sin φ · sin δ) / (cos φ · cos δ)
H = arccos(q)
t_noon = 720 − 4λ − E
t_rise = t_noon − 4H
t_set = t_noon + 4H
Event times are minutes from midnight UTC. Angular inputs to trigonometric functions are converted to radians; arccos is converted back to degrees. Sunrise and sunset use Z = 90.833°. For evening 8.5° nightfall, Z = 98.5°. If q lies outside [−1, 1], that event is unavailable. Solar terms are evaluated near local noon, then recalculated at the estimated event time.
Let r be calculated sunrise and s calculated sunset. D is the elapsed daylight duration; τ is one proportional hour. One fixed minute equals 60 seconds.
D = s − r
τ_GRA = D / 12
Shema_GRA = r + 3τ_GRA
Shacharit_GRA = r + 4τ_GRA
Chatzot = r + 6τ_GRA
Mincha_Gedolah = r + 6.5τ_GRA
Mincha_Ketanah = r + 9.5τ_GRA
Plag = r + 10.75τ_GRA
For the website’s symmetric 72-minute convention, a and b are the extended day’s endpoints. This variant uses fixed clock minutes, not seasonal minutes.
a = r − 72 min
b = s + 72 min
τ_MGA = (b − a) / 12
= (D + 144 min) / 12
= τ_GRA + 12 min
Shema_MGA = a + 3τ_MGA
= r − 72 min + 3(τ_GRA + 12 min)
= Shema_GRA − 36 min
The 36-minute difference follows algebraically from this specific convention. Other MGA definitions, including angle-based and seasonal-minute variants, do not generally produce the same difference.
03 · NUMERICAL EXAMPLE
Select a city and date. The example calculates sunrise, sunset, proportional hours (sha’ot zmaniot), and Shema deadlines using the website’s engine.
Loading the worked example…
The GRA day: sunrise to sunset, divided into 12 equal parts.
Displayed values are rounded; calculations retain full precision. The example includes seconds, while the daily calculator displays whole minutes. Display precision does not indicate observational accuracy.
04 · METHODS
These are the fixed conventions used by this website calculator. In the calculator, “Show methods” also displays the rule beside each time.
| Time | Calculation rule |
|---|---|
| Dawn · Alot | 72 fixed clock minutes before sunrise. |
| Misheyakir | The sun’s center is 11.5° below the horizon in the morning. |
| Sunrise · Netz | Solar zenith 90.833° in the morning. |
| Latest Shema · GRA | Sunrise + 3 proportional hours of the sunrise-to-sunset day. |
| Latest Shema · MGA | The extended day runs from 72 fixed minutes before sunrise to 72 fixed minutes after sunset. Divide it by 12; add 3 of those hours to its beginning. |
| Latest Shacharit · GRA | Sunrise + 4 proportional hours. |
| Midday · Chatzot | The midpoint between calculated sunrise and sunset: 6 proportional hours after sunrise. |
| Mincha Gedolah | Sunrise + 6.5 proportional hours. |
| Mincha Ketanah | Sunrise + 9.5 proportional hours. |
| Plag HaMincha | Sunrise + 10.75 proportional hours. |
| Sunset · Shkiah | Solar zenith 90.833° in the evening. |
| Nightfall · Tzeit | The sun’s center is 8.5° below the horizon in the evening. |
| Shabbat candle lighting | Friday sunset − 18 minutes. Your community may use a different offset. |
| Shabbat ends · Havdalah | Saturday’s 8.5° nightfall. Other communities use different angles or a fixed number of minutes. |
GRA refers to the Vilna Gaon’s sunrise-to-sunset convention; MGA refers to Magen Avraham. “MGA” alone does not specify how dawn and the end of the day are calculated. Here it explicitly means the 72-fixed-minute variant. Its evening endpoint is separate from the 8.5° Tzeit shown above.
The app offers additional dawn and nightfall conventions, a location-specific elevation adjustment, and Shabbat candle-lighting and Havdalah settings. Review your choices in Settings. Choosing a siddur nusach is separate from choosing calculation methods; the website does not inherit your app settings.
Open the daily calculator ↗05 · COMPARISON
Compare results using the same coordinates, date, time zone, elevation, calculation convention, and rounding policy.
Please include the city or coordinates, date, time zone, method, the Kavaná time, and the calendar you compared it with.
06 · ACCURACY
Local hills, buildings, and changing atmospheric conditions can affect what you observe. This website does not model terrain or elevation. NOAA gives roughly one minute as a theoretical sunrise/sunset benchmark within ±72° latitude; that is not a measured accuracy guarantee for Kavaná or every derived zman.
At high latitudes, sunrise, sunset, or a twilight angle may be unavailable on a given date. The website labels that result unavailable instead of substituting a different rule. Ask your community for the appropriate practice in those conditions.
07 · REFERENCES
Halachic texts specify timing principles. Technical references document solar calculations and particular conventions. These references do not constitute an endorsement of Kavaná.
The Meeus basis, refraction assumptions, and accuracy limits. NOAA’s online calculator is no longer maintained. Kavaná runs its own implementation locally and does not request times from NOAA.
The morning Shema deadline. The GRA/MGA distinction concerns which endpoints define the day used for those hours. Read the discussion of those endpoints ↗
The morning prayer’s timing principle, distinct from the earlier Shema deadline.
The proportional-hour framework for afternoon prayer and Plag HaMincha.
Descriptions of solar angles, proportional hours, and variants such as MGA 72 minutes. These help compare definitions; the website’s times are computed by Kavaná’s own engine.
The exact JavaScript used by the daily calculator and the example on this page. It contains the solar equations and the rules listed above.
The implementation derives the equation of time E and solar declination δ from the Julian date JD. T measures Julian centuries from J2000. ε is corrected obliquity, L apparent solar longitude, L₀ geometric mean longitude, M mean anomaly, and e orbital eccentricity.
T = (JD − 2451545) / 36525
δ = asin(sin ε · sin L)
y = tan²(ε / 2)
E = 4 · (180 / π) · [y sin(2L₀) − 2e sin M
+ 4ey sin M cos(2L₀) − ½y² sin(4L₀)
− 1.25e² sin(2M)]Trigonometric arguments are in radians. The factor 180 / π converts the equation’s angular result to degrees; the factor 4 converts degrees to minutes of time. The date-dependent coefficients and the second event-time pass are available in the linked calculation source code.
Methods checked against the website implementation · October 18, 2026