# How the Vimshottari dasha is calculated

> Vimshottari is the most-used timing system in Vedic astrology and, unusually for astrology, it is pure arithmetic once you have the Moon's longitude. Here is the arithmetic the API does.

Source: https://astronode.dev/guides/vimshottari-dasha-calculation · Updated: 2026-11-26

## The cycle

Nine planetary periods (mahadashas) always run in the same order and add up to 120 years:

*Vimshottari order and lengths*

| Lord | Ketu | Venus | Sun | Moon | Mars | Rahu | Jupiter | Saturn | Mercury |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Years | 7 | 20 | 6 | 10 | 7 | 18 | 16 | 19 | 17 |

Each of the 27 nakshatras is ruled by one of these lords, in the same repeating order. The Moon's nakshatra at birth sets where in the cycle a person starts.

## The balance at birth

- Each nakshatra spans 13°20′ (360° / 27). Find the Moon's nakshatra and how far through it the Moon is.
- The first mahadasha belongs to that nakshatra's lord, and only the **unelapsed** fraction of it remains: `balance = (1 - fraction elapsed) x lord's years`.
- After it, the remaining lords follow in order at full length. The API returns 10 mahadashas - the partial first one and the nine that follow.

Worked example: for the sample birth the Moon is at 266.79° sidereal (Lahiri), just inside Uttara Ashadha, which starts at 266.67° and is ruled by the Sun. Less than 1% of the nakshatra has elapsed, so the Sun's 6 years become **5.94 years** - exactly what `birth_balance` reports.

[`POST /v1/dasha/vimshottari`](https://astronode.dev/capabilities/vedic/dasha-vimshottari) - start of the response:

```json
{
  "birth_balance": { "lord": "Sun", "remaining_years": 5.9448 },
  "levels": 2,
  "mahadasha": [
    { "lord": "Sun",  "start": "1973-04-24T11:55:00.000Z", "end": "1979-04-04T19:57:40.720Z", "years": 5.9448, "antardasha": [ … ] },
    { "lord": "Moon", "start": "1979-04-04T19:57:40.720Z", "end": "1989-04-04T07:57:40.720Z", "years": 10, "antardasha": [ … ] },
    { "lord": "Mars", "start": "1989-04-04T07:57:40.720Z", "end": "1996-04-04T01:57:40.720Z", "years": 7, … }
  ]
}
```

## Sub-periods and the five levels

Every period divides into nine sub-periods in the same proportions as the whole cycle, starting with its own lord: a sub-period lasts `lord's years / 120 x parent's length`. In the Moon mahadasha above, the Moon-Moon antardasha is 10/120 x 10 = **0.833 years**, then Moon-Mars 0.583 years, and so on. The API goes five levels deep:

*Dasha levels*

| `levels` | Adds | Typical length |
| --- | --- | --- |
| 1 | Mahadasha | years |
| 2 (default) | Antardasha | months to years |
| 3 | Pratyantar | weeks to months |
| 4 | Sookshma | days to weeks |
| 5 | Pran | hours to days |

Deeper levels multiply the response size by about nine each time. If you only need "what is running now", use [`POST /v1/dasha/lookup`](https://astronode.dev/capabilities/vedic/dasha-lookup) instead - it returns the active period at every level for one date. For the sample birth on 26 November 2026 that is Jupiter mahadasha (2014-2030), Moon antardasha, Sun pratyantar.

## Details that change the dates

- **Year length.** Dasha years are converted at 365.25 days. Software using 360-day or 365.2422-day years drifts by days to months over a lifetime - the most common reason two programs disagree on dates but not on lords.
- **Ayanamsa.** The balance comes from the Moon's sidereal longitude, so the ayanamsa matters: the API uses Lahiri. See [ayanamsa](https://astronode.dev/guides/ayanamsa).
- **Birth time.** Near a nakshatra boundary a small time error flips the starting lord and every date after it. See [birth time and time zones](https://astronode.dev/guides/birth-time-and-time-zones).
- **Timestamps** are ISO 8601 in UTC.

## Questions

**How long is a full Vimshottari dasha cycle?**

120 years: nine planetary periods (mahadashas) that always run in the same order.

**How is the dasha balance at birth calculated?**

From how far the Moon has moved through its nakshatra. The nakshatra lord's period is shortened by the fraction already elapsed; the API reports the result as `birth_balance`.

**How many dasha levels does the API return?**

Five. Every period divides into nine sub-periods in the same proportions as the whole cycle, starting with its own lord, and the API goes five levels deep.

## Endpoints

- [`POST /v1/dasha/vimshottari`](https://astronode.dev/capabilities/vedic/dasha-vimshottari) - Vimshottari Dasha API
- [`POST /v1/dasha/lookup`](https://astronode.dev/capabilities/vedic/dasha-lookup) - Current Dasha Lookup API
- [`POST /v1/dasha/yogini`](https://astronode.dev/capabilities/vedic/dasha-yogini) - Yogini Dasha API
- [`POST /v1/dasha/char`](https://astronode.dev/capabilities/vedic/dasha-char) - Chara Dasha (Jaimini) API
