CalcDepo

Distance and Midpoint on a Number Line

Find distance and midpoint between two numbers.

Inputs

Results

Distance12
Midpoint-1

Chart

Not what you need? Search by intent

Describe what you want to find β€” β€œabsolute difference” β€” and jump to the right calculator.

How to use the distance and midpoint on a number line calculator

Find distance and midpoint between two numbers. Enter first number, second number in the fields above; the distance, midpoint are computed instantly and plotted on the chart so you can see how the answer changes.

Formula

Distance = abs(a-b)
Midpoint = (a+b) / 2

Variables

  • a β€” First number
  • b β€” Second number

Worked example

With first number = -7, second number = 5, the calculator gives distance β‰ˆ 12; midpoint β‰ˆ -1.

Frequently asked questions

What is the formula for the distance and midpoint on a number line calculation?

Distance = abs(a-b). Midpoint = (a+b) / 2. Here a is first number, b is second number.

What inputs do I need for the distance and midpoint on a number line calculator?

You need first number, second number. Each field is pre-filled with a typical example so you can see how the result responds as you edit the numbers.

How do I use this calculator?

Type values into the input fields. Results and the chart update instantly. Use Reset to restore the example values, Copy results to paste them elsewhere, or Share to copy a link that preserves your inputs.

Is the result exact?

Calculations use standard formulas and double-precision arithmetic, then display about seven significant figures. Real-world measurements carry uncertainty, so treat results as estimates unless your inputs are exact.

Related calculators

More in Algebra & Calculus: Percentage Β· Percent Increase and Decrease Β· Ratio Simplifier Β· GCD and LCM Β· Divisor Count Β· Quadratic Equation Β· Linear Equation Β· System of Two Linear Equations