3D Section Formula Calculator

Published on: January 25, 2026
Final Answer: Free | Full Steps: Pro

This 3D Section Formula Calculator finds the point that divides a segment in a given ratio, and shows the working line by line. For an internal division the point sits between the two ends, and for an external one it sits beyond them, which is the only difference the sign in the formula makes. Each coordinate is worked out on its own. Following the same pattern every time keeps the ratio the right way round.

x y z (x₁, y₁, z₁) (x₂, y₂, z₂) P m n

Choose internal or external division, then enter \(P_{1}\), \(P_{2}\) and the ratio \(m : n\).

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the points and the ratio into the formula.
  4. Work out each coordinate.

Formula: Internal Section Formula

This formula gives the point between P₁ and P₂ that divides the segment in the ratio m : n. Weight P₂ by m and P₁ by n, then divide by m + n.

\(P = \left(\frac{m x_{2} + n x_{1}}{m + n},\; \frac{m y_{2} + n y_{1}}{m + n},\; \frac{m z_{2} + n z_{1}}{m + n}\right)\)

Formula: External Section Formula

This formula gives the point outside the segment that divides it externally in the ratio m : n. The plus signs become minus signs.

\(P = \left(\frac{m x_{2} - n x_{1}}{m - n},\; \frac{m y_{2} - n y_{1}}{m - n},\; \frac{m z_{2} - n z_{1}}{m - n}\right)\)

Useful Tips to Remember

In the formula, m goes with the second point and n with the first, which is the part most often swapped. With a ratio of \(1 : 1\), the internal formula gives the midpoint. For external division, m and n cannot be equal, because \(m - n\) would be 0. Work out each coordinate on its own.

Required knowledge

Where Is the Section Formula Used?

The section formula finds a point at a set fraction of the way along a line, which is useful in geometry, design and physics. It gives the centre of mass of two objects, where each mass acts as a weight in the ratio. Animators use it to find in-between positions when moving an object from one place to another. In coordinate geometry, it locates the centroid of a triangle and points that split medians, and in CAD it places parts at exact fractions along an edge.

  • Finding the centre of mass of two objects
  • In-between positions for animation
  • Locating the centroid of a triangle
  • Placing parts at set fractions along an edge
  • Dividing a route in a given ratio

Section Formula Practice Problems

Example 1 divides the segment from \((1, 2, 3)\) to \((4, 6, 3)\) internally in the ratio \(2 : 1\), and Example 2 divides the segment from \((1, 0, 2)\) to \((5, 4, 6)\) externally in the ratio \(3 : 1\). Pick the right formula and compare your coordinates. For two more free worked examples, check out the 3D Section Formula Notes.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(P_{1} = \left(1,\; 2,\; 3\right),\; P_{2} = \left(4,\; 6,\; 3\right),\; 2 : 1\; \text{internal}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the points and the ratio into the formula.
  4. Work out each coordinate.

Formula

Formula: Internal Section Formula

This formula gives the point between P₁ and P₂ that divides the segment in the ratio m : n. Weight P₂ by m and P₁ by n, then divide by m + n.

\(P = \left(\frac{m x_{2} + n x_{1}}{m + n},\; \frac{m y_{2} + n y_{1}}{m + n},\; \frac{m z_{2} + n z_{1}}{m + n}\right)\)

Formula: External Section Formula

This formula gives the point outside the segment that divides it externally in the ratio m : n. The plus signs become minus signs.

\(P = \left(\frac{m x_{2} - n x_{1}}{m - n},\; \frac{m y_{2} - n y_{1}}{m - n},\; \frac{m z_{2} - n z_{1}}{m - n}\right)\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the point that divides the segment from \(P_{1} = \left(1,\; 2,\; 3\right)\) to \(P_{2} = \left(4,\; 6,\; 3\right)\) internally in the ratio \(2 : 1\).

\(P_{1} = \left(1,\; 2,\; 3\right),\; P_{2} = \left(4,\; 6,\; 3\right),\; 2 : 1\; \text{internal}\)
x y z (1, 2, 3) (4, 6, 3) P 2 1

Step 2

Step 2 - Write the formula.

In this problem: The point that divides the segment in the ratio m : n lies between the two points. Each coordinate is a weighted average, with the weight m on the far point and n on the near point.

\(P = \left(\frac{m x_{2} + n x_{1}}{m + n},\; \frac{m y_{2} + n y_{1}}{m + n},\; \frac{m z_{2} + n z_{1}}{m + n}\right)\)

Step 3

Step 3 - Substitute the points and the ratio into the formula.

In this problem: Replacing the coordinates and the ratio in \(P = \left(\frac{m x_{2} + n x_{1}}{m + n},\; \frac{m y_{2} + n y_{1}}{m + n},\; \frac{m z_{2} + n z_{1}}{m + n}\right)\) gives \(P = \left(\frac{2 \times 4 + 1 \times 1}{2 + 1},\; \frac{2 \times 6 + 1 \times 2}{2 + 1},\; \frac{2 \times 3 + 1 \times 3}{2 + 1}\right)\).

\(P = \left(\frac{2 \times 4 + 1 \times 1}{2 + 1},\; \frac{2 \times 6 + 1 \times 2}{2 + 1},\; \frac{2 \times 3 + 1 \times 3}{2 + 1}\right)\)

Step 4

Step 4 - Work out each coordinate.

In this problem: Working out each fraction gives \(\frac{2 \times 4 + 1 \times 1}{2 + 1} = \frac{9}{3} = 3\), \(\frac{2 \times 6 + 1 \times 2}{2 + 1} = \frac{14}{3}\) and \(\frac{2 \times 3 + 1 \times 3}{2 + 1} = \frac{9}{3} = 3\).

\(P = \left(\frac{2 \times 4 + 1 \times 1}{2 + 1},\; \frac{2 \times 6 + 1 \times 2}{2 + 1},\; \frac{2 \times 3 + 1 \times 3}{2 + 1}\right) = \left(3,\; \frac{14}{3},\; 3\right)\)

Final Answer

\(P = \left(3,\; \frac{14}{3},\; 3\right)\)
See Example 2 Hide Example 2

Problem

\(P_{1} = \left(1,\; 0,\; 2\right),\; P_{2} = \left(5,\; 4,\; 6\right),\; 3 : 1\; \text{external}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the points and the ratio into the formula.
  4. Work out each coordinate.

Formula

Formula: External Section Formula

This formula gives the point outside the segment that divides it externally in the ratio m : n. The plus signs become minus signs.

\(P = \left(\frac{m x_{2} - n x_{1}}{m - n},\; \frac{m y_{2} - n y_{1}}{m - n},\; \frac{m z_{2} - n z_{1}}{m - n}\right)\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the point that divides the segment from \(P_{1} = \left(1,\; 0,\; 2\right)\) to \(P_{2} = \left(5,\; 4,\; 6\right)\) externally in the ratio \(3 : 1\).

\(P_{1} = \left(1,\; 0,\; 2\right),\; P_{2} = \left(5,\; 4,\; 6\right),\; 3 : 1\; \text{external}\)
x y z (1, 0, 2) (5, 4, 6) P 3 1

Step 2

Step 2 - Write the formula.

In this problem: The point that divides the segment externally in the ratio m : n lies on the line through the two points but outside the segment. The plus signs of the internal formula become minus signs.

\(P = \left(\frac{m x_{2} - n x_{1}}{m - n},\; \frac{m y_{2} - n y_{1}}{m - n},\; \frac{m z_{2} - n z_{1}}{m - n}\right)\)

Step 3

Step 3 - Substitute the points and the ratio into the formula.

In this problem: Replacing the coordinates and the ratio in \(P = \left(\frac{m x_{2} - n x_{1}}{m - n},\; \frac{m y_{2} - n y_{1}}{m - n},\; \frac{m z_{2} - n z_{1}}{m - n}\right)\) gives \(P = \left(\frac{3 \times 5 - 1 \times 1}{3 - 1},\; \frac{3 \times 4 - 1 \times 0}{3 - 1},\; \frac{3 \times 6 - 1 \times 2}{3 - 1}\right)\).

\(P = \left(\frac{3 \times 5 - 1 \times 1}{3 - 1},\; \frac{3 \times 4 - 1 \times 0}{3 - 1},\; \frac{3 \times 6 - 1 \times 2}{3 - 1}\right)\)

Step 4

Step 4 - Work out each coordinate.

In this problem: Working out each fraction gives \(\frac{3 \times 5 - 1 \times 1}{3 - 1} = \frac{14}{2} = 7\), \(\frac{3 \times 4 - 1 \times 0}{3 - 1} = \frac{12}{2} = 6\) and \(\frac{3 \times 6 - 1 \times 2}{3 - 1} = \frac{16}{2} = 8\).

\(P = \left(\frac{3 \times 5 - 1 \times 1}{3 - 1},\; \frac{3 \times 4 - 1 \times 0}{3 - 1},\; \frac{3 \times 6 - 1 \times 2}{3 - 1}\right) = \left(7,\; 6,\; 8\right)\)

Final Answer

\(P = \left(7,\; 6,\; 8\right)\)

Notes and Practice Mode

x y z (x₁, y₁, z₁) (x₂, y₂, z₂) P m n

Example Problems

Click one to load it into the box and solve it.