<p>It is not clear that it can be calculated in a simple way</p>

<p>The length of the lunar month varies between 29.3 and 29.8 days, due to perturbations from the sun. Since ekadashi is based on the actual astronomical moon, you would need to know the length of the current synodic month in order to work out when ekadashi is.  You can predict the motion of the moon very accurately, but the calculation is beyond this answer.</p>

<p>However on average, each lunar month is 29.53 days, so ekadashi is the day which is 259.86 hours and 614.22 hours after each new moon. The calculation is<br>
24 hours/day * 11/30 * 29.53 days</p>

<p>And New moon last occurred on 4th Feb at 21.03, you can add 29.53 days to find the next new moon etc.</p>

<p>The irregular motion of the moon is why the Christians choose to use an "average moon" and an "average sun" for their calculation of Easter.</p>

CC BY-SA 4.0
2019-02-16T18:43:53.750Z
thank you so much! so then new moon + ~10.8 days would be the  _'astronomical ekadashi'_, right? wikipedia says: _a day which is not touched or ruined by the tenth tithi or lunar day. The cut-off is 96 minutes before sunrise. If 10th day completes 96 minutes before sunrise, then that day is celebrated as Ekādaśī. If incomplete before sunrise, but continues to be Dashimi during that day, then the Ekādaśī fast is performed on the following day._ So I am assuming that astronomical ekadashi would still need to be adjusted according to those rules, no?
ccpizza
CC BY-SA 4.0
2019-02-16T17:14:55.480Z
2019-02-16T17:14:55.480Z
James K
<p>Is there an official reference algorithm for calculating the Ekadashi days?</p>

<p>I found the textual description of <a href="https://en.wikipedia.org/wiki/Ekadashi#Calculation" rel="nofollow noreferrer">Ekadashi calculation</a> on wikipedia but can't really make sense of it in order to write the code.</p>

<p>I already have the (java) code for calculating the new/full moon phases, and originally assumed that Ekadashi would be as easy as appending 11 days to the time of new and full moon but apparently this approach is not providing correct results.</p>

<h3><em>Update</em>:</h3>

<p>Based on James's answer the answer is <a href="http://www.tifr.res.in/~vahia/tithi-calculations.pdf" rel="nofollow noreferrer">11</a> <em>lunar</em> days and <a href="http://www.tifr.res.in/~vahia/tithi-calculations.pdf" rel="nofollow noreferrer">26</a> <em>lunar</em> days after new moon (<em>not</em> gregorian days).</p>

<p>The required conditional adjustments are described in <a href="http://gopal.home.sk/gcal/docs/GCalEventsDocumentation.pdf" rel="nofollow noreferrer">chapter 1.4 of Vaisnava Events Calculation</a> which don't match the ones described in the <a href="https://en.wikipedia.org/wiki/Ekadashi#Calculation" rel="nofollow noreferrer">wikipedia article</a>.</p>

CC BY-SA 4.0
2019-02-16T17:24:40.700Z
It's tricky! Because Ekadashi also depends on the exact time of sunrise, you need to take location into account.
PM 2Ring
<moon-phases>
How to calculate the time of Ekadashi days?
ccpizza
# How to calculate the time of Ekadashi days?

(Asked by: username_0 on 2019-02-16)

Is there an official reference algorithm for calculating the Ekadashi days?

I found the textual description of [Ekadashi calculation](https://en.wikipedia.org/wiki/Ekadashi#Calculation) on wikipedia but can't really make sense of it in order to write the code.

I already have the (java) code for calculating the new/full moon phases, and originally assumed that Ekadashi would be as easy as appending 11 days to the time of new and full moon but apparently this approach is not providing correct results.

### *Update*:

Based on James's answer the answer is [11](http://www.tifr.res.in/~vahia/tithi-calculations.pdf) *lunar* days and [26](http://www.tifr.res.in/~vahia/tithi-calculations.pdf) *lunar* days after new moon (*not* gregorian days).

The required conditional adjustments are described in [chapter 1.4 of Vaisnava Events Calculation](http://gopal.home.sk/gcal/docs/GCalEventsDocumentation.pdf) which don't match the ones described in the [wikipedia article](https://en.wikipedia.org/wiki/Ekadashi#Calculation).

**Tags:** moon-phases
> **Comments:**
> **username_1**: It's tricky! Because Ekadashi also depends on the exact time of sunrise, you need to take location into account.  

---

## 1 answers

### Answer by username_2 on 2019-02-16. Score: 1 | Accepted answer

It is not clear that it can be calculated in a simple way

The length of the lunar month varies between 29.3 and 29.8 days, due to perturbations from the sun. Since ekadashi is based on the actual astronomical moon, you would need to know the length of the current synodic month in order to work out when ekadashi is. You can predict the motion of the moon very accurately, but the calculation is beyond this answer.

However on average, each lunar month is 29.53 days, so ekadashi is the day which is 259.86 hours and 614.22 hours after each new moon. The calculation is  
24 hours/day \* 11/30 \* 29.53 days

And New moon last occurred on 4th Feb at 21.03, you can add 29.53 days to find the next new moon etc.

The irregular motion of the moon is why the Christians choose to use an "average moon" and an "average sun" for their calculation of Easter.

> **Comments:**
> **username_0**: thank you so much! so then new moon + ~10.8 days would be the  _'astronomical ekadashi'_, right? wikipedia says: _a day which is not touched or ruined by the tenth tithi or lunar day. The cut-off is 96 minutes before sunrise. If 10th day completes 96 minutes before sunrise, then that day is celebrated as Ekādaśī. If incomplete before sunrise, but continues to be Dashimi during that day, then the Ekādaśī fast is performed on the following day._ So I am assuming that astronomical ekadashi would still need to be adjusted according to those rules, no?  

---

