Skip to content

Solid (3D) Geometry

Updated · Equations updated; Sections updated; Examples or practice updated; Explanations expanded What changed?
  1. — Equations updated; Sections updated; Examples or practice updated; Explanations expanded

In three dimensions, two lines may intersect, be parallel, or be skew, meaning they are nonparallel but lie in no common plane. Do not infer an intersection from a perspective drawing.

Place a box corner at the origin and its edges along coordinate axes when possible. The distance between (x1,y1,z1)(x_1,y_1,z_1) and (x2,y2,z2)(x_2,y_2,z_2) is

d=(Δx)2+(Δy)2+(Δz)2.d=\sqrt{(\Delta x)^2+(\Delta y)^2+(\Delta z)^2}.

The dot product u⋅v=u1v1+u2v2+u3v3\mathbf u\cdot\mathbf v=u_1v_1+u_2v_2+u_3v_3 detects perpendicularity and gives the angle between nonzero vectors.

Example. A rectangular box has side lengths 3,4,123,4,12. Find its space diagonal and the cosine of the angle between that diagonal and the edge of length twelve.

Take a diagonal vector d=(3,4,12)\mathbf d=(3,4,12). Its length is 9+16+144=13\sqrt{9+16+144}=13. Comparing with e=(0,0,12)\mathbf e=(0,0,12),

cos⁡θ=d⋅e∥d∥∥e∥=14413⋅12=1213.\cos\theta=\frac{\mathbf d\cdot\mathbf e}{\lVert\mathbf d\rVert\lVert\mathbf e\rVert} =\frac{144}{13\cdot12}=\frac{12}{13}.

A plane has equation ax+by+cz=dax+by+cz=d with nonzero normal vector n=(a,b,c)\mathbf n=(a,b,c). The distance from P=(x0,y0,z0)P=(x_0,y_0,z_0) to the plane is

∣ax0+by0+cz0−d∣a2+b2+c2.\frac{\lvert ax_0+by_0+cz_0-d\rvert}{\sqrt{a^2+b^2+c^2}}.

The acute or right angle θ\theta between two planes satisfies

cos⁡θ=∣n1⋅n2∣∥n1∥∥n2∥.\cos\theta=\frac{\lvert\mathbf n_1\cdot\mathbf n_2\rvert}{\lVert\mathbf n_1\rVert\lVert\mathbf n_2\rVert}.

An interior dihedral angle of a solid may be the supplementary angle, depending on which sides of the planes contain the solid. Alternatively, cut perpendicular to the intersection edge; the angle between the two face traces is the required dihedral angle.

Example. Find the distance from (1,2,3)(1,2,3) to the plane 2x−y+2z=32x-y+2z=3.

Substitute into the distance formula:

d=∣2−2+6−3∣4+1+4=33=1.d=\frac{\lvert2-2+6-3\rvert}{\sqrt{4+1+4}}=\frac33=1.

A plane parallel to the base of a pyramid or cone cuts out a similar figure. If its distance from the vertex is a fraction tt of the full height, lengths scale by tt, areas by t2t^2, and the volume of the smaller solid by t3t^3.

Example. A cone of height twelve has volume 216π216\pi. A cut parallel to the base is made four units below the vertex. Find the volume of the remaining frustum.

The smaller cone has scale factor 4/12=1/34/12=1/3 and volume (1/3)3(216π)=8π(1/3)^3(216\pi)=8\pi. Subtracting it leaves

216π−8π=208π.216\pi-8\pi=208\pi.

Distances must be measured from corresponding points. If the cut is described as four units above the base, the small cone instead has height eight.


A prism or cylinder has volume BhBh, where BB is its base area. A pyramid or cone has volume Bh/3Bh/3. A sphere has volume 4πr3/34\pi r^3/3 and surface area 4πr24\pi r^2. A cone’s lateral area is πrℓ\pi r\ell, where ℓ\ell is its slant height, not its vertical height.

For a tetrahedron with three edge vectors u,v,w\mathbf u,\mathbf v,\mathbf w from one vertex,

V=16∣det⁡(u,v,w)∣.V=\frac16\lvert\det(\mathbf u,\mathbf v,\mathbf w)\rvert.

The determinant gives a parallelepiped’s signed volume; the tetrahedron occupies one-sixth of it.

Example. Find the volume of the tetrahedron with vertices (0,0,0),(6,0,0),(0,4,0),(0,0,3)(0,0,0),(6,0,0),(0,4,0),(0,0,3).

Its base in the horizontal plane is a right triangle of area 6⋅4/2=126\cdot4/2=12, and its height is three. Thus

V=13(12)(3)=12.V=\frac13(12)(3)=12.

The determinant gives the same result: 6⋅4⋅3/6=126\cdot4\cdot3/6=12.

For a convex polyhedron, Euler’s relation is V−E+F=2V-E+F=2, with VV now denoting the number of vertices rather than volume. It is a counting relation, not a metric formula. For a cube, 8−12+6=28-12+6=2.


Spheres, Projections, and Inscribed Solids

Section titled “Spheres, Projections, and Inscribed Solids”

If a sphere of radius RR is cut by a plane at distance d≤Rd\le R from its center, the cross-sectional circle has radius

r=R2−d2.r=\sqrt{R^2-d^2}.

The perpendicular from the sphere’s center meets the section at its center, producing a right triangle with hypotenuse RR.

Example. A cube of side length six is inscribed in a sphere. Find the sphere’s radius. Also find the radius of the largest sphere inside the cube.

The circumsphere’s diameter equals the cube’s space diagonal, 636\sqrt3, so its radius is 333\sqrt3. The insphere touches opposite faces six units apart, so its diameter is six and its radius is three.

Projection can also turn a spatial problem into a plane problem. A segment’s projected length is at most its actual length. When several distances are known, use a perpendicular cross section to expose the relevant right triangle.


For paths across flat faces, unfold the faces into one plane. A straight segment gives the shortest path for that unfolding, provided it crosses the intended shared edges within their segments. Compare possible unfoldings when the face route is not specified.

Example. Find the shortest path along the surface of a cube of side two between opposite vertices.

Unfold two adjacent faces into a 4×24\times2 rectangle, with the vertices at opposite corners. The straight path has length

42+22=25.\sqrt{4^2+2^2}=2\sqrt5.

The symmetric choices of face orientation give the same length. To justify minimality, any surface path must leave the three faces incident to its starting vertex and enter the three incident to the opposite vertex across an edge between these groups. Reflect the two relevant faces across that edge; the path through its crossing point is at least the straight distance in the unfolded 4×24\times2 rectangle. Hence 252\sqrt5 is the minimum.

Volume from Two Faces and Their Dihedral Angle

Section titled “Volume from Two Faces and Their Dihedral Angle”

Suppose two tetrahedron faces share an edge of length ℓ\ell, have areas K1,K2K_1,K_2, and meet at interior dihedral angle θ\theta. Their perpendicular heights to the common edge are u=2K1/ℓu=2K_1/\ell and v=2K2/ℓv=2K_2/\ell.

Choose the common edge as an axis. The two height directions span angle θ\theta in a perpendicular cross section, so the scalar triple product gives

V=ℓuvsin⁡θ6=2K1K2sin⁡θ3ℓ.V=\frac{\ell uv\sin\theta}{6} =\frac{2K_1K_2\sin\theta}{3\ell}.

This is useful when no individual altitude to a whole face is immediately known. The sine is unchanged by replacing an angle by its supplement, but a cosine-based dihedral calculation must distinguish those possibilities.

Example. Two faces of a tetrahedron have areas fifteen and twelve, share an edge of length three, and meet at a thirty-degree dihedral angle. Find the volume.

Substitute into the shared-edge formula:

V=2(15)(12)sin⁡30∘3(3)=20.V=\frac{2(15)(12)\sin30^\circ}{3(3)}=20.

Using either face area as a base still works, but its perpendicular height would first have to be recovered from the other face and the dihedral angle.


A symmetric coordinate model makes all six edges equal:

A=(t,t,t),B=(t,−t,−t),C=(−t,t,−t),D=(−t,−t,t).A=(t,t,t),\quad B=(t,-t,-t),\quad C=(-t,t,-t),\quad D=(-t,-t,t).

Each edge has length 22 t2\sqrt2\,t. For edge length aa, choose t=a/(22)t=a/(2\sqrt2). The center is the origin, and its distance to a vertex gives the circumradius

R=3 t=a64.R=\sqrt3\,t=\frac{a\sqrt6}{4}.

The face BCDBCD lies in x+y+z=−tx+y+z=-t, so the center-to-face distance is t/3=a6/12t/\sqrt3=a\sqrt6/12. This is the inradius rr. The altitude is R+r=a2/3R+r=a\sqrt{2/3}, yielding volume a3/(62)a^3/(6\sqrt2).

Adjacent outward face normals have cosine negative one-third. The interior dihedral angle is supplementary to the angle between those outward normals, hence has cosine positive one-third.

Example. A regular tetrahedron has edge length six. Find its volume and the ratio of circumradius to inradius.

The volume is 63/(62)=1826^3/(6\sqrt2)=18\sqrt2. The radius formulas give R/r=3R/r=3. The ratio is independent of scale, as it must be for similar tetrahedra.

The symmetric coordinates avoid solving several intersecting-altitude equations. They also provide convenient vectors for angles between opposite edges or between a line and a face.


Let M,NM,N be the midpoints of opposite edges AB,CDAB,CD of any tetrahedron. Vector expansion gives

4MN2=AC2+AD2+BC2+BD2−AB2−CD2.4MN^2=AC^2+AD^2+BC^2+BD^2-AB^2-CD^2.

To derive it, use 2(N−M)=C+D−A−B2(N-M)=C+D-A-B and expand its squared norm. Grouping the pairwise dot products into squared distances produces the displayed combination.

Example. A tetrahedron has vertices (0,0,0),(6,0,0),(0,8,0),(0,0,10)(0,0,0),(6,0,0),(0,8,0),(0,0,10). Find the distance between the midpoints of the first edge and the opposite edge.

The first midpoint is (3,0,0)(3,0,0) and the second is (0,4,5)(0,4,5). Their squared distance is 9+16+25=509+16+25=50, so the distance is 525\sqrt2.

Using only edge lengths, the midpoint identity gives the same value:

4MN2=64+100+100+136−36−164=200.4MN^2=64+100+100+136-36-164=200.

The identity is particularly valuable when six edge lengths are given without coordinates. It avoids constructing the tetrahedron’s altitude or the angle between the opposite edges.


A pyramid frustum has similar parallel bases with areas B1,B2B_1,B_2 and height hh. Its volume is

V=h3(B1+B1B2+B2).V=\frac h3\left(B_1+\sqrt{B_1B_2}+B_2\right).

To derive it, extend the sides to recover the full pyramid. If the smaller-to-larger linear ratio is tt, the areas have ratio t2t^2 and the volumes ratio t3t^3. Subtract the smaller pyramid and use (1−t3)/(1−t)=1+t+t2(1-t^3)/(1-t)=1+t+t^2.

The same formula applies to a circular cone frustum because all parallel sections are similar circles. Their square-root area ratio is the radius ratio.

Example. A square-pyramid frustum has parallel bases of side lengths two and five and vertical height six. Find its volume.

The base areas are four and twenty-five, so

V=63(4+100+25)=78.V=\frac63(4+\sqrt{100}+25)=78.

Averaging just the two base areas would give eighty-seven and is not valid: the sectional area changes quadratically with height, not linearly.

More generally, Cavalieri’s principle says that solids with the same height and equal cross-sectional areas at every corresponding height have equal volumes. The phrase “at every height” matters; equal base and top areas alone do not determine the intermediate sections.


If two externally tangent spheres of radii r,sr,s both touch the same horizontal plane, their centers have vertical separation ∣r−s∣\lvert r-s\rvert and total distance r+sr+s. The horizontal separation of their projected centers is therefore

d2=(r+s)2−(r−s)2=4rs,d=2rs.d^2=(r+s)^2-(r-s)^2=4rs, \qquad d=2\sqrt{rs}.

This formula translates a sphere-packing configuration into a planar distance problem.

Example. Can three spheres of radii one, four, and nine all touch a horizontal plane and be pairwise externally tangent?

Their projected center distances would have to be four, six, and twelve. These cannot be the side lengths of a triangle, since 4+6<124+6<12. They cannot be collinear with those distances either.

Thus no such configuration exists. Checking each pair separately gives consistent tangencies, but the three pairs cannot coexist in one plane projection.

For a tetrahedron with an insphere of radius rr and total face area SS, split it into four pyramids with common apex at the sphere center. Each has perpendicular height rr, so V=rS/3V=rS/3 and r=3V/Sr=3V/S. The analogous planar triangle relation is K=rsK=rs.


For opposite vertices of a box with side lengths a,b,ca,b,c, the three essential unfoldings give candidate distances

(a+b)2+c2,(a+c)2+b2,(b+c)2+a2.\sqrt{(a+b)^2+c^2},\quad \sqrt{(a+c)^2+b^2},\quad \sqrt{(b+c)^2+a^2}.

Take the smallest. The common squared sum a2+b2+c2a^2+b^2+c^2 shows that the comparison is equivalent to comparing ab,ac,bcab,ac,bc. If a≤b≤ca\le b\le c, joining the two smaller side lengths in the unfolding gives the shortest candidate.

Example. Find the shortest surface path between opposite vertices of a box of dimensions two, three, five.

The squared candidates are fifty, fifty-eight, and sixty-eight. The minimum distance is 50=52\sqrt{50}=5\sqrt2.

The space diagonal is 38\sqrt{38}, which is shorter but passes through the interior and is not an allowed surface path.

For other endpoint locations, a straight segment in an unfolding may cross beyond a shared edge’s endpoint and fail to represent the proposed face sequence. Verify the crossings before treating a planar distance as an admissible path.


A cone’s lateral surface unrolls to a circular sector whose radius is the slant height ℓ\ell. Its arc length equals the base circumference 2πr2\pi r, so the sector angle in radians is 2πr/ℓ2\pi r/\ell.

Angles around the cone’s axis are therefore multiplied by r/ℓr/\ell in the unrolled sector. Distances from the vertex remain unchanged. A shortest surface path can then become a straight segment between suitable unfolded copies of the endpoints.

Example. A cone has base radius five and slant height ten. Two points lie on opposite generators, at slant distances six and eight from the vertex. Find their shortest path on the lateral surface.

The half-turn around the axis becomes an unfolded angle π(5/10)=π/2\pi(5/10)=\pi/2. The endpoint radii in the sector are six and eight, so the cosine law gives distance

62+82−2(6)(8)cos⁡(π/2)=10.\sqrt{6^2+8^2-2(6)(8)\cos(\pi/2)}=10.

The segment stays within the unfolded half-disk and within slant radius ten, so it is a valid surface path. A route through the apex would have length fourteen and is longer.

For a configuration permitting different winding directions, compare the corresponding unfolded copies. The shortest algebraic segment must still map to a path lying on the actual finite cone.