# Divisional chart (varga) sign calculator

> `POST /v1/charts/varga` returns only a sign and a house for each planet. When one looks wrong, you need the rule that produced it. Enter the planet's sidereal longitude to see its part and sign in every division the engine implements, side by side with the rule for that division.

Source: https://astronode.dev/tools/divisional-chart-calculator · Updated: 2026-12-04

The interactive tool runs in the browser at https://astronode.dev/tools/divisional-chart-calculator; this file is its explanation.

## Sixteen rules, not one formula

Each division cuts a sign into N parts; the rule decides where counting starts, and that depends on the sign. Until May 2026 the engine used one continuous formula for every division, which was right for some and wrong for fixed and dual signs in D9 and for eleven other vargas. It now has a separate rule per division, and so does this tool:

*What each rule branches on*

| Branches on | Divisions |
| --- | --- |
| Nothing: count from the sign itself | D1, D3 (5th and 9th), D4 (4th, 7th, 10th), D12, D60 |
| Odd or even sign | D2, D7, D10, D24, D40, and the unequal D30 |
| Movable, fixed or dual | D9, D16, D20, D45 |
| Element | D27 (fire Aries, earth Cancer, air Libra, water Capricorn) |

D30 is the only unequal one: odd signs split 5/5/8/7/5° (Aries, Aquarius, Sagittarius, Gemini, Libra), even signs 5/7/8/5/5° (Taurus, Virgo, Pisces, Capricorn, Scorpio). Part sizes and names are in the [divisional charts reference](https://astronode.dev/reference/divisional-charts); the per-rule reasoning, with the D27 tradition choice, is in the [divisional chart guide](https://astronode.dev/guides/divisional-chart-calculation).

## Which divisions the API serves

[`POST /v1/charts/varga`](https://astronode.dev/capabilities/vedic/charts-varga) accepts `division` 2, 3, 7, 9, 10, 12, 16, 20, 24, 27, 30, 40, 45 or 60 (or `all: true` for those 14) and answers 400 for anything else. D1 is the birth chart itself. **D4** has a rule in the engine but no route, so it is marked "engine only" in the table above. The finer D150 Nadiamsa has its own endpoint, [`POST /v1/nadi/amsha`](https://astronode.dev/capabilities/nadi/nadi-amsha).

## Worked example from the recorded D9

The playground's D9 request for the sample birth returned Sun Pisces, Moon Libra, Mars Cancer and ascendant Gemini. From the birth chart's longitudes:

*Sample birth, D9, recomputed*

| Point | Sidereal longitude | Sign type | Part of 9 | D9 |
| --- | --- | --- | --- | --- |
| Sun | 78.4260° (Gemini 18.43°) | dual: start at its 5th, Libra | 6 | Pisces |
| Moon | 260.5399° (Sagittarius 20.54°) | dual: start at Aries | 7 | Libra |
| Mars | 132.5443° (Leo 12.54°) | fixed: start at its 9th, Aries | 4 | Cancer |
| Ascendant | 129.9358° (Leo 9.94°) | fixed: start at Aries | 3 | Gemini |

The same Moon in the other divisions: D2 Cancer, D3 Leo, D4 Gemini, D7 Aries, D10 Gemini, D12 Leo, D16 Libra, D20 Virgo, D24 Sagittarius, D27 Libra, D30 Gemini, D40 Cancer, D45 Gemini, D60 Taurus. The tool's default input is that Moon.

## Common mistakes

- **Using one formula for every division.** `(sign + part) % 12` - the engine's own rule before May 2026 - is wrong for fixed and dual signs in D9 and for D3, D7, D10, D16, D20, D24, D27, D30, D40, D45 and D60.
- **Testing on exact part edges.** The engine divides in floating point, and 368 of the 3,060 exact edges (such as Aries 3°20′ in D9) land in the earlier part. The tool reproduces that arithmetic, so it answers as the API would; real ephemeris values are almost never exactly on an edge.
- **Expecting degrees in a varga.** The API returns `sign` and `house` only, with houses counted whole-sign from the varga's own ascendant.
- **Using a tropical or KP longitude.** The engine projects Lahiri sidereal positions.

## FAQ

**Why is D4 not in POST /v1/charts/varga?**

The engine has the Chaturthamsa rule, but the route's list of divisions does not include 4, so a request for it returns 400. The tool shows it for completeness.

**How sensitive are the high divisions to birth time?**

A D60 part is 0°30′ and a D45 part 0°40′. An ascendant moves on average a degree every four minutes, so a couple of minutes of birth-time error can change those signs.

**Is this checked against the engine?**

Yes: all 16 divisions on 6,086 longitudes - every part edge and a 1e-7° hair either side, plus 200 random values - give exactly the engine's sign.

## Related 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
