How the hell does Wolfram Alpha work?

WolframAlpha
WolframAlpha is extremely clever, but how does it work?

As it's generated more hype than swine flu you're probably already familiar with Wolfram Alpha, a powerful new knowledge engine that promises to be the ultimate in online encyclopaedias. (You're not? Take a look at our Wolfram Alpha review.)

What you might not have read about is how Wolfram Alpha works, and exactly what's going on behind the scenes of the rather unassuming web site. And we're just about to tell you.

Massive database

It all starts with the database. Wolfram Alpha has access to many trillion elements of data covering topics from maths to nutrition, physics to music, weather to anagrams.

Some of this data arrives in real time. Ask for a share price, for instance, and you'll get a value that's no more than a minute old (if the relevant exchange allows it, anyway).

STOCK INFO: Wolfram Alpha has extensive data on stocks and shares going back many years

But most data is input through a more complex, part automated, part manual system. The first step comes in choosing sources. There's no general automatic input from the web here: instead Wolfram Alpha staff work with experts in different domains to decide which sources are the best.

This has produced some impressive results, the company doing special deals with the owners of proprietary databases that they believe are important, delivering access to information that wasn't previously available online.

The data then goes through an automated procedure to clean and check it. And after that it's verified by real-life experts (some on the Wolfram Alpha staff, some outside) to confirm that it all seems reliable.

This all seems rigorous enough, and you can certainly understand the need to be careful. After all, just one or two stories of inaccuracies in Wolfram Alpha would be enough to undermine its reputation.

But what if you're researching something where there's disagreement, like how dangerous it is to breath in second hand smoke, or the number of civilian casualties in Iraq in the past few years? Here the source is everything. Wolfram Alpha will tell you where its data comes from in any response, but if it doesn't use a good range of sources then you may not get the full picture.

Mathematica

A large database is just the start. The real value in Wolfram Alpha comes from how all this information can be organised and related.

Take colours, for example. Wolfram Alpha's creators taught the system various facts about "red", including that it's represented by the code #FF0000 in HTML. But they also added an additional algorithm explaining that two colours can be combined to produce a third, which is why entering a query like "red + yellow" will display orange as a result.

The process continued with the creation of many more algorithms, each providing a little more real world understanding of how data can be used. And the complete set were then implemented in Mathematica, another Stephen Wolfram project, using 5 to 6 million lines of program code.

If you're trying to create models that cover all real world knowledge then five to six million lines really isn't a lot, but in part this is because the Mathematica programming language offers many built-in shortcuts.

DISPLAYING DATA: Mathematica can display items of data, graphs and more, all in just one line of code

Curious about the weather, for instance? A Mathematica program can access it in a single line like "In[1]:=WeatherData["Leeds", "Temperature"]". Microsoft share price? "FinancialData["MSFT"]". The names of Neptune's moons? "AstronomicalData["Neptune", "Satellites"]"

And there's much more. Mathematica lies at the heart of Wolfram Alpha, so if you're keen on finding out more about how it works then it's worth taking a look at the language. We'd recommend starting on the official Mathmatica Documentation Centre.

Mike Williams
Lead security reviewer

Mike is a lead security reviewer at Future, where he stress-tests VPNs, antivirus and more to find out which services are sure to keep you safe, and which are best avoided. Mike began his career as a lead software developer in the engineering world, where his creations were used by big-name companies from Rolls Royce to British Nuclear Fuels and British Aerospace. The early PC viruses caught Mike's attention, and he developed an interest in analyzing malware, and learning the low-level technical details of how Windows and network security work under the hood.

Latest in Tech
The best tech of MWC 2025 examples, including the Nothing Phone 3a Pro, the Nubia Flip 2, and the Lenovo Solar PC
Best of MWC 2025: the 10 top tech launches we tried on the show floor
Toy Fair 2025 Primal Hatch
The 7 best toys we saw at Toy Fair 2025, from a Lego boat to a hatching, robotic dinosaur
ICYMI
ICYMI: the 7 biggest tech stories of the week, from a next-gen Alexa to the new iPhone 16e
A triptych image featuring the Beats Powerbeats Pro 2, iPhone 16e and Amazon Echo Show 21.
5 hottest tech reviews of the week: the gorgeous, affordable iPhone 16e and Amazon's epic 21-inch Echo Show
Apple Airtag four pack on orange background with lowest price sign
The Apple AirTags are now even cheaper than Black Friday thanks to a surprise price cut at Amazon
Acer Predator Helios Neo 14 on purple background with big savings text overlay
Portable and powerful, the Acer Predator Helios Neo 14 gaming laptop with an RTX 4070 is $600 off right now
Latest in News
A hand holding a phone showing the Android Find My Device network
Android's Find My Device can now let you track your friends – and I can't decide if that's cool or creepy
Insta360 X4 360 degree camera without lens protector
Leaked DJI Osmo 360 image suggests GoPro and Insta360 should be worried – here's why
A YouTube Premium promo on a laptop screen
A cheaper YouTube Premium Lite plan just rolled out in the US – but you’ll miss out on these 4 features
Viaim RecDot AI true wireless earbuds
These AI-powered earbuds can also act as a dictaphone with transcription when left in their case
The socket interface of the Intel Core Ultra processor
Intel unveils its most powerful AI PCs yet - new Intel Core Ultra Series 2 processors pack in vPro for lightweight laptops and high-performance workstations alike
An Nvidia GeForce RTX 5070
Nvidia confirms that an RTX 5070 Founders Edition is coming... just not on launch day