Math Calculators

Distance Calculator

Use this distance calculator to solve a math task around distance with visible inputs, formula notes, and a reusable example.

Primary answer
Distance
Inputs to verify
First point x, First point y, and Second point x
Use type
Use as a direct calculation check.
Keyword intent
distance calculator

Calculator

Distance Calculator

Calculates distance from first point x, first point y, second point x. Defaults are filled in so you can review a working example before changing inputs.

X-coordinate of the first point.

Y-coordinate of the first point.

X-coordinate of the second point.

Y-coordinate of the second point.

Result

Result reflects the current submitted inputs.

  • Risk A
  • Reviewed 2026-05-26
  • 1 sources
Distance5 units
Horizontal change3 units
Vertical change4 units
Squared distance25 square units
  • Coordinates are interpreted as Cartesian points in the same unit system.
  • The result is straight-line planar distance, not travel or geographic surface distance.
  • Intermediate values are not rounded; raw outputs are rounded to 10 decimal places for stability.

Accuracy notes

Risk level
A
Reviewed
2026-05-26
Sources
1
Primary result
Distance

Formula logic is kept in a pure calculator module with fixtures, source notes, and page-visible assumptions.

What the result means

Distance is the number to carry forward from this distance calculation. Use the primary result for the distance task, then check the secondary outputs for context. Use horizontal change, vertical change, and squared distance to explain why distance moved when an input changed. Copy the result only after the inputs, assumptions, and source notes match your case. Check unit handling, rounding, included inputs, excluded inputs, and source version before treating the result as final.

DistanceDisplayed as decimal in units.
Horizontal changeDisplayed as decimal in units.
Vertical changeDisplayed as decimal in units.
Squared distanceDisplayed as decimal in square units.

Use the result this way

  1. Start with Distance, then use supporting outputs only to explain the primary answer.
  2. Verify first point x, first point y, and second point x before copying the result.
  3. Stay within the documented minimum and maximum ranges.
  4. Copy the result only after the inputs, assumptions, and source notes match your case.

User job

How to use this calculator

Use Distance Calculator when you need distance, then use horizontal change and vertical change to check the context for quick number work, classwork, spreadsheet checks, and explaining a calculation to someone else.

Best for

  • Checking the core numeric relationship
  • Comparing the main result with supporting outputs
  • Reviewing a default example before entering your own first point x and first point y.

Check before relying

  • Confirm sign, decimal, percent, and rounding assumptions before copying the number.
  • Coordinates are interpreted as Cartesian points in the same unit system.
  • The result is straight-line planar distance, not travel or geographic surface distance.
  • Source context: OpenStax, reviewed 2026-05-26.

Next useful step

  • Slope CalculatorUse next when you need slope from first point x and first point y after checking distance.
  • Speed CalculatorUse next when the unit conversion comparison needs speed inputs such as solve for and distance.
  • Tire Size CalculatorUse next when the unit conversion task needs current diameter instead of distance.

Formula

Distance is the square root of the squared horizontal change plus the squared vertical change. Key assumptions: Coordinates are interpreted as Cartesian points in the same unit system. The result is straight-line planar distance, not travel or geographic surface distance. Intermediate values are not rounded; raw outputs are rounded to 10 decimal places for stability.

  • Distance is the square root of the squared horizontal change plus the squared vertical change.
  • Coordinates are interpreted as Cartesian points in the same unit system.
  • The result is straight-line planar distance, not travel or geographic surface distance.
  • Primary source context: OpenStax.

Inputs

Enter first point x, first point y, second point x, and second point y for number checks, homework, spreadsheet review, and quick comparisons. Before calculating, stay within the documented minimum and maximum ranges. First point x: X-coordinate of the first point. First point y: Y-coordinate of the first point. Second point x: X-coordinate of the second point. Second point y: Y-coordinate of the second point.

First point xX-coordinate of the first point.
First point yY-coordinate of the first point.
Second point xX-coordinate of the second point.
Second point yY-coordinate of the second point.

Example

Using the default inputs, Distance Calculator returns distance of 5 units. Adjust first point x, first point y, second point x, and second point y to match your own scenario.

FAQ

How is distance calculated here?

Distance is the square root of the squared horizontal change plus the squared vertical change. The first assumption to check is: Coordinates are interpreted as Cartesian points in the same unit system.

What does Distance mean for distance?

Use the primary result for the distance task, then check the secondary outputs for context. Secondary values such as horizontal change, vertical change, and squared distance are there to explain the primary answer, not to replace it.

What should I enter for First point x?

X-coordinate of the first point. Stay within the documented minimum and maximum ranges.

How does First point y change distance?

Y-coordinate of the first point. Changing it can alter distance because the formula uses the submitted inputs together. Also compare unit handling, rounding, included inputs, excluded inputs, and source version.

Why does the distance example show 5 units for distance?

The default inputs produce 5 units for distance. Treat that as a format and scale check, then replace every default value with your own inputs.

Why does rounding matter for distance?

Rounding affects the displayed answer and can compound if you reuse the number. Keep more precision for intermediate work when the next step depends on it.

Sources

Last reviewed: 2026-05-26

  • Reviewed 2026-05-26
    College Algebra 2e, Section 2.1 The Rectangular Coordinate Systems and GraphsOpenStax. Distance between two Cartesian points as a square-root formula derived from the Pythagorean theorem.
    Scope
    General algebra reference for the rectangular coordinate plane and distance formula.
    Supports
    Distance between two Cartesian points as a square-root formula derived from the Pythagorean theorem.