# How the API computes divisional charts

> A varga is not one formula with a different divisor. Each division has its own rule for which sign the first part maps to, and getting that wrong silently moves planets. Here is what the engine does, checked against real output.

Source: https://astronode.dev/guides/divisional-chart-calculation · Updated: 2026-12-01

## One rule per division

Every varga cuts each 30° sign into N parts and maps each part to a sign. A single "continuous" formula - start at the planet's own sign and count forward - happens to be right for D1, D12 and D60 and wrong for most of the rest. The engine instead dispatches per division, following Brihat Parashara Hora Shastra chapter 4 (the engine's README records the audit that replaced the continuous formula in May 2026):

*Starting-sign rules by division*

| Division | Rule |
| --- | --- |
| D2 Hora | Odd sign: first half Leo, second Cancer; even sign reversed |
| D3 Drekkana | Parts go to the sign itself, the 5th and the 9th from it |
| D7, D10 | Odd sign: count from the sign; even: from the 7th (D7) or 9th (D10) |
| D9 Navamsa | Movable: from the sign; fixed: from the 9th; dual: from the 5th |
| D16, D20, D45 | Start fixed by modality (e.g. D16: Aries / Leo / Sagittarius) |
| D24, D40 | Odd/even start: Leo/Cancer (D24), Aries/Libra (D40) |
| D27 | Start by element: fire Aries, earth Cancer, air Libra, water Capricorn |
| D30 Trimsamsa | Unequal: 5/5/8/7/5° regions in odd signs, reversed in even |
| D12, D60 | Count forward from the sign itself |

Where traditions disagree the engine pins one: D27 follows the element-based start, and D60 maps one sign per 0.5° without the 60 deity names, which the API does not return. Division names and part sizes are in the [divisional charts reference](https://astronode.dev/reference/divisional-charts).

## One Moon through all 14 divisions

The sample birth's Moon is at Sagittarius 26.789° - a dual, odd, fire sign, near the end of it. Navamsa first: each part is 3°20′, so 26.789° falls in part 9; Sagittarius is dual, so counting starts from the 5th sign (Aries) and the ninth part lands in Sagittarius. `{ "division": 9 }` returns exactly that, with Gemini rising in the D9, so the Moon is in house 7.

*Moon's sign per division from one all: true call*

| Division | Moon | Why |
| --- | --- | --- |
| D2 | Cancer | Odd sign, second half |
| D3 | Leo | Third decanate: 9th from Sagittarius |
| D7 | Gemini | Odd sign, part 7 counted from Sagittarius |
| D9 | Sagittarius | Dual sign, part 9 counted from Aries |
| D10 | Leo | Odd sign, part 9 counted from Sagittarius |
| D12 | Libra | Part 11 counted from Sagittarius |
| D16 | Aquarius | Dual: count from Sagittarius |
| D20 | Capricorn | Dual: count from Leo |
| D24 | Taurus | Odd: count from Leo |
| D27 | Aries | Fire: count from Aries |
| D30 | Libra | Odd sign, 25-30° is Venus's region |
| D40 | Pisces | Odd: count from Aries |
| D45 | Aries | Dual: count from Sagittarius |
| D60 | Taurus | Part 54: (Sagittarius + 53) mod 12 |

Fourteen different answers for one longitude is the point of vargas, and also why they are fragile: near a part boundary a few minutes of birth time change the sign. A D60 part is half a degree - about two minutes of ascendant motion.

## Request shapes and rejections

One chart (`division` defaults to 9), or every division with `all`:

```json
{ "date": "1973-04-24", "time": "17:25:00", "tz_offset_minutes": 330,
  "lat": 19.076, "lng": 72.8777, "all": true }
```

- Accepted divisions: 2, 3, 7, 9, 10, 12, 16, 20, 24, 27, 30, 40, 45, 60. Anything else - including `1` and `5` - is `400 VALIDATION_ERROR`: "Unsupported varga division: 5. Use one of 2, 3, 7, …". For the rasi chart call `/v1/charts/birth`.
- With `all: true`, `data` is an object keyed by the division as a string (`"9"`, `"60"`).
- Varga planets carry `sign` and `house` only. Houses are whole-sign from the varga's own ascendant.
- The D150 Nadiamsa uses a different endpoint - see [Nadiamsa (D150)](https://astronode.dev/guides/nadi-amsha-d150).

## Questions

**Is there one formula for every divisional chart?**

No. A single continuous formula is right for D1, D12 and D60 and wrong for most other divisions. The engine applies a separate rule per division, following Brihat Parashara Hora Shastra chapter 4.

**How wide is one navamsa?**

3°20′. The navamsa (D9) cuts each 30° sign into nine equal parts.

## Endpoints

- [`POST /v1/charts/varga`](https://astronode.dev/capabilities/vedic/charts-varga) - Divisional Charts (Navamsa, D1-D60) API
- [`POST /v1/charts/birth`](https://astronode.dev/capabilities/vedic/charts-birth) - Birth Chart (Kundli) API
- [`POST /v1/nadi/amsha`](https://astronode.dev/capabilities/nadi/nadi-amsha) - Nadiamsa (D150) API
