How the five panchang limbs are calculated
All five panchang limbs come from the positions of the Sun and Moon at a chosen moment, usually local sunrise. Tithi uses the Moon's lead over the Sun in 12-degree steps, and karana uses the same lead in 6-degree steps. Nakshatra uses the Moon's position in 13° 20′ steps, yoga uses the Sun and Moon added together in the same steps, and vara is the weekday at sunrise. Knowing the formulas lets you understand why almanacs agree, and why they sometimes differ.
Sidereal positions first
The panchang works in the sidereal zodiac, which is measured against the stars. To get sidereal positions, software takes the Sun's and Moon's positions and subtracts the ayanamsa, the gap between the two ways of measuring the zodiac. Skybond uses the Lahiri ayanamsa, which many Indian government and temple almanacs also use. Once the positions are sidereal, each limb is a simple division.
Place sets sunrise
Sunrise and end times
Skybond defines sunrise as the moment the top edge of the Sun appears at the horizon, allowing for the bending of light by the air. This is the usual definition in almanac software. After sunrise, the software searches forward in time for the moment each limb crosses its next step. Those moments become the end times on the daily page.
Which limbs the ayanamsa affects
The ayanamsa does not affect every limb in the same way. The tithi and karana use the difference between the Moon and the Sun, so the ayanamsa cancels out and has no effect on them. The nakshatra uses the Moon's position, so a different ayanamsa moves its boundaries. The yoga adds two positions, so the ayanamsa counts twice and moves its boundaries more.
Worked example: Mumbai, 1 November 2025
Check yourself
When did the tithi end in the Mumbai example?
Show answer
At about 09:12 on 1 November 2025, when Shukla Ekadashi began.
Key takeaways
- Each limb is a simple division of the Sun's and Moon's sidereal positions.
- Vara follows local sunrise; the other limbs use steps of 12°, 13° 20′ or 6°.
- The ayanamsa affects the nakshatra and yoga, but not the tithi, karana or vara.
- End times are the moments each limb crosses its next step.
- The Mumbai example can be checked against Skybond's public API.
Next lessons
Conventions and sources
- Sidereal zodiac
- Lahiri ayanamsa
- API-checked example
FAQ
Which ayanamsa does the worked example use?
Does Skybond's panchang use the same ayanamsa as its charts?
Why are the values quoted at sunrise?
Drafted with AI from verified sources, fact-checked and edited by Skybond before publishing. Read more.