← Guides

Chara karakas and Karakamsa: how the API ranks the planets

Jaimini's chara (movable) karakas are assigned per chart by sorting the planets on how far they have travelled through their signs. The sort is simple; the choices around it - how many karakas, what to do with Rahu, what happens when two planets are close - are where software disagrees.

Updated

Two endpoints, one ranking

POST /v1/karakamsa returns only the top of the ranking: the Atmakaraka, its navamsa sign (the Karakamsa), the natal house that sign falls in and any planets in it. The full eight-row table - Atmakaraka down to Darakaraka - comes back in the karakas array of POST /v1/nadi/lens (Starter plan). Both call the same engine function, so the two never disagree about who the Atmakaraka is. Both take the plain birth body: date, time, tz_offset_minutes, lat, lng.

The 8-karaka scheme, with Rahu reversed

Classical sources describe both a seven-karaka scheme (Sun to Saturn) and an eight-karaka scheme that adds Rahu. The engine follows the eight-karaka scheme. Ketu never takes part. Rahu moves backwards through the zodiac, so its progress through a sign is measured from the sign's end: the engine ranks it on 30 - degree_in_sign, returned as effective_degree. Every other planet's effective_degree equals its degree_in_sign. Retrograde planets other than Rahu are not reversed.

The sample birth's karakas, from `/v1/nadi/lens`
RolePlanetSigndegree_in_signeffective_degree
Atmakaraka (self)MarsCapricorn26.832926.8329
Amatyakaraka (career)MoonSagittarius26.789426.7894
Bhratrikaraka (siblings)SaturnTaurus24.278824.2788
Matrikaraka (mother)MercuryPisces17.000517.0005
Pitrikaraka (father)JupiterCapricorn16.614016.6140
Putrakaraka (children)VenusAries14.484714.4847
Gnatikaraka (rivals, relatives)RahuSagittarius17.753912.2461
Darakaraka (spouse)SunAries10.670810.6708

Rahu shows why the reversal matters. On its raw 17.75° it would rank fourth, ahead of Mercury, and take the Matrikaraka role, pushing Mercury, Jupiter and Venus down one place each; reversed to 12.25° it ranks seventh as Gnatikaraka. If you compare with software that uses seven karakas, expect the same Atmakaraka in most charts but differences lower down: that table has one role fewer and no Rahu, so its Darakaraka is the seventh planet rather than the eighth.

When two planets are close

In the sample birth the Atmakaraka wins by very little: Mars at 26.8329° against the Moon at 26.7894°, a margin of 2.6 arc-minutes. The Moon gains about half a degree an hour, so the lead does not survive long. /v1/karakamsa at 17:30 still names Mars; at 17:31, six minutes after the recorded birth time, it returns:

json
{ "atmakaraka": "Moon", "atmakaraka_sign": "Sagittarius",
  "atmakaraka_degree": 26.839077375717807, "karakamsa": "Sagittarius",
  "swamsha_house": 4, "occupants": ["Moon", "Rahu"],
  "tradition": "jaimini/karakamsa" }

The Atmakaraka, the Karakamsa sign, the Swamsha house and the occupants all change. A birth time recorded to the nearest five or ten minutes cannot decide this chart, and the API has no way to know that - so check the margin yourself before presenting an Atmakaraka as settled. Exact ties are practically impossible because degrees carry full floating-point precision; if one did occur, the engine breaks it by planet name in alphabetical order so the result is repeatable, which is a tie-break for determinism, not a classical rule.

karakas.mjs - list the karakas and flag a close Atmakaraka

js
// karakas.mjs - node karakas.mjs (Node 18+, no dependencies)
const API = process.env.ASTRONODE_API_URL ?? "https://api.astronode.dev";
const KEY = process.env.ASTRONODE_API_KEY; // server-side only

const birth = { date: "1973-04-24", time: "17:25:00", tz_offset_minutes: 330, lat: 19.076, lng: 72.8777 };

const res = await fetch(`${API}/v1/nadi/lens`, {
  method: "POST",
  headers: { authorization: `Bearer ${KEY}`, "content-type": "application/json" },
  body: JSON.stringify(birth),
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const { karakas } = (await res.json()).data;

for (const k of karakas) {
  console.log(k.role.padEnd(13), k.planet.padEnd(8), k.effective_degree.toFixed(4));
}

// How safe is the Atmakaraka? The gap to the runner-up, in arc-minutes.
const gap = (karakas[0].effective_degree - karakas[1].effective_degree) * 60;
console.log(`AK margin: ${gap.toFixed(1)}' over ${karakas[1].planet}`);
if (karakas[1].planet === "Moon" && gap < 30) {
  // The Moon gains about 0.5 deg an hour; under 30' it can overtake within an hour.
  console.log("Fragile: a birth time a little later may make the Moon the Atmakaraka.");
}

Output against the API:

text
Atmakaraka    Mars     26.8329
Amatyakaraka  Moon     26.7894
Bhratrikaraka Saturn   24.2788
Matrikaraka   Mercury  17.0005
Pitrikaraka   Jupiter  16.6140
Putrakaraka   Venus    14.4847
Gnatikaraka   Rahu     12.2461
Darakaraka    Sun      10.6708
AK margin: 2.6' over Moon
Fragile: a birth time a little later may make the Moon the Atmakaraka.

From Atmakaraka to Karakamsa and Swamsha

The Karakamsa is the Atmakaraka's navamsa (D9) sign, read from the same varga mapping as /v1/charts/varga - see divisional charts. Mars at Capricorn 26.83° is in the ninth navamsa of a movable sign, which counts from Capricorn itself: the ninth sign, counting Capricorn as the first, is Virgo. For the recorded birth the response is:

json
{ "atmakaraka": "Mars", "atmakaraka_sign": "Capricorn",
  "atmakaraka_degree": 26.832862185498698, "karakamsa": "Virgo",
  "swamsha_house": 1, "occupants": [], "tradition": "jaimini/karakamsa" }
  • swamsha_house is the house of the natal (D1) chart that holds the Karakamsa sign, counted whole-sign from the lagna. The sample's lagna is Virgo, so the Karakamsa falls in house 1.
  • occupants are natal D1 planets in the Karakamsa sign - empty here, Moon and Rahu in the 17:31 case. Readings that use planets in the Karakamsa within the navamsa chart need the D9 placements from /v1/charts/varga instead.
  • No reading is attached. The interpretation block states the placement and says that readings built on Karakamsa vary between traditions; Jaimini timing by signs is covered in Yogini and Char dasha.

The Nadi lens uses the same karaka table for its Atmakaraka and Darakaraka readings - see Nadi amsha (D150) for the rest of that response.

Questions

Does the AstroNode API use 7 or 8 chara karakas?
Eight: Sun to Saturn plus Rahu, with Ketu excluded. Rahu is ranked on 30 minus its degree in the sign because it moves backwards, so the full table runs from Atmakaraka to Darakaraka with a Gnatikaraka in between.
How is the Karakamsa calculated?
It is the navamsa (D9) sign of the Atmakaraka, the planet furthest through its sign. POST /v1/karakamsa returns it with the natal house that sign falls in (the Swamsha house) and the natal planets in that sign.
What if two planets have almost the same degree?
The higher one is the Atmakaraka however small the margin, and a few minutes of birth time can swap them. In the sample birth Mars leads the Moon by 2.6 arc-minutes and the Moon takes over six minutes later, so check the margin before treating the Atmakaraka as settled.