How Mathematics Shows Up in Software Engineering (More Than You Think)
A practical reflection by Sapphire Haeward on how mathematical thinking appears inside real software systems, from structured logic to geospatial calculations like the Haversine distance formula.

Math Is Already in the System
A lot of people assume mathematics and software engineering are separate. In reality, mathematics shows up in software all the time. It is just often hidden behind clean interfaces and simple user actions.
Most users never see the formulas, the calculations, or the logic underneath. They just experience the final result. But underneath many useful features, there is mathematical structure doing the work.
The Haversine Distance Formula
One clear example is location-based software. If you have ever used an app that shows people near you, nearby listings, or distance-aware results, there is a good chance a mathematical distance formula is involved.
A common formula used for this is the Haversine distance formula. It calculates the distance between two points on the Earth using latitude and longitude. Because the Earth is curved, this is more accurate than treating the surface like a flat grid.
In practical software terms, this allows applications to figure out who is actually close to whom. It can be used to find nearby users, sort results by proximity, and create location-aware experiences that feel much more useful to the person using the product.
How That Shows Up in Real Apps
I have used this kind of logic directly in systems where distance matters. If you want people to find other people who are closer to them, the application needs a way to store location data, compare users against each other, and calculate who falls within a useful radius.
That is where formulas like Haversine become part of the product itself. They are not just academic exercises. They actively shape what the user sees and how the application behaves.
When a user opens an app and finds people who are geographically closer to them, that experience may feel simple. But under the surface, there is mathematical reasoning helping make that possible.
It Is Not Just About Formulas
Mathematics also shows up in software engineering through problem-solving itself. Ranking content, filtering results, handling real-time updates, and designing fair systems all require structured reasoning.
Even when the math is not visible as a formula, the mindset still matters. Precision, logic, consistency, and the ability to think through how systems behave are all deeply mathematical habits.
What Math Changed for Me
For me, studying mathematics did not just teach formulas. It changed how I approach software engineering. It made me more deliberate about structure, more careful about logic, and more intentional about how systems are designed.
Once you start noticing it, you realize mathematics is everywhere in software, even when the user never sees it. It is often the invisible layer that makes the visible product actually work.
Written by Sapphire Haeward ยท Mathematics Graduate ยท Full-Stack Software Engineer