Find your unique Birthday Magic lucky number with this amazing Ramanujan Square

DD – MM – YY – YY
Based on Srinivasa Ramanujan ’s magic square.
Enter your birth date
We’ll build a 4×4 “magic” grid from four numbers: Day (A), Month (B), Year first 2 (C), Year last 2 (D).
2 digits (01–31)
2 digits (01–12)
First two digits of year (YY)
Last two digits of year (YY)
First row of the square = your birth date (A, B, C, D)
Day
(A)
Month
(B)
Year
first 2 (C)
Year
last 2 (D)
Your lucky number
Ad space (e.g. 728×90 banner)
Day
(A)
Month
(B)
Year
first 2 (C)
Year
last 2 (D)
Row sum
Formula: magic sum = A + B + C + D
Ad space (responsive rectangle)
What is a birthday magic square?
A 4×4 grid where every row, column and diagonal adds up to the same number – built from your date of birth.
About Ramanujan’s birthday magic square

This site is inspired by the famous birthday magic square of Srinivasa Ramanujan. He created a 4×4 magic square from his own birth date where every row, column and both diagonals add up to the same total.

Here you can enter your own date of birth and instantly get a personalized birthday magic square. Your day (A), month (B), and the first two (C) and last two (D) digits of your birth year are used to build a 4×4 square in which every line gives the same “magic sum” – your birthday lucky number.

You can experiment with different dates, show this trick to friends and family, or use it as a fun way to introduce students to magic squares, arithmetic and number patterns.