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 / 120of it, whereyearsis 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.
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 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.
| 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 |
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 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 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_lordandsub_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.