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.
The line of sight from the summit grazes the earth at the horizon
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.

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.
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.
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.

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.
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.
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.
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.

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:
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.
cos α = 0;59,59,49,2,28 (his table)
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.
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.
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.

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.

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.
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.





