Why Do We Use ‘X’ To Mean ‘Unknown’?

  • Boy solving math problem, 1950s
Boy solving math problem, 1950s
Credit: © H. Armstrong Roberts/ClassicStock—DreamMedia/Getty Images
Author Bess Lovejoy
August 12, 2026

Love it?

For centuries, “X” has marked the spot when we don’t know where exactly the spot is. Its use in algebra to mean an unknown quantity spread into the wider culture, giving “X” an air of mystery, as seen in titles such as The X Files and even the term “X-rays,” named by their discoverer Wilhelm Röntgen in 1895 because he wasn’t quite sure what he’d found. 

The idea of “X” marking the spot on pirate treasure maps likely goes back to Robert Louis Stevenson’s Treasure Island, but the letter’s use in math is murkier in origin. So how did “X” come to denote a mystery? 

Credit: © Print Collector—Hulton Archive/Getty Images

Lost in Translation

Ancient civilizations used a variety of ways to indicate unknown quantities, but their math problems were generally written out using words, rather than notation. In one ancient Egyptian papyrus, for example, a scribe used the hieroglyphic symbol referred to as aha (which means something like “heap” or “mass”) to denote an unknown quantity. And in ancient Babylonia, a scholar wrote of two unknowns by describing them as the “first silver thing” and the “second silver thing.” Other systems used colors or coins. There wasn’t one standard word, or symbol, to mean “unknown.”

Algebra flourished during the Islamic Golden Age (750-1258 CE) in modern-day Iraq. Mathematician Muhammad Al-Khwarizmi’s influential ninth-century treatise Kitab al-jabr wal-muqabala, translated into Latin in the 1100s, introduced Arabic numerals to the West (although it’s worth noting they aren’t Arabic in origin, but originally came from India). 

The first translations of this treatise, and many other Arabic math manuscripts, happened in 12th-century Spain. But according to one theory behind the origin of “X,” the medieval Spanish translators hit a snag: The Arabic letter shin (ش), which makes a “sh” sound, has no direct Spanish translation. This became a problem because the Arabic word al-shayun, meaning “something” or “the unknown thing,” was frequently used in these manuscripts to mean an unknown quantity, and was abbreviated with the letter shin.

Because the Spanish translators had no equivalent letter for the “sh” sound, they chose the classical Greek letter χ (chi), which makes a “ck” sound, as the equivalent. This later became the Latin “X,” and was eventually adopted by mathematics textbooks. 

That’s one theory, anyway. Some scholars argue that Spanish already has an “X,” which has been pronounced in certain times and places with a “sh” sound, which means the translators could have used their own “X” without needing to borrow from Greece. 

But not everyone is convinced that Spanish translators are the key to the story of “X.”