Skip to content

How the Hindu calendar adds a leap month

October 9, 2026 · Updated November 9, 2026

If your calendar app shows the same month name twice in one year, it is probably right. The Hindu calendar is lunisolar: its months follow the Moon, but its year has to stay in step with the Sun, or festivals tied to seasons would drift around the year. The fix is a leap month, the adhika masa. This post explains the rule, the rarer kshaya masa, and the places where leap months break naive code.

The mismatch

A lunar month, new moon to new moon, averages about 29.53 days. Twelve of them make about 354 days. A solar year is about 365.24 days. The lunar year therefore falls about 11 days behind the Sun each year. After roughly three years the gap is a whole month.

Purely lunar calendars let the months drift through the seasons. Lunisolar calendars, including the Hindu calendar, add an extra month from time to time to pull the lunar year back into line. Over long periods this works out to about seven extra months in every 19 years.

The rule: a month without a sankranti

The Hindu calendar decides leap months by comparing lunar months with the Sun's movement, not by a fixed cycle.

A sankranti is the instant the Sun's sidereal longitude crosses a multiple of 30°. There are twelve a year, roughly 30.4 days apart on average. A lunar month is about 29.5 days, so most lunar months contain exactly one sankranti.

The rule, using amanta months (new moon to new moon):

  1. If a lunar month contains no sankranti, it is an adhika (extra) month.
  2. If a lunar month contains two sankrantis, a month name is skipped: a kshaya (lost) month.
  3. Otherwise the month is normal and takes its name from the sankranti it contains.

Because sankrantis are about 30.4 days apart and lunar months about 29.5, every so often a whole lunar month fits between two sankrantis. That month gets no sankranti and becomes adhika.

How the leap month is named

An adhika month takes the name of the month that follows it. If the month after it is Jyeshtha, the leap month is "Adhika Jyeshtha" and the following one is "Nija Jyeshtha" (the regular Jyeshtha). Users see the name twice in a row, labeled.

Festivals normally fall in the regular (nija) month, not the adhika month. Some observances are specific to the adhika month itself. The exact handling is a festival-level rule, and any calendar product should cite its source for each one.

Under the purnimanta scheme, the month boundaries move by half a month (see amanta vs purnimanta), so how the leap month interleaves with the purnimanta names needs care. The safest approach in code is to decide adhika and kshaya on amanta months, where the rule is defined, and then derive the purnimanta labels.

Kshaya masa: the rare lost month

Kshaya masa happens when a lunar month is long enough, and the sankrantis bunched closely enough, to fit two sankrantis inside one month. The Sun moves fastest when the Earth is near perihelion in early January, so sankrantis are closest together around then. Even so, a kshaya month is rare, and it is typically accompanied by adhika months in the same year, so the year still has about the right length.

Rare cases are exactly where untested code fails. If your implementation assumes one name per month, a kshaya year will produce a duplicate or a gap. Include one in your tests.

Does location matter?

The new moon and the sankranti are both single instants, the same everywhere. So the decision "is this lunar month adhika?" does not depend on where you are, as long as the rule compares instants.

What does depend on location is the civil date on which the month starts. The first day of a month is decided by local sunrise, so the adhika month can begin on different civil dates in, say, Hyderabad and San Francisco. Your month grid must be computed for the user's city, even though the leap-month decision is global.

What leap months break in code

Month numbering

Code that maps "month 1 to 12" breaks in a leap year, which has 13 lunar months. Represent months as a name plus an adhika flag, not as an index.

from dataclasses import dataclass

@dataclass(frozen=True)
class LunarMonth:
    name: str          # e.g. "Jyeshtha"
    adhika: bool       # True for the leap month
    scheme: str        # "amanta" or "purnimanta"

"Same festival, next year"

Code that finds next year's festival by adding twelve lunar months lands a month early after a leap month. Always compute each year's festivals from their rules.

Year-over-year comparisons

A festival can fall roughly 11 days earlier in the Gregorian calendar than the year before, or roughly 19 days later after a leap month. Charts and reminders that assume a festival stays within a week of last year's date will be wrong.

Labels

A month name without its adhika flag is ambiguous in a leap year. Always show "Adhika" or "Nija" when both exist.

A checklist

  1. Detect adhika and kshaya months by counting sankrantis in each amanta lunar month.
  2. Compute sankrantis with a high-precision solar position and a stated ayanamsa.
  3. Name the adhika month after the following month, and label both.
  4. Derive purnimanta labels from the amanta result.
  5. Compute the civil start date of each month at the user's location.
  6. Test a leap year and a kshaya year explicitly.

Where TithiKit fits

The planned TithiKit API returns the lunar month under both amanta and purnimanta schemes with an adhika flag, for any location, and reports the ayanamsa used. Leap and lost months are part of the accuracy suite as edge-case tests. The API is in development; join early access to get a key when it opens.

Calendar and astronomical data for cultural and religious observance. Not advice of any kind.