# KP sub lord calculator (and KP-249 number)

> KP endpoints resolve every planet and cusp to four lords. Paste a `longitude` from a `/v1/kp/*` response, or any KP-Newcomb longitude, to see the full chain, the exact arc of the sub it falls in, and which of the 249 horary numbers covers it.

Source: https://astronode.dev/tools/kp-sub-lord-calculator · Updated: 2026-12-04

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

## From longitude to four lords

- **Sign lord**: the ruler of the 30° sign.
- **Star lord**: the lord of the 13°20′ nakshatra.
- **Sub lord**: the nakshatra is cut into nine subs, each `years / 120` of it, where `years` is that lord's Vimshottari period (Ketu 7 ... Mercury 17). The first sub belongs to the star lord and the rest follow the Vimshottari order. The narrowest sub (Sun) is 40′, the widest (Venus) 2°13′20″.
- **Sub-sub lord**: the same rule applied again inside the sub, starting from the sub lord.

Since 1 December 2026 the engine compares the input with each boundary in whole Vimshottari years rather than by adding up floating-point widths. The old sum could drift by one unit in the last place and put an exact sub start - 0°46′40″, the first Venus sub of Ashwini - in the previous sub. The tool ports the fixed arithmetic line for line. The full walk-through is in the [KP sub-lord guide](https://astronode.dev/guides/kp-sub-lord-calculation).

## The KP-249 numbers

27 nakshatras × 9 subs = 243 spans. Nine sign boundaries fall inside a nakshatra; three of them (60°, 180°, 300°) coincide with a sub boundary, and the other six cut a sub in two, each half becoming its own number: 243 + 6 = **249**. Number N's ascendant in [`POST /v1/kp/horary`](https://astronode.dev/capabilities/kp/kp-horary) is the **start** of span N. The engine builds the table in whole arc-seconds (a sub is `years × 400″`), so these coincidences are exact.

*The six split subs*

| Sign boundary | Numbers either side |
| --- | --- |
| 30° (Aries / Taurus) | 23 / 24 |
| 90° (Gemini / Cancer) | 63 / 64 |
| 150° (Leo / Virgo) | 106 / 107 |
| 210° (Libra / Scorpio) | 146 / 147 |
| 270° (Sagittarius / Capricorn) | 189 / 190 |
| 330° (Aquarius / Pisces) | 229 / 230 |

> **Note:** The 249 numbering here is the engine's table. Its sign-boundary splits follow the rule above but have not yet been checked by the owner against a printed KP Reader table, so treat the numbering near those six boundaries as provisional.

## Worked example

[`POST /v1/kp/planet-position`](https://astronode.dev/capabilities/kp/kp-planet-position) returns the sample Moon at `260.64149876`. Sagittarius gives sign lord **Jupiter**; Purva Ashadha (253°20′-266°40′) gives star lord **Venus**. The Moon is 7.3082° into the nakshatra; walking the subs from Venus (2°13′20″), Sun (40′), Moon (1°06′40″), Mars (46′40″), Rahu (2°) reaches 6°46′40″, and Jupiter's 1°46′40″ sub covers the Moon - sub lord **Jupiter**, from 260°06′40″ to 261°53′20″. Inside it the sub-subs run from Jupiter and land on **Mercury**. That span is horary number **181**.

The response says `"star_lord": "Venus", "sub_lord": "Jupiter", "sub_sub_lord": "Mercury"`. The same response's Sun (`78.52760264`) resolves to Rahu star, Moon sub, Jupiter sub-sub - number 54. And the playground's horary request, number 247, puts the ascendant at 354°06′40″: Revati, Mercury star, Rahu sub, as the recorded `POST /v1/kp/horary` response shows.

## Common mistakes

- **Resolving KP lords from a Lahiri longitude.** The two differ by 5.81′ - larger than many sub-subs. Use the `/v1/kp/*` longitude, or convert with the [tropical to sidereal converter](https://astronode.dev/tools/tropical-to-sidereal) set to KP-Newcomb.
- **Starting every nakshatra's subs at Ketu.** The first sub is the star lord's own.
- **Treating 249 as 27 × 9 + something arbitrary.** The six extra numbers come only from the sign boundaries listed above.
- **Reading a horary number as the middle of its span.** It is the span's start.

## FAQ

**Is the sub-sub lord in the API?**

Yes: every KP planet and cusp carries `sign_lord`, `star_lord`, `sub_lord` and `sub_sub_lord`.

**How do I find the horary number for a longitude?**

The API maps number to longitude only. This tool does the inverse over the same table: the number whose span contains the longitude.

**Does the tool need a date?**

No. Sub lords depend only on the KP longitude; the date matters only when you convert a tropical value, which needs the KP ayanamsa for that moment.

## Related endpoints

- [`POST /v1/kp/planet-position`](https://astronode.dev/capabilities/kp/kp-planet-position) - KP Planet Positions API
- [`POST /v1/kp/house-cusps`](https://astronode.dev/capabilities/kp/kp-house-cusps) - KP House Cusps and Sub-lords API
- [`POST /v1/kp/horary`](https://astronode.dev/capabilities/kp/kp-horary) - KP Horary (Prashna 1-249) API
- [`POST /v1/kp/chart`](https://astronode.dev/capabilities/kp/kp-chart) - KP Chart (Krishnamurti Paddhati) API
