Vedic Guide

Panchang Calculation Explained: The Science of the Five Vedic Limbs

Ramesh Sao
6 min read

A Vedic Panchang is not a simple calendar; it is a high-precision astronomical coordinate engine. Astrologers and seekers rely on it to find the Drik Panchang daily tithi and nakshatra, which are calculated based on the geocentric positions of the Sun and Moon. Our app's built-in calculation engine uses advanced formulas to convert these raw longitudes into the five Vedic limbs.

In our engine, the astrological day transitions at Brahma Muhurta (96 minutes before sunrise) instead of calendar midnight. This ensures all calculations align precisely with Vedic astrology rules. Here is how each limb is calculated mathematically and astronomically.

These formulas are used in our offline calculation engine, which is verified by scholars to ensure accuracy for any latitude and longitude.

1. Tithi (Lunar Phase Angle)

Tithi represents the lunar day, calculated by the relative angular separation between the Moon and the Sun. A complete synodic lunar cycle spans 360 degrees (from one New Moon to the next). This cycle is divided into 30 Tithis (15 in the bright fortnight or Shukla Paksha, and 15 in the dark fortnight or Krishna Paksha). Each Tithi represents exactly 12 degrees of angular separation.

The mathematical formula is: TithiIndex = ⌊(Moon_Longitude - Sun_Longitude) / 12⌋. If the resulting difference is negative, we add 360° to the value before dividing. The resulting index (0 to 29) maps to the active Tithi. For example, an index of 0 represents Shukla Pratipada, 14 represents Purnima, 15 represents Krishna Pratipada, and 29 represents Amavasya. Because the Moon's speed varies along its elliptical orbit (perigee to apogee), a Tithi's duration fluctuates from 19 to 26 hours.

2. Nakshatra (Lunar Mansions)

The Nakshatras represent the stellar division of the ecliptic plane. The complete circle of 360° is divided into 27 equal segments (Mansions) of 13°20' (13 degrees and 20 minutes, or 13.3333° decimal degrees) each. A Nakshatra is determined by the Moon's sidereal longitude.

The formula is: NakshatraIndex = ⌊Moon_Longitude / 13.3333⌋. The index (0 to 26) identifies the active stellar constellation (e.g., 0 for Ashwini, 1 for Bharani, up to 26 for Revati). Each Nakshatra is further divided into 4 quarters (Padas) of 3°20' each, which are used to determine natal syllables and planetary dasha cycles.

3. Yoga (Solar-Lunar Sum)

Yoga represents the combined angular progress of the Sun and the Moon. Like Nakshatras, the 360° ecliptic is divided into 27 equal divisions of 13°20' (13.3333° decimal degrees) each.

The formula is: YogaIndex = ⌊(Moon_Longitude + Sun_Longitude) / 13.3333⌋. If the sum exceeds 360°, we subtract 360° (mod 360). There are 27 Yogas (such as Vishkumbha, Preeti, Ayushman), each denoting specific astrological qualities for actions performed during their active times.

4. Karana (Half-Tithi Divisions)

A Karana is equivalent to half of a Tithi, spanning exactly 6 degrees of solar-lunar angular separation. A synodic month contains 60 Karanas. These are divided into 4 fixed (static) Karanas and 7 repeating (movable) Karanas.

The formula is: KaranaIndex = ⌊(Moon_Longitude - Sun_Longitude) / 6⌋. The 7 movable Karanas (Bava, Balava, Kaulava, Taitila, Gara, Vanija, Vishti) repeat in a cyclic sequence of 8 cycles to cover 56 half-tithis. The remaining 4 static Karanas (Shakuni, Chatuspada, Naga, Kintughna) occur only at specific intervals during the dark fortnight and the start of the bright fortnight.

5. Vara (Solar Weekday)

Vara is the weekday, representing the solar day. In Vedic astronomy, the day does not start at midnight. Instead, the Vara transitions at the exact moment of local Sunrise (Udaya).

The Vara is associated with the planet ruling the first hour of Sunrise (Hora Lord): Sunday (Sun), Monday (Moon), Tuesday (Mars), Wednesday (Mercury), Thursday (Jupiter), Friday (Venus), and Saturday (Saturn). Any calculations performed for birth charts or Muhuratas between midnight and Sunrise must utilize the Vara of the previous calendar day.

Was this article helpful?

Discussion (2 Comments)

D
Dr. Rajesh Dubey

Can you explain how the speed of the Moon changes the Tithi duration?

R
Ramesh SaoAuthor

Since the Moon follows an elliptical orbit, its angular speed varies (moving faster at perigee and slower at apogee). Because Tithi is the division of relative longitude difference by 12 degrees, a faster Moon covers this 12-degree gap quicker, making Tithis vary from 19 to 26 hours.

M
Meera Nair

The formula `(Moon Longitude - Sun Longitude) / 12` is very clean. My screen reader reads this explanation perfectly. Thank you for the accessibility support!

R
Ramesh SaoAuthor

We are glad it helped, Meera! We want Vedic science to be accessible to everyone.

Join the Discussion

Today Panchang

Access all these computations directly on your phone, completely offline and free.

Download App