← Guides

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.

Updated

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
DivisionRule
D2 HoraOdd sign: first half Leo, second Cancer; even sign reversed
D3 DrekkanaParts go to the sign itself, the 5th and the 9th from it
D7, D10Odd sign: count from the sign; even: from the 7th (D7) or 9th (D10)
D9 NavamsaMovable: from the sign; fixed: from the 9th; dual: from the 5th
D16, D20, D45Start fixed by modality (e.g. D16: Aries / Leo / Sagittarius)
D24, D40Odd/even start: Leo/Cancer (D24), Aries/Libra (D40)
D27Start by element: fire Aries, earth Cancer, air Libra, water Capricorn
D30 TrimsamsaUnequal: 5/5/8/7/5° regions in odd signs, reversed in even
D12, D60Count 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.

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
DivisionMoonWhy
D2CancerOdd sign, second half
D3LeoThird decanate: 9th from Sagittarius
D7GeminiOdd sign, part 7 counted from Sagittarius
D9SagittariusDual sign, part 9 counted from Aries
D10LeoOdd sign, part 9 counted from Sagittarius
D12LibraPart 11 counted from Sagittarius
D16AquariusDual: count from Sagittarius
D20CapricornDual: count from Leo
D24TaurusOdd: count from Leo
D27AriesFire: count from Aries
D30LibraOdd sign, 25-30° is Venus's region
D40PiscesOdd: count from Aries
D45AriesDual: count from Sagittarius
D60TaurusPart 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).

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.