The conversion
sidereal = tropical - ayanamsa, wrapped into 0-360°. The ayanamsa is the mean value for the moment (no nutation), computed by the same port that powers the ayanamsa calculator. The engine makes this subtraction itself in two places: the Lahiri ascendant (tropical ascendant minus the Lahiri ayanamsa) and every KP position - planets, cusps and the horary chart - which are tropical positions minus the KP-Newcomb ayanamsa.
Lahiri planet longitudes are the exception. The engine asks Swiss Ephemeris for them in sidereal mode, and that mode also removes the nutation in longitude. So a Lahiri planet from POST /v1/charts/birth sits up to about 19″ away from tropical - ayanamsa; across 200 moments from 1900 to 2100 the largest gap measured was 18.56″.
Worked example: one Moon, three answers
The site's sample birth is 4 July 1993, 09:27:11 IST - 03:57:11 UT. The tropical Moon then is 284.311011°.
| Ayanamsa at 03:57:11 UT | tropical - ayanamsa | API value |
|---|---|---|
| KP-Newcomb 23.669512° | 260.641499° | 260.64149876 from POST /v1/kp/planet-position - identical |
| Lahiri 23.766364° | 260.544646° | 260.539904 (Sagittarius 20.539904°) from POST /v1/charts/birth - 17.07″ lower: nutation |
| Raman 22.320063° | 261.990948° | Not served by the public API |
A 17″ gap never moves a sign or a nakshatra unless the planet sits within 17″ of the boundary; it can move a KP sub-sub, the smallest of which are about 2′ wide.
Accuracy
Against the engine's own subtraction (tropical Moon minus getKpAyanamsa and minus the Lahiri ayanamsa) at 200 moments spread over 1900-2100, the converter's largest difference is 0.0002″. The build fails above 0.001″, and also fails if the measured gap to the sidereal-mode planets ever exceeds the 20″ this page states.
Common mistakes
- Adding the ayanamsa instead of subtracting it. Sidereal longitudes are smaller: in 2026 a Lahiri value is about 24.2° below the tropical one.
- Using one ayanamsa value for every date. It grows about 50.4″ a year, so a value from a different decade is off by several arc-minutes. Enter the moment of the position, in UT.
- Mixing Lahiri and KP. They differ by a constant 5.81′. Resolve KP lords only from a KP-Newcomb longitude - see the KP sub-lord calculator.
- Expecting the Western house cusps to convert into the Vedic houses. Vedic charts use whole-sign houses from the sidereal ascendant; only the ascendant degree converts this way. See house systems.
FAQ
- Where do I get a tropical longitude from the API?
- From the Western endpoints, such as
POST /v1/western/natal/planets. They are tropical and subtract nothing. - Why does my converted Lahiri Moon differ from the birth chart by a few arc-seconds?
- Because the chart's planets come from Swiss Ephemeris' sidereal mode, which also removes nutation in longitude (up to about 19″). The ascendant and all KP values match the plain subtraction exactly.
- Can I ask the API for a different ayanamsa?
- No. Vedic endpoints use Lahiri and
/v1/kp/*uses KP-Newcomb, reported inmeta.ayanamsa. Convert on your side if you need another system.