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
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.