# Ayanamsa calculator for any date

> The ayanamsa is the gap between the tropical and sidereal zodiacs on a given date. Enter a date to get the three values the engine implements, and optionally a tropical longitude to see where it lands in each sidereal zodiac.

Source: https://astronode.dev/tools/ayanamsa-calculator · Updated: 2026-12-01

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

## The three ayanamsas, and where the API uses them

*Ayanamsas implemented by the engine*

| Ayanamsa | In the public API | On 1 Jan 2000, 12:00 UT |
| --- | --- | --- |
| Lahiri (Chitrapaksha) | All Vedic endpoints · `meta.ayanamsa: "lahiri"` | 23.857092° |
| KP-Newcomb (Krishnamurti) | `/v1/kp/*` · `meta.ayanamsa: "kp_newcomb"` | 23.760240° |
| Raman | Not served: the engine computes it, but no public endpoint uses it | 22.410791° |

Western endpoints are tropical and subtract nothing. [`GET /v1/ayanamsa`](https://astronode.dev/capabilities/vedic/ayanamsa) lists all three systems but returns a live value only for Lahiri, the active one; KP and Raman come back with `current_value: null`.

## How it is computed

Each ayanamsa is defined by a value at a starting epoch: Lahiri **23.245525°** at JD 2435553.5 (21 March 1956), KP **22.363889°** and Raman **21.014440°** at 1900 January 0.5. For any other date, Swiss Ephemeris takes the vernal point of that date, precesses it to J2000 and on to the epoch with the Vondrák 2011 model, measures its longitude on the epoch's ecliptic, and adds the starting value. A last correction accounts for the older precession model each definition was made with (IAU 1976 for Lahiri, Newcomb for KP and Raman).

That procedure is ported to TypeScript here and runs in your browser. Against the engine's own values for 45 moments between 1900 and 2100 the largest difference is **0.0002″**; the build fails if it ever exceeds 0.001″. The value is the **mean** ayanamsa (no nutation), which is what the engine subtracts from tropical longitudes.

## What the numbers tell you

- **The offsets between systems are constant.** KP sits **5.81′** below Lahiri and Raman **1° 26.78′** below Lahiri on every date, because all three precess at the same rate.
- **The rate is about 50.39″ a year**, so Lahiri went from 22.4605° on 1 Jan 1900 to 24.2331° on 1 Dec 2026 and reaches 25.2543° on 1 Jan 2100.
- **Sidereal longitude = tropical longitude - ayanamsa.** For the sample birth (24 Apr 1973), a tropical Moon at 290.28° becomes 266.80° under Lahiri and 266.89° under KP - the same figures the [ayanamsa guide](https://astronode.dev/guides/ayanamsa) gets from the API.

## Common mistakes

- **Comparing with a "true Chitrapaksha" value.** Some software follows the observed position of the star Spica instead of the defined Lahiri formula. That is a different ayanamsa (Swiss Ephemeris lists it separately), so small differences are expected.
- **Adding nutation twice.** Ephemeris libraries can return the ayanamsa with or without nutation. The engine uses the mean value; if your other source includes nutation, expect up to about 17″ of difference.
- **Assuming a request can switch ayanamsa.** It cannot - see the [request builder](https://astronode.dev/tools/request-json-builder). Compute other systems on your side from the tropical positions of the Western endpoints if you need them.
- **Ignoring the boundary cases.** A planet within a few arc-minutes of a sign or nakshatra boundary can change sides between Lahiri and KP. Check the distance to the boundary before reporting a difference as a bug.

## FAQ

**Which ayanamsa should my app use?**

Use what your users' tradition expects: Lahiri (as defined from the Indian Astronomical Ephemeris) is the default for Vedic charts; KP practitioners expect KP-Newcomb. The API makes that choice per endpoint family and reports it in `meta.ayanamsa`.

**Why is Raman shown if the API does not serve it?**

The engine implements it for chart comparisons, so the value is verified the same way as the other two. No public endpoint returns Raman positions today.

**Does the time of day matter?**

Barely: the ayanamsa moves about 0.14″ a day. The tool takes a UT time for completeness.

## Related endpoints

- [`GET /v1/ayanamsa`](https://astronode.dev/capabilities/vedic/ayanamsa) - Ayanamsa Systems API
- [`POST /v1/charts/birth`](https://astronode.dev/capabilities/vedic/charts-birth) - Birth Chart (Kundli) API
- [`POST /v1/kp/planet-position`](https://astronode.dev/capabilities/kp/kp-planet-position) - KP Planet Positions API
- [`POST /v1/western/natal/planets`](https://astronode.dev/capabilities/western/western-natal-planets) - Western Natal Planets API
