Why do the dates of Diwali and Holi change every year?
On the Gregorian calendar, 26 January and 15 August fall on the same date every year, but Diwali is sometimes in October and sometimes in November. The two calendars are built on different foundations.
The Sun's year and the Moon's month
The Gregorian year follows the Sun: about 365 days. The Hindu panchang is lunisolar. Its months follow the phases of the Moon: from one new moon to the next is about 29.5 days. Twelve lunar months add up to about 354 days, roughly 11 days shorter than a solar year.
Festivals are fixed to a tithi of a lunar month. Diwali, for example, is on the Amavasya of Kartik (Ashwin by the amanta count), and Holi on the day after the Phalguna Purnima. Each year that tithi should arrive about 11 days earlier on the Gregorian calendar, but it does not, for the reason in the next section.
The adhika month: keeping the calendar in balance
To stay in step with the solar year, about once every three years an extra lunar month is added, called the adhika masa (also malmas or Purushottam masa). This keeps the seasons, and the festivals that belong to them, close to their proper time of year. That is why Diwali moves between mid-October and mid-November and does not wander through the whole year.
Why can one festival fall on two days?
A tithi can begin and end in the middle of a day, and tradition looks at a different time of day for different festivals: the pradosh period for Diwali, the nishita (midnight) period for Maha Shivratri, moonrise for Karwa Chauth. So sometimes a tithi stretches over two days, and different almanacs or sampradayas may name a day earlier or later. Our Festivals and vrats page works out dates with these same rules, but for any decision your own pandit's word comes first.