tooldeb Online Tools
Categories
Finance & Investing Interest, savings, returns, and inflation. Loans & Property Mortgages, repayment, DSR/DTI/LTV, and jeonse. Tax & Payroll Take-home pay, severance, insurance, and taxes. Shopping & Pricing Discounts, tips, unit price, and margins. Health & Fitness Body metrics, nutrition, and training. Math Percentages, fractions, algebra, and sequences. Geometry Area, volume, and surface of plane and solid shapes. Statistics & Probability Averages, spread, combinations, and odds. Unit Conversion Length, weight, temperature, pressure, and more. IT & Digital Data size, screens, color, and network speed. Engineering & Electronics Circuits, resistance, PCB, and signals. Date & Time Ages, D-day, date math, and time zones. Home & Interior Paint, tile, wallpaper, flooring, and concrete. Automotive Fuel cost, economy, tires, and vehicle tax. Everyday Bills, delivery, photos, and odds and ends.
EN
한국어 English

Distance Between Two Points Calculator

Enter the coordinates of two points on a plane to find the distance between them and their midpoint.

Inputs
Distance between the points
5.0000
Midpoint x
1.50
Midpoint y
2.00
Results are rounded for display. Coordinates can be any real number, including 0 and negatives.

How distance and midpoint are calculated

The distance formula applies the Pythagorean theorem to the x- and y-coordinate differences between the two points. The midpoint simply averages the x-coordinates and the y-coordinates separately.

d = √((x2−x1)² + (y2−y1)²) Midpoint = ((x1+x2)/2, (y1+y2)/2)
  • x1, y1 — coordinates of point 1
  • x2, y2 — coordinates of point 2
  • d — distance between the two points

More detail

Where the formula comes from

Draw a right triangle with legs (x2−x1) and (y2−y1); the segment joining the two points is the hypotenuse. The distance formula is just the Pythagorean theorem (a² + b² = c²) applied to that triangle.

Quick check. Points (0,0) and (3,4) form a 3-4-5 right triangle, so the distance comes out to exactly 5 — a fast way to sanity-check the calculator.

Frequently asked questions

How is the distance between two points calculated?

Square the x-coordinate difference and the y-coordinate difference, add them, then take the square root: d = √((x2−x1)² + (y2−y1)²). For (0,0) and (3,4) that's √(3²+4²) = √25 = 5.

How is the midpoint calculated?

Average the two x-coordinates and the two y-coordinates separately: midpoint = ((x1+x2)/2, (y1+y2)/2). For (0,0) and (3,4) the midpoint is (1.5, 2).

Can I enter negative or zero coordinates?

Yes. x and y can be any real number, positive, negative, or zero — and if both points share the same coordinates the distance simply comes out to 0.

Does this formula work in 3D?

The formula above is for a 2D plane (x, y) only. In 3D you'd add a squared z-coordinate difference: d = √((x2−x1)² + (y2−y1)² + (z2−z1)²).

Related calculators

Browse all Geometry calculators