Welcome to RAM_MagicSquare

Inspired by the legendary mathematician Srinivasa Ramanujan and his famous 4×4 magic square built from his date of birth, this site lets you generate your own Ramanujan-style magic square.

Enter your date of birth below and see the magic! ✨

What is a Magic Square?

A magic square is a square grid of numbers where the sums of all rows, columns, and both main diagonals are exactly the same. Ramanujan created a special 4×4 magic square where the first row shows his own birthday.

Create Your Own Ramanujan Magic Square

Fill in your date of birth. We’ll use Ramanujan’s pattern to build a 4×4 magic square where the first row contains your DOB.

Example: Ramanujan’s DOB is 22-12-1887 → you get his famous magic square.

Your Magic Square

No magic square yet. Enter your DOB and click “Generate”.

Note: Some dates may produce 0 or negative values in a few cells, but the square is still mathematically valid as long as all rows, columns and diagonals add up to the same magic sum.