Slope Calculator
Slope from two points, an equation or rise and run, as a fraction, angle and percent grade, with steps.
Enter two points to find the midpoint of the line segment between them with , shown in exact steps.
Midpoint M
The point (2, 2) lies exactly halfway between (−2, 7) and (6, −3), about 6.403 units from each.
Write the midpoint formula
Average each coordinate of the two endpoints.
Substitute the coordinates
Add, then divide by 2
Find the distance between the endpoints
This is the distance formula, the Pythagorean theorem applied to the coordinate differences.
Find the perpendicular bisector
Its slope is the negative reciprocal of the slope of AB, and it passes through the midpoint.
It also works for two numbers, 3D points and a missing endpoint.
(2, -3) for . Parentheses are optional, and commas or spaces both separate the coordinates.(1, 0, 4), to work in 3D, or type a single number in each box, such as 4 and 18, for the halfway point on a number line. Both points must have the same number of coordinates.-1/2, 0.75 and 1 1/2 are kept exact, so the answer is exact too.Midpoint formula
Plain-text formula: M = ((x_1 + x_2)/2, (y_1 + y_2)/2)
Each coordinate of the midpoint is the average of the matching coordinates of the endpoints. In 3D, add a third coordinate in the same way.
Missing endpoint
Plain-text formula: x_2 = 2x_m − x_1, y_2 = 2y_m − y_1
Rearranging the midpoint formula gives the other endpoint when you know one endpoint and the midpoint .
Section formula (point at a ratio)
Plain-text formula: P = ((nx_1 + mx_2)/(m + n), (ny_1 + my_2)/(m + n))
P lies on AB with . With this is the midpoint formula. P is of the way from A to B.
Distance formula
Plain-text formula: d = √((x_2 − x_1)^2 + (y_2 − y_1)^2)
The length of AB, from the Pythagorean theorem (the Pythagorean theorem calculator shows that triangle). The midpoint formula averages the coordinates while this formula uses their differences, and the two fit together: the midpoint is from each endpoint, a quick check on any answer.
The midpoint is the one point on line segment AB that is the same distance from both ends. Its coordinates are averages, so they can be fractions even when the endpoints are whole numbers: the midpoint of (1, 2) and (4, 7) is .
The perpendicular bisector is the line through the midpoint at a right angle to AB. Every point on it is the same distance from A and B, which is why it is used to find the center of a circle through three points. To see it, plot the segment and the bisector equation in the graphing calculator.
A common mistake is to subtract the coordinates instead of adding them. Subtracting gives the change , which belongs in the slope and distance formulas, not the midpoint formula. Another is to drop a negative sign: with and , the sum is , not 12.
This page finds the midpoint of two points on a coordinate plane or in 3D space. Other tools that share the name answer different questions, and some of them use the same averaging idea.
On a number line, the midpoint of two numbers and is their average . The midpoint of 4 and 18 is 11. That is the 1D case of the formula above, and the calculator does it when you type one number in each box. The same works for a measurement: the center of a board marked from 12 cm to 87 cm is at 49.5 cm.
In a negotiation, the midpoint between an offer and a demand is also their average: halfway between 40,000 and 100,000 is 70,000. Type the two amounts as single numbers to get it with steps.
On a map, the halfway point between two places is not the plain average of their latitudes and longitudes. The Earth is curved, so a geographic midpoint is measured along a great circle with spherical trigonometry, and averaging longitudes fails badly across the 180° meridian. This calculator works on flat coordinates only, so use a mapping tool for travel or meeting points.
All three are weighted averages of points. The table compares them for A = (0, 0) and B = (9, 6), and for a triangle with vertices (0, 0), (4, 0) and (2, 6).
| Point | Formula | Example |
|---|---|---|
| Midpoint of AB | (4.5, 3) | |
| Point one third of the way from A (ratio 1 : 2) | (3, 2) | |
| Centroid of a triangle ABC | (2, 2) |
Find the midpoint of the segment from A(−4, 3) to B(8, −2), and check it with the distance formula.
Answer: The midpoint is . It is 6.5 units from each endpoint of a segment 13 units long.
Add the two x-coordinates and divide by 2, then do the same with the y-coordinates. For (2, 5) and (8, 1), the midpoint is .
Double the midpoint and subtract the endpoint you know: and . With A = (3, −1) and M = (5, 4), the other endpoint is (7, 9). Choose Missing endpoint above to do this with steps.
Yes. Whenever a sum of coordinates is odd, the midpoint has a half, such as . Negative coordinates work the same way as positive ones; just keep the signs when you add.
Average all three coordinates: . The midpoint of (1, −2, 4) and (7, 6, −2) is (4, 2, 1). Type three coordinates per point above to use 3D.
Then the midpoint is that same point and the distance between them is 0. There is no single perpendicular bisector, because a segment of length 0 has no direction.
The midpoint is the average of two points. The centroid of a triangle is the average of its three vertices, and it is where the three medians meet (each median joins a vertex to the midpoint of the opposite side). Choose Several points above to find it.
Work out one coordinate at a time, keeping the brackets so the whole sum is halved. For (−4, 3) and (8, −2), type (-4 + 8) / 2 to get 2, then (3 + -2) / 2 to get 0.5, so the midpoint is (2, 0.5). On many handheld scientific calculators the negative sign is a separate key from subtract. The scientific calculator here accepts the same keystrokes.
Slope from two points, an equation or rise and run, as a fraction, angle and percent grade, with steps.
Plot functions, equations, inequalities, parametric and polar curves; find roots and intersections.
Dot product, angle between vectors, magnitude, unit vector and projections of 2D to 6D vectors.
Missing side, angles and area of a right triangle, with steps, triples and feet-and-inches input.
Solve any triangle from SSS, SAS, ASA, AAS or SSA, with law of sines and cosines steps and the ambiguous case.
Add, subtract, multiply, divide and simplify fractions and mixed numbers, with every step shown.
Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?