Computes Catholic Easter Sunday date and other Christian feasts
Updated 10 Jan 2021

This little function computes the date of Easter Sunday for present year or specific years, using Oudin's algorithm. It works for the entire Julian calendar (starting 325 AD) and Gregorian calendar (after 1583 AD). An option allows to use the Western Orthodox Church calendar instead of the default Catholic Church.

Easter day is useful to calculate other Christian feasts, like Ash Wednesday (Easter - 46), Good Friday (Easter - 2), Ascension Thursday (Easter + 39), Pentecost (Easter + 49). The function might recognise most of the Christian days related to Easter.

>> computus
Sunday 21 April 2019
>> computus(2024)
Sunday 31 March 2024
>> computus ash
Wednesday 06 March 2019
>> computus(2020:2022,'ascension')
Thursday 21 May 2020
Thursday 13 May 2021
Thursday 26 May 2022

See help for syntax, and details.

Cite As

François Beauducel (2024). computus (, GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Holidays / Seasons in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes

See release notes for this release on GitHub:

connect to github

adds main Christian dates as input argument.

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.