How accurate are candle lighting times?

Candle-lighting and Havdalah times are derived from sunset times, which are approximated from a location (latitude, longitude) and day of year. As of August 2020, uses a sunset algorithm published by the US National Oceanic and Atmospheric Administration. The NOAA claims accuracy within 2 minutes except at extreme northern or southern latitudes.

Differences of 1-2 minutes between Hebcal and other sources publishing candle lighting times or sunset times are expected. Remember that candle lighting times can only be approximated based on location. Here are a few common reasons why you may see differences in candle lighting times:

  1. Different minhag on when to light candles. Hebcal defaults to 18 minutes before sundown for most locations (40 minutes before sundown for Jerusalem). Other sources may use 20 minutes before sundown. Hebcal gives an option to specify a different number of minutes before sunset if you don’t follow the 18-minute minhag.
  2. Slightly different sunset calculators. The sunset calculator we use on as of August 2020 uses an algorithm published by the US National Oceanic and Atmospheric Administration. Hebcal’s NOAA algorithm is implemented in JavaScript using double-precision floating point arithmetic. Other sources may use a slightly different algorithm, for example one by Jean Meeus. However, even if the other source also uses the NOAA algorithm, the implementation could differ slightly; there are many constants and opportunities to round and truncate which could result in slight differences in the final calculated sunset time for a given day and location.
  3. Slightly different latitude/longitude definitions for a given city. Since 2013, has been using lat/long definitions from, which is available under a Creative Commons license. For the USA, we purchase a commercial ZIP code database from For very large cities, the sunset at the east side of the city might be a minute earlier than the west side of the city.
  4. Deliberate rounding down (or up). Hebcal rounds candle lighting (Friday) times down to the nearest minute, and rounds Havdalah times up to the nearest minute. To be more precise, we use the floor minute for candle-lighting, and we use the standard mathematical rounding rule for Havdalah. The idea here is that it’s better to display candle-lighting time as much as 59 seconds earlier than strictly necessary, and for Havdalah it’s better to wait an additional 30 seconds to end Shabbat/yontiff.
    • For example, if the exact candle lighting time from the sunset engine (including seconds) was at 20:02:31 or even 20:02:59, Hebcal displays candle-lighting as 20:02.
    • On the other hand, if the Havdalah calculation is 21:17:29, Hebcal will display 21:17. If it were 21:17:30 through 21:17:59, Hebcal displays 21:18.

As of August 2020, options for Havdalah times have also changed. Hebcal now offers an option to use tzeit hakochavim, the point when 3 small stars are observable in the night sky with the naked eye (sun 8.5° below the horizon). This option is an excellent default for most places on the planet. We also offer the option to use a fixed number of minutes past sundown. Typically one would enter 42 min for three medium-sized stars, 50 min for three small stars, 72 min for Rabbeinu Tam, or 0 to suppress Havdalah times.

Lastly, remember that the NOAA algorithm can only approximate the candle-lighting times for your location. If you ever have any doubts about Hebcal’s times, consult your local halachic authority.

Hebcal Developer API minor updates

We’re pleased to share a couple of brief and minor updates to our collection of Developer APIs.

  1. We now recommend using HTTPS for all of our APIs. We’ve updated our documentation to reflect this. Most of our JSON APIs still support HTTP. Some of our APIs now return a 301 redirect from the HTTP version to the HTTPS version.
  2. We implemented some simplistic rate-limiting to throttle clients who are sending too many API queries. You may receive a 429 “Too Many Requests” error if your client makes more than 90 requests in a 10-second window. Remember, this is a free service; please be polite and send batch API requests slowly over a longer period of time.

First day of Chanukah on Christmas

As many have noted, the first day of Chanukah coincided with Christmas this year (December 25, 2016).

This happens approximately three times each century. Prior to this year, the most recent occurrence was in 1978, and the next time this will happen will be in 2027.

For completeness, here are the co-occurrences of the first day of Chanukah and Christmas during the past 400 years:

And here are the next two hundred years:

Users of hebcal for UNIX can verify this for themselves using a command like the following:

./hebcal --years 600 1617 | \
  grep 'Chanukah: 1 Candle' | \
  grep '^12/24' | \
  cut -c 7-10