← Developer tools

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.

Free · runs in your browser · no API key needed · updated

KP-Newcomb sidereal longitude

#247 starts at 354° 06′ 40″ (Mercury star, Rahu sub)

Sign lord
Jupiter (Sagittarius)
Star lord
Venus (Purva Ashadha 3)
Sub lord
Jupiter
Sub-sub lord
Mercury
Sub spans
260° 06′ 40.0″ - 261° 53′ 20.0″
Sub-sub spans
260° 37′ 46.7″ - 260° 52′ 53.3″
KP-249 number
181
That number's span
260° 06′ 40″ - 261° 53′ 20″
The nine subs of Purva Ashadha
Sub of Purva AshadhaFromToWidth
Venus253° 20′ 00″255° 33′ 20″133.33′
Sun255° 33′ 20″256° 13′ 20″40.00′
Moon256° 13′ 20″257° 20′ 00″66.67′
Mars257° 20′ 00″258° 06′ 40″46.67′
Rahu258° 06′ 40″260° 06′ 40″120.00′
Jupiter ←260° 06′ 40″261° 53′ 20″106.67′
Saturn261° 53′ 20″264° 00′ 00″126.67′
Mercury264° 00′ 00″265° 53′ 20″113.33′
Ketu265° 53′ 20″266° 40′ 00″46.67′

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.

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.

The six split subs
Sign boundaryNumbers 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_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.