How Pythagoras Powers Your Video Games
You might think Pythagoras’s theorem is just a dusty formula from school—after all, a² + b² = c² feels like something you learn once and forget. But next time you’re gaming, remember that same formula is hard at work behind the scenes. Whether it’s checking if your arrow hits a target or rendering that sweeping mountain vista, right-angled triangles are the secret engines in modern video games.
Where did this come from?
Long before consoles and PC graphics, ancient builders knew about right angles. Egyptian surveyors used a knotted rope with 12 equal segments to form a 3-4-5 triangle—guaranteeing perfect right angles when laying foundations for temples. Later, the Greek philosopher Pythagoras (around 500 BCE) and his followers gave the theorem its famous proof and name. Fun fact: some historians think the Babylonians already used the same idea centuries earlier, but it was Pythagoras’s school that turned it into a mathematical cornerstone.
Where you’ll see this in real life
• Collision detection in video games requires computing the straight-line distance between characters or objects—if that distance is less than a certain value, you’ve hit your target.• 3D graphics engines use the theorem to calculate how far away each point in a scene is from the virtual camera, so objects scale correctly as they move closer or farther.• GPS devices approximate short distances on Earth by treating latitude and longitude differences as legs of a right triangle.• Even in sports field design, a quick 3-4-5 check ensures goalposts and sidelines meet at perfect right angles.
A common misconception
Many students think the Pythagorean theorem only works with neat integer triples (3-4-5, 5-12-13, etc.). In reality, it applies to every right-angled triangle, whether the sides are whole numbers, fractions or irrational lengths. Embracing this fact opens the door to solving all kinds of distance problems—even in pixelated virtual worlds.
Ready to practise?
Turn this idea into a short Mathyard worksheet with instant questions and worked solutions.
Generate a worksheet on this topicMathyard Team
The Mathyard team builds tools to help students and teachers get more out of maths practice.
