Shabbat Candle Lighting & Havdalah Time Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

What this calculator estimates

This page estimates two widely used Shabbat-related times for a given location and date:

The calculator uses your Friday date, latitude, longitude, and time zone offset to estimate local sunset, then applies these offsets (“buffers”) to produce candle lighting and havdalah estimates.

Inputs you’ll need (and common pitfalls)

Tip: If your results look off by exactly one hour, the most common cause is a DST mismatch in the UTC offset.

How the estimate is computed (high-level)

Sunset time depends on Earth–Sun geometry and your position on Earth. At a high level, the steps are:

  1. Convert the selected date into a day-of-year value used by standard solar position approximations.
  2. Estimate the Sun’s apparent position (declination and right ascension) for that day.
  3. Compute the hour angle at sunset for the given latitude using a standard “sunset zenith” constant that approximates refraction and the Sun’s radius (often near 90.833°).
  4. Convert that to a civil clock time, then shift from UTC using your entered offset.
  5. Apply community-style offsets: candle lighting = sunset − 18 minutes, havdalah = sunset + 42 minutes (unless your implementation uses different defaults).

Core formulas (conceptual)

The key geometric step is solving for the hour angle H at which the Sun reaches a chosen zenith distance Z at your latitude φ, given the Sun’s declination δ. A common rearrangement is:

cosH = cosZ sinϕ sinδ cosϕ cosδ

Once H is known, it is converted into time (15° per hour), then adjusted for longitude and the equation-of-time approximation to obtain an estimated local sunset. The Shabbat-related times are then simple offsets from that sunset:

Interpreting the results

Worked example

Scenario: You enter a Friday date, a location near Jerusalem (latitude about 31.78, longitude about 35.21), and a UTC offset of +2 (or +3 during DST).

  1. The calculator estimates Friday sunset for that latitude/longitude and date.
  2. It computes candle lighting as sunset minus 18 minutes.
  3. It estimates Saturday sunset and computes havdalah as sunset plus 42 minutes.

If your local community publishes candle lighting at a different offset (e.g., 20, 30, or 40 minutes before sunset) or uses a different definition for havdalah/nightfall, you should follow that schedule rather than a generic offset.

Common conventions compared

Item Common rule-of-thumb What it’s approximating Why it may differ locally
Candle lighting 18 minutes before sunset Practical “before sunset” margin City/community minhag; seasonal or municipal schedules; local rabbinic guidance
Havdalah 42 minutes after sunset Rule-of-thumb for nightfall Different definitions of tzeit (stars out); latitude/season; community practice
Sunset itself Calculated (zenith ≈ 90.833°) Accounts for refraction + Sun’s radius Elevation, atmospheric conditions, and algorithm choice can shift results slightly

Limitations and assumptions (please read)

Best practice: When in doubt, confirm with your local synagogue schedule or a trusted Jewish calendar for your community.

Method note (lightweight attribution)

The solar position and sunset estimate follow widely used civil/NOAA-style approximation steps (mean anomaly, ecliptic longitude, declination, hour angle, and time conversion). Halachic timekeeping may use different definitions and should be verified against local practice.

Twilight Buffer Challenge

Keep the mitzvah rhythm tight: gather enough minutes before sunset for candle lighting, then collect twilight stars until havdalah. Quick reactions reinforce why the 18-minute and 42-minute buffers matter.

Embed this calculator

Copy and paste the HTML below to add the Shabbat Candle Lighting & Havdalah Time Calculator (by Location) to your website.