Abakcus

Islamic Science · Geodesy · c. 1030

How al-Biruni Measured the Earth from a Mountain

No desert crossing, no army of surveyors. One hill above a flat plain, one sighting of the horizon, and one right triangle that holds the whole planet.

٠٣٠٦٠٩٠١٢٠١٥٠١٨٠٢١٠٢٤٠٢٧٠٣٠٠٣٣٠α = 0;34°h = 652;3,18r

The line of sight from the summit grazes the earth at the horizon

652cubits
height of the mountain, 652;3,18 in base 60
34′
how far the horizon sank below the level line
1
right triangle, with the earth’s radius as one side
12.85M cubits
his radius of the earth, about 6,340 km
Khwarazm, 973

A boy from the outskirts

Abu Rayhan Muhammad ibn Ahmad al-Biruni was born in September 973 in the outskirts of Kath, the old capital of Khwarazm, on the lower Amu Darya in today’s Uzbekistan. Even his name says so: bīrūn means outside, and al-Biruni is the man from outside the walls. He studied with the mathematician Abu Nasr Mansur, a prince of the ruling family, and before he was twenty-five he was observing eclipses, building instruments and writing to the best astronomers of his day.

His life was pulled about by the politics of Central Asia. Civil war drove him out of Khwarazm in the 990s. Around the year 1000 he dedicated his Chronology of Ancient Nations to Qabus, the ruler of Gurgan by the Caspian. In 1017 Mahmud of Ghazni conquered Khwarazm, and the next year al-Biruni was taken to Ghazni, in what is now Afghanistan, more or less as a prisoner of the court. Mahmud’s armies campaigned across the mountains to the east, and al-Biruni went with them. That is how he came to stand on a ridge in the Salt Range with an astrolabe in his hands.

973
Kath
Born outside the walls of Khwarazm’s capital.
c. 1000
Gurgan
Writes the Chronology of Ancient Nations by the Caspian.
1018
Ghazni
Taken to Mahmud’s court after the fall of Khwarazm.
1020s
Nandana
Climbs a hill above the plain and measures the earth.
c. 1030 – 1048
Ghazni
Writes the Masudic Canon for Sultan Mas’ud and dies around 1048.
A 1973 Soviet postage stamp engraved with al-Biruni in a turban, seated at a desk writing on a scroll beside a stack of books, with the words Abu Reihan Biruni and 1000 years since his birth
A thousand years on · 1973No portrait of al-Biruni survives from his own time. This engraving is a modern imagining, issued in 1973 for the thousandth anniversary of his birth, when stamps for him came out across Central Asia. The scroll and the stack of books are fair, though: he wrote around 146 works, and about a fifth of them survive.Postage stamp of the USSR, 1973, shown here in grey. Public domain, via Wikimedia Commons.
Why measure the earth

Coordinates, calendars and a direction to pray

For an astronomer in the eleventh century the size of the earth was not an idle question. To compute where the moon would be from a given city, or when an eclipse would begin there, you needed that city’s latitude and longitude. To draw a map you needed to turn degrees into distances. And for every mosque and every prayer you needed the qibla, the direction of Mecca, which is a problem in spherical trigonometry that starts from the coordinates of two places on a round earth.

Al-Biruni wrote a whole book on that problem, the Tahdid, or The Determination of the Coordinates of Positions. In it he works out the longitude difference between Ghazni and Baghdad through a chain of spherical triangles, a little over 24 degrees, so that he can find the qibla at Ghazni. The Tahdid, where he first describes the mountain method, was at heart a book about turning toward the Kaaba correctly; the full numbers of the measurement come later, in the Masudic Canon. Measuring creation and facing its Creator were, for him, parts of the same job.

He was not the first to measure the earth. In the third century BCE Eratosthenes compared noon shadows in two Egyptian cities, a method we rebuild step by step in our history of mathematics. Around 830 the caliph al-Ma’mun sent two teams of surveyors from a point in the Sinjar desert, between Mosul and Samarra. One team walked north and one walked south, measuring with ropes and rods until the sky above them had shifted by one degree of latitude. The accepted result was 56⅔ Arabic miles per degree, each mile 4,000 cubits.

Their instrument was more refined, and they took greater pains.Al-Biruni on al-Ma’mun’s surveyors, in Raymond P. Mercier’s translation

Al-Biruni admired that survey and wanted to repeat it. His first plan was to measure a degree on the flat plains north of Dehistan in the Jurjan region, at the south-eastern corner of the Caspian. The plan failed, apparently for lack of money and support. A desert expedition needs camels, guards and months. So he looked for a way to measure the earth that, in his words, did not require walking in deserts.

The Salt Range

A hill above a sea of land

He found it near the fort of Nandana, which guards a pass through the Salt Range in the Jhelum district of today’s Pakistan, about 110 kilometres south of Islamabad. Here the hills rise straight out of the Punjab plain, and to the south the land runs flat to the edge of sight. For a man who wanted a horizon as level as the sea, it was perfect. He had been detained there with the army, and he made use of the wait.

Layered limestone cliffs lit gold by the evening sun, with the ruined towers of Nandana fort standing on the green ridge against a clear blue sky
The ridge of Nandana fort in the Salt Range. Al-Biruni’s peak lies just to the south-west of the fort. Photograph by Amir Islam, CC BY-SA 4.0, via Wikimedia Commons.

The idea is beautifully simple. Stand on top of a mountain and look out over a level plain. Because the earth is round, the horizon is not level with your eye. It sits a little below the horizontal, and the higher you climb, the further it sinks. That small angle, the dip of the horizon, depends on only two things: how high you are and how big the earth is. Measure the dip and the height, and the size of the earth falls out.

The trick is a right angle that nobody can see. Your line of sight to the horizon just grazes the earth, so it is tangent to the globe, and a tangent always meets the radius at 90°. Draw a line from your eye to the centre of the earth, another from the centre to the point on the horizon, and the line of sight between them, and you have a right triangle. The radius is one side. The radius plus the mountain is the hypotenuse. The angle at the centre equals the dip you measured.

Step one

First, the height of the mountain

You cannot drop a rope from a summit to the plain, so al-Biruni measured the height from below. He took the altitude of the summit from two places on the plain, a known distance apart, with the sighting rule of his astrolabe. The nearer station sees the peak at a steeper angle than the farther one, and the difference between those two angles, together with the distance between the stations, fixes the height. It is the same trigonometry surveyors used for the next nine centuries, and the same idea behind a homemade clinometer.

Lab 1Measure the mountain without climbing it
h20.15°40.00°baseline 1,000 cubits
h = d · tan θ₁ · tan θ₂ ÷ (tan θ₂ − tan θ₁)
Height652.1
In base 60652;3,18

Two sightings of the same summit from two points on the plain, a known distance apart, fix the height. The defaults land on al-Biruni’s 652;3,18 cubits.

His result was 652;3,18 cubits. That is how numbers were written in astronomy at the time, in base 60, the system the Babylonians left behind: 652 whole cubits, plus 3 sixtieths, plus 18 thirty-six-hundredths, or 652.055 cubits. He tells us the cubit was the one used for measuring cloth. With a cubit of about half a metre, the mountain stood a little over 320 metres above the plain.

Step two

Then, the horizon

On the summit he set up his astrolabe, levelled the sighting rule, and tilted it down until it lined up with the faint line where the plain met the sky. The angle was tiny, a little more than half a degree. He writes that it was a little less than a third plus a quarter of a degree, which is 35 arcminutes, and that he took it as 0;34, that is 34 arcminutes. An arcminute is a sixtieth of a degree, about the width of a coin seen from a hundred metres away.

Seeing that horizon is harder than it sounds. The Punjab plain is often hazy with dust. A modern scholar who climbed to the spot tried several times to see the horizon and failed, until rain washed the air clean. Al-Biruni does not mention the weather, but he must have waited for a clear day.

View through a ragged opening in the dark stone of Nandana fort, down a green valley with a dry riverbed, out to a flat plain that fades into a pale hazy horizon
The view from the fortLooking out from Nandana over the Jhelum plain. The flat land runs to a soft, hazy line where earth meets sky. Al-Biruni needed to aim his astrolabe at exactly that line, and measure how far below the level it lay.Photograph by Amir Islam, CC BY-SA 4.0, via Wikimedia Commons.
Step three

One triangle, one planet

Now the right triangle does the rest. Call the earth’s radius r, the height of the mountain h, and the dip α. In the triangle the side next to the angle is r and the hypotenuse is r + h, so cos α = r ÷ (r + h). Solve for the radius and you get al-Biruni’s formula:

r = h · cos α ÷ (1 − cos α)The whole method in one line

The formula hides a danger. The dip is so small that cos α is extremely close to 1, so the denominator 1 − cos α is a tiny number, about five hundred-thousandths. Dividing by a tiny number magnifies every error. Change the dip by one arcminute and the radius moves by hundreds of kilometres. Try it below with al-Biruni’s own numbers, and see what happens when you nudge the horizon.

Lab 2Stand on al-Biruni’s mountain
α = 0;34,0°horizonh = 652.1 cubitsr ↓ to the centrenot to scale: the real dip is about fifty times smallertrue radius 6,371 km28′31′34′37′40′radius you would compute
r = h · cos α ÷ (1 − cos α)
cos α = 0;59,59,49,2,28 (his table)
Radius in cubits12,851,370
Radius in km6,340
Miles per degree56.07
Off from 6,371 km−0.5%

Move the dip by a single arcminute and the earth grows or shrinks by hundreds of kilometres. That is why the horizon reading was the hard part, and why one wrong digit deep in a table of cosines could matter.

The trigonometry is the same that every student meets on the unit circle, but al-Biruni had no calculator. He took the cosine of 0;34° from a table, as the sine of its complement 89;26°, and wrote it as 0;59,59,49,2,28 in base 60. That left a denominator of 0;0,0,10,57,32. Dividing, he found the radius of the earth to be 12,851,369;50,42 cubits. Using 22/7 for π, he turned that into a circumference of 80,780,039 cubits, and a degree of 56;5,50 Arabic miles.

The honest part

A little luck in the last digits

Converted with a cubit of about 49.3 centimetres, al-Biruni’s radius is about 6,340 kilometres, within half a percent of the modern mean radius of 6,371. That figure is repeated everywhere, and it is true as arithmetic. But historians who have checked his work, above all Raymond P. Mercier, point out that it hides some luck.

The correct value of cos 0;34° is 0;59,59,49,26, not 0;59,59,49,2,28. The slip sits in the fourth sexagesimal place, a few millionths, and in almost any other calculation it would not matter. Here, divided into the tiny denominator, it matters a lot. With the exact cosine the same mountain and the same dip give a radius of about 13.33 million cubits and 58;11 miles per degree, roughly 3 to 4 percent too large. Press the Exact cosine button in the lab above to see it. Al-Biruni landed close to al-Ma’mun’s 56⅔ miles partly by accident.

There are other uncertainties. Nobody knows his cubit to better than a few centimetres, and the peak most likely meant rises only about 265 metres above the plain, which would make his 652 cubits long. He also could not know that air bends light near the ground, lifting the horizon and shrinking the dip by a few arcminutes. Mercier even suspects that the 34 arcminutes was worked out backward from the known size of a degree rather than read straight off the instrument. None of this takes away from the method, which is exactly right. It only reminds us that a measurement is as good as its smallest angle.

Al-Biruni seems to have known it. After all his work, he did not replace the old value with his own. He kept al-Ma’mun’s 56⅔ miles, because the surveyors in the Sinjar had finer instruments and took greater pains. In an age that loved certainty, that is a striking piece of scientific modesty.

Six measurements of the earthCircumference in km · red line is today’s 40,030
01c. 240 BCE
EratosthenesNoon shadows in Syene and Alexandria, 252,000 stadia
−1 to +16%
02c. 830
Al-Ma’mun’s surveyorsTwo teams pace a degree across the Sinjar plain: 56⅔ miles
+0.6%
03c. 1030
Al-Biruni, as computedA mountain at Nandana, a 34′ dip, his cosine table
−0.5%
04c. 1030
Al-Biruni, exact cosineThe same mountain and dip, with today’s value of cos 34′
+3.2%
051669
Jean PicardA chain of triangles from Paris to Amiens, measured with telescopes
0.0%
06Today
Satellite geodesyMean radius 6,371 km
—
Eratosthenes’ figure depends on which stadion he used: 157.5 m gives 39,690 km, 185 m gives 46,620 km. The Arabic figures assume a cubit of 49.3 cm and a mile of 4,000 cubits. Bars start at 34,000 km.
The rest of the man

Moons, metals and a moving earth

The mountain is one page in an enormous body of work. Al-Biruni proved the sine theorem for plane and spherical triangles, crediting his teacher Abu Nasr Mansur. He compiled tables of sines and tangents and the coordinates of some six hundred places. He coordinated an eclipse observation in 997 with Abu al-Wafa in Baghdad, each of them timing the same lunar eclipse, to find the longitude difference between their two cities.

A manuscript page in Persian: the Sun drawn as a circle on the right, red construction lines running to six moons arranged around a circle, each moon half black and half red to show its phase, with lines of black and red script below
Kitab al-Tafhim · the phases of the moonFrom his Book of Instruction, a primer on mathematics and astronomy that he wrote in both Arabic and Persian. Red lines run from the Sun to the moon at six points of its orbit, and the black and red halves show how much of the lit face we see from earth. It is the same red and black rubrication this page borrows its colours from.Illustration from a manuscript of al-Biruni’s Book of Instruction. Public domain, via Wikimedia Commons.

In his book on gems and minerals he measured specific gravity, weighing stones and metals in air and in water with a balance and a vessel of his own design, and ranked them by density and hardness. In the Masudic Canon, the great astronomical handbook he wrote around 1030 for Sultan Mas’ud, he kept the earth at rest, but he discussed openly whether it might turn, observed that the astronomy works the same either way, and praised an astrolabe built on the idea of a moving earth. Al-Biruni left the question to physics, which is where it was eventually settled.

A two-page spread of an Arabic manuscript of the Masudic Canon in grey tones, dense lines of script on both pages, with three faint geometric diagrams of circles on the right-hand page
Al-Qanun al-Mas’udiA spread from a copy of the Masudic Canon. Its fifth book, seventh chapter, is where al-Biruni sets out the mountain method and his figure of 56;5,50 miles per degree. Later astronomers, including those whose textbooks are described in our piece on al-Jaghmini’s manuscript, built on handbooks like this one.Manuscript of the Masudic Canon, Bibliothèque nationale de France. Public domain, via Gallica and Wikimedia Commons.
Coda

What one person can measure

Eratosthenes needed two cities, a reported distance, and the sun at the solstice. Al-Ma’mun needed two teams, a desert and the treasury of a caliphate. Al-Biruni needed one hill, one flat horizon, one astrolabe and one afternoon, and he turned a captive’s idle days into a measurement of the world. His method appears again in European textbooks centuries later, and it is still taught because it is so clean.

It is also a lesson in reading numbers. A formula can be perfect and its answer still fragile, because some measurements carry more weight than others. Al-Biruni’s smallest angle was his most important one, and he was honest enough to trust a better survey over his own. If you would like to try the shadow side of this story yourself, a homemade sundial is a good place to start.

Questions

Frequently asked

How did al-Biruni measure the size of the earth?

He first measured the height of a mountain beside a flat plain by sighting its summit from two points on the ground. Then he climbed it and measured how far the horizon dipped below the level line, about 34 arcminutes. The line of sight to the horizon touches the earth at a right angle to the radius, so one right triangle gives the radius: r = h·cos α ÷ (1 − cos α).

Where did al-Biruni make his measurement?

On a peak near the fort of Nandana, at the southern edge of the Salt Range in today’s Jhelum district of Pakistan, about 110 km south of Islamabad. The hills there rise straight out of a wide, flat plain, which gave him a clean horizon to measure.

What value did al-Biruni get for the earth’s radius?

He found a radius of 12,851,369 cubits, which works out to about 56 Arabic miles per degree. Converted with a cubit of about 49 cm, that is close to 6,340 km, against a modern mean radius of 6,371 km. Historians point out that his cosine table was slightly off in its last places; with the exact value the same numbers give a radius about 3–4% too large.

How accurate was al-Biruni’s measurement really?

Less certain than the famous ‘within one percent’ claim suggests. The cubit he used is not known exactly, he could not correct for atmospheric refraction, which nobody understood at the time, and the dip angle is so small that an error of one arcminute changes the result by hundreds of kilometres. Al-Biruni himself preferred the value of al-Ma’mun’s surveyors because, as he wrote, their instruments were finer.

Was al-Biruni’s method better than Eratosthenes’?

It was more practical. Eratosthenes needed two cities far apart on roughly the same meridian and a good figure for the distance between them. Al-Biruni needed only one mountain, a flat plain and an astrolabe, so one person could do it in a few days without crossing a desert. The weak point is that the angle he had to read is tiny.

Sources

  • R. P. Mercier, “Geodesy”, in The History of Cartography, vol. 2.1, University of Chicago Press (1992), 175–188.
  • Al-Biruni, The Determination of the Coordinates of Positions for the Correction of Distances between Cities (Tahdid), trans. Jamil Ali, Beirut (1967).
  • Al-Biruni, al-Qanun al-Mas’udi, 3 vols., Hyderabad (1954–56).
  • M. Yano, “Biruni”, in The Biographical Encyclopedia of Astronomers.
  • MacTutor History of Mathematics, “Abu Arrayhan Muhammad ibn Ahmad al-Biruni”.
  • H. G. Topdemir, “Bîrûnî’nin Bilimsel Çalışmaları III”, Bilim ve Teknik 705 (August 2026), 78–81.

Beyond Euclid

Liked this? Get one like it every week.

One email a week, handpicked by Ali. 240 issues so far, free.