History & Culture

The Algorithm Ancient Mesopotamia Invented

The Algorithm Ancient Mesopotamia Invented — History & Culture article by Steve Ysreal Monas
How ancient Babylonian base-60 mathematics still powers our clocks, GPS, and timekeeping systems thousands of years late

This post contains affiliate links. If you purchase through them, I may earn a small commission at no extra cost to you.

Look at your watch. Right now.

Notice anything strange about how we measure time?

We count to 60. Not 10. Not 100. Sixty.

There are 60 seconds in a minute. 60 minutes in an hour. 360 degrees in a circle (that's 6×60). Even our geographic coordinates—latitude and longitude—subdivide into minutes and seconds based on 60.

And the reason we do this, in our thoroughly decimal world of base-10 mathematics, is because of an algorithm developed in ancient Mesopotamia nearly 4,000 years ago.

Not adapted. Not inspired by. The exact same system.

This is the story of how Babylonian mathematicians created a numbering system so elegant, so useful, that we still can't improve on it—even with computers.

The Problem With Ten

We use base-10 (decimal) for almost everything. Count your fingers—there's why. It's intuitive, it's natural, and for basic counting, it works fine.

But base-10 has a fatal flaw: it's mathematically terrible for division.

Try dividing 10 by 3. You get 3.333... forever. Divide by 4? You get 2.5. Divide by 6? 1.666... repeating.

In fact, 10 is only cleanly divisible by four numbers: 1, 2, 5, and 10.

That's a problem if you're trying to divide things in the real world—land, grain, time, labor.

The ancient Babylonians recognized this. And they did something radical.

They chose a different base: 60.

Why 60 Is Mathematically Perfect

Sixty might seem arbitrary. But mathematically, it's extraordinary.

The number 60 is divisible by: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, and 60.

That's twelve divisors. Compare that to 10's measly four.

What this means in practice is that you can divide 60 into halves, thirds, quarters, fifths, sixths, tenths, twelfths—all without creating fractions.

Need to split something three ways? 60 ÷ 3 = 20. Clean.

Four ways? 60 ÷ 4 = 15. Perfect.

Six ways? 60 ÷ 6 = 10. Easy.

This isn't just convenient—it's transformative when you're running a civilization that depends on precise measurements, fair distribution, and complex calculations.

How Babylonians Actually Used It

The Babylonians didn't count to 60 the way we count to 10. Their system was more sophisticated—and more practical.

They used a sexagesimal (base-60) positional notation system, similar to how we use decimal places.

Here's how it worked:

They combined two sub-bases: 10 and 6.

They counted from 1 to 10 using simple marks. Then they'd add a new symbol for each group of 10, up to 50. At 60, they'd start over with a new positional column.

Think of it like this: we write "123" to mean (1×100) + (2×10) + (3×1). They wrote numbers to mean (first-symbol×60²) + (second-symbol×60) + (third-symbol×1).

This allowed them to represent huge numbers efficiently—and perform complex calculations without calculators.

Mesopotamian scribes could multiply, divide, find square roots, and even approximate π—all using clay tablets and base-60 arithmetic.

The Timekeeping Revolution

But the real genius of base-60 became apparent when the Babylonians turned their attention to the sky.

Ancient Mesopotamians were obsessed with astronomy. They tracked planetary movements, predicted eclipses, and developed detailed star catalogs.

And to do that, they needed to measure time and angles with precision.

They divided the day into 24 hours (2×12, reflecting their 12-month calendar). But within each hour, they used their beloved base-60 system.

One hour = 60 minutes.

One minute = 60 seconds.

The words "minute" and "second" actually come from Latin phrases meaning "first small part" (pars minuta prima) and "second small part" (pars minuta secunda)—divisions of the hour.

But the divisions themselves? Pure Babylonian mathematics.

The Circle Gets Divided

The Babylonians also applied base-60 to circles.

Why 360 degrees in a circle?

Because 360 = 6 × 60.

It's a sexagesimal subdivision of a complete rotation.

And like 60, the number 360 has exceptional divisibility. It's evenly divisible by 24 different numbers, making it perfect for navigation, surveying, and astronomy.

Want to divide a circle into halves? 180 degrees. Thirds? 120 degrees. Quarters? 90 degrees. Sixths? 60 degrees.

This wasn't arbitrary—it was engineered for maximum utility.

How It Spread Across Civilizations

The Babylonian sexagesimal system didn't stay in Mesopotamia.

Greek astronomers adopted it. Specifically, Hipparchus (2nd century BCE) and Ptolemy (2nd century CE) used Babylonian methods to create astronomical tables that would dominate science for over a thousand years.

Ptolemy's Almagest—the most influential astronomy text in history—used degrees, minutes, and seconds based on base-60 to map the heavens.

Arab scholars inherited this system during the Islamic Golden Age. They refined it, added to it, and transmitted it to medieval Europe.

When European scientists began developing mechanical clocks in the 13th and 14th centuries, they naturally adopted the time divisions they'd inherited from Ptolemy and the Arabs—which ultimately came from Babylon.

And those divisions stuck.

Why We Still Use It Today

We've had thousands of years to come up with something better.

During the French Revolution, reformers tried to decimalize time. They created a 10-hour day, with 100 minutes per hour, and 100 seconds per minute.

It failed spectacularly.

Why? Because changing timekeeping isn't just about logic—it's about infrastructure.

By the 1790s, clocks, astronomical tables, navigation charts, and scientific instruments all used sexagesimal time. Switching would mean recalibrating everything.

Plus, base-60 actually works better for the things we use time for: scheduling, dividing the day, and coordinating across time zones.

So we kept the Babylonian system.

Even today, with atomic clocks and GPS satellites, we measure time in hours, minutes, and seconds.

We navigate using degrees, minutes, and seconds of arc.

We synchronize global communications using a timekeeping standard that would be recognizable to a scribe in ancient Ur.

Base-60 in the Modern World

But it's not just clocks and compasses.

The sexagesimal system appears in surprising places throughout modern technology:

GPS coordinates: Your phone's location uses degrees, arcminutes, and arcseconds—base-60 subdivisions.

Astronomy and space exploration: Right ascension and declination (the celestial coordinate system) use hours, minutes, and seconds derived from Babylonian timekeeping.

Aviation: Pilots navigate using headings in degrees, subdivided into minutes and seconds for precision approaches.

Surveying and cartography: Land boundaries and map coordinates still use degrees-minutes-seconds notation.

Music theory: A perfect fifth interval is based on a 3:2 frequency ratio—easier to calculate in base-60 than base-10.

Even computer programmers, who typically work in binary (base-2) or hexadecimal (base-16), still format time output in hours, minutes, and seconds.

Because it's universal. Because it works. Because it's what everyone expects.

The Forgotten Genius of Mesopotamia

Here's what gets me:

When people think of ancient mathematics, they think of the Greeks. Pythagoras, Euclid, Archimedes.

But the Babylonians were doing sophisticated mathematics a thousand years before Greece existed.

They had multiplication tables. Reciprocal tables. Methods for solving quadratic equations. Algorithms for calculating compound interest.

They understood the Pythagorean theorem more than a millennium before Pythagoras was born.

And yet, most people have never heard of Babylonian mathematics.

Why?

Because the Greeks wrote their math down in a form we could translate and understand. They theorized about math as an abstract discipline.

The Babylonians just used math. Practically. To solve real problems.

Their tablets are full of calculations—surveying land, distributing grain, tracking celestial movements. But they rarely explained why the methods worked. They just showed how to do them.

So we inherited their algorithms without realizing where they came from.

What Makes an Algorithm Timeless?

The base-60 system has now lasted nearly 4,000 years.

That's longer than any empire, any religion, any language.

Why?

Because it solves a fundamental problem in a way that's hard to improve.

Good algorithms have certain characteristics:

1. They're mathematically elegant. Base-60's divisibility isn't just convenient—it's optimal for the types of calculations humans need to do regularly.

2. They're adaptable. The same system that helped Babylonians divide grain also helped medieval astronomers map the stars—and helps modern GPS calculate your position.

3. They're embedded in infrastructure. Once everyone's using it, switching becomes exponentially harder.

4. They're intuitive in practice. Even if the math seems odd at first, humans quickly internalize it. Ask anyone what half an hour is, and they'll instantly say 30 minutes—not 0.5 hours.

This is why truly great algorithms stick around.

Not because they're perfect, but because they're good enough—and deeply integrated into how we think and work.

The Algorithms We Don't Notice

Base-60 timekeeping is invisible to most people.

It's just how time works. We don't question it.

But that invisibility is a sign of how deeply embedded it is.

We rely on dozens of ancient algorithms every day without realizing it:

The seven-day week (Babylonian astronomy meets Jewish and Christian tradition).

The 12-month calendar (lunar cycles tracked by countless ancient cultures).

The division of circles into 360 degrees (Babylonian geometry).

The use of 12 as a base for dozens and gross (a competing system to decimal that survives in English measurements).

Even our number symbols—1, 2, 3—are derived from Hindu-Arabic numerals that themselves incorporated ideas from multiple ancient cultures.

These aren't just historical curiosities. They're active, working systems that shape how we organize reality.

And most of them are old—older than nations, older than modern science, older than the printing press.

What We Can Learn From Babylon

The survival of base-60 teaches us something important about innovation:

The best solutions aren't always the most "advanced."

We have computers that can calculate in nanoseconds. We have atomic clocks accurate to billionths of a second. We have technology the Babylonians couldn't have imagined.

And yet, we still divide time using their 4,000-year-old algorithm.

Because it's practical.

Modern tech obsesses over optimization, efficiency, and disruption. But sometimes, the old way is actually better—not because it's traditional, but because it solves a real problem in a way that's hard to improve.

The Babylonians understood something we often forget:

Elegance beats complexity.

A simple system that everyone can use will outlast a sophisticated system that only experts understand.

Practicality beats purity.

Theoretical perfection doesn't matter if nobody adopts it. (Looking at you, metric time.)

Infrastructure beats intention.

Once a system is embedded in how people work, changing it requires extraordinary effort—regardless of whether the new system is "better."

The Next 4,000 Years

Will we still be using 60-second minutes in the year 6000?

Maybe not. Technology changes. Human needs evolve.

But I wouldn't bet against it.

Because the same reasons base-60 has lasted this long are the reasons it will keep lasting:

It works. It's embedded. And nobody's come up with anything better.

In a world obsessed with disruption, that's worth remembering.

Sometimes, the algorithms our ancestors developed weren't just good for their time—they were good, period.

And the greatest tribute we can pay to Babylonian mathematicians isn't building monuments or writing history books.

It's looking at our watches and seeing their work still ticking away, 4,000 years later.

What This Means For You

The story of base-60 isn't just about math or history.

It's about recognizing that the way we do things isn't always arbitrary—even when it seems strange.

Next time you wonder why we use an odd system for something, dig deeper. There's probably a reason. Maybe it's outdated. Or maybe it's a solution that's stood the test of time because it actually works.

And if you're building something—a product, a process, a system—ask yourself:

Am I optimizing for what's theoretically perfect, or what's practically useful?

Am I designing for experts, or for everyone?

Am I creating something that will last a year, or something that could last a thousand?

Because the Babylonians weren't trying to impress anyone.

They were just trying to solve a problem.

And 4,000 years later, we're still using their solution.

That's the kind of work that matters.

That's the kind of thinking we need more of.

Not innovation for its own sake.

But solutions that are so good, so useful, so fundamental, that they become invisible—woven into the fabric of how we understand the world.

That's the algorithm ancient Mesopotamia invented.

And it's still running.

More Articles

← Back to All Posts

Get New Posts in Your Inbox

Join readers who get my latest articles, book updates, and exclusive content delivered weekly.

No spam. Unsubscribe anytime.

You May Also Like