What This Trapezoid Calculator Does
A trapezoid (called a trapezium in British English) is a quadrilateral with exactly one pair of parallel sides. This calculator solves a trapezoid for its missing side lengths, interior angles, perpendicular height, perimeter, midsegment (median) and area. It handles three families: scalene (no special symmetry), isosceles (equal legs and equal base angles) and right (one leg perpendicular to the bases).
Naming Convention
Side a is the top (shorter) parallel base, side b is the bottom (longer) parallel base. Side c is the left leg and side d is the right leg. Height h is the perpendicular distance between the parallel sides. Angles are labelled A (lower-left), B (upper-left), C (upper-right) and D (lower-right). Consecutive angles along a leg are supplementary: \(A + B = 180\deg\) and \(C + D = 180\deg\).
How To Use It
Pick a trapezoid type, then choose a calculation that matches what you already know. Enter the given values (lengths share one display unit; angles are in degrees), pick a length-unit label and the number of significant figures, and read off the full solution. Only the relevant inputs for your chosen calculation are used.
The Formula Explained
The midsegment is the average of the bases, \(m = \frac{a + b}{2}\), and the area is that midsegment times the height,
$$A = m h = \frac{a + b}{2} \times h$$Legs relate to the height and base overhang by \(h = c \sin A = d \sin D\), while horizontal closure gives \(c \cos A + d \cos D = b - a\). These relations let the tool reconstruct any missing quantity.
Worked Example
Isosceles trapezoid with \(a = 4\), \(b = 10\), \(c = 5\). The half-difference is \(k = \frac{10 - 4}{2} = 3\), so
$$h = \sqrt{5^2 - 3^2} = \sqrt{16} = 4$$The base angles are \(A = D = \operatorname{atan2}(4, 3) = 53.13\deg\) and \(B = C = 126.87\deg\). The midsegment is \(m = 7\), the perimeter is \(P = 4 + 10 + 5 + 5 = 24\), and the area is
$$A = 7 \times 4 = 28 \text{ square units}$$More Worked Trapezoid Examples
In all three examples the same labelling is used: \(a\) is the top (short) base, \(b\) is the bottom (long) base, \(c\) is the left leg with base angle \(A\) at the bottom-left corner, and \(d\) is the right leg with base angle \(D\) at the bottom-right corner. Then \(B=180^\circ-A\), \(C=180^\circ-D\), the midsegment is \(m=\frac{a+b}{2}\), the perimeter is \(P=a+b+c+d\) and the area is \(A_{\text{area}}=m\cdot h\). Lengths carry whatever unit you enter (the geometry is unit-independent); area comes out in that unit squared.
Example 1 — Right trapezoid from two bases and the height
Given: \(a=6\), \(b=11\), \(h=4\), left leg perpendicular to both bases. Solve for: both legs, all four angles, midsegment, perimeter, area.
- Because the left leg is perpendicular to the bases, it equals the height: \(c=h=4\), and \(A=90^\circ\).
- The entire base overhang sits on the right: \(x_{\text{right}}=b-a=11-6=5\).
- Slant leg by Pythagoras: \(d=\sqrt{5^2+4^2}=\sqrt{25+16}=\sqrt{41}=6.4031\).
- Right base angle: \(D=\operatorname{atan2}(4,\,5)=\arctan(0.8)=38.6598^\circ\).
- Top angles: \(B=180^\circ-90^\circ=90^\circ\) and \(C=180^\circ-38.6598^\circ=141.3402^\circ\). Check: \(90+90+38.6598+141.3402=360^\circ\).
- Midsegment: \(m=\frac{6+11}{2}=8.5\).
- Perimeter: \(P=6+11+4+6.4031=27.4031\approx 27.40\).
- Area: \(A_{\text{area}}=8.5\times 4=\) 34.
Rounded to 4 significant figures: \(d=6.403\), \(D=38.66^\circ\), \(C=141.3^\circ\), \(P=27.40\), area \(=34.00\).
Example 2 — Scalene trapezoid from both bases and both legs
Given: \(a=5\), \(b=12\), \(c=6\), \(d=8\). Solve for: \(h\), \(A\), \(D\), midsegment, perimeter, area.
Two conditions must hold at once — horizontal closure and a single common height:
$$c\cos A + d\cos D = b-a = 7, \qquad h = c\sin A = d\sin D$$- Write the horizontal offsets as \(x_{\text{left}}=c\cos A\) and \(x_{\text{right}}=d\cos D\), so \(x_{\text{left}}+x_{\text{right}}=7\).
- Equal heights give \(c^2-x_{\text{left}}^2=d^2-x_{\text{right}}^2\), i.e. \(x_{\text{right}}^2-x_{\text{left}}^2=8^2-6^2=28\).
- Factor: \((x_{\text{right}}-x_{\text{left}})(x_{\text{right}}+x_{\text{left}})=28\), and since the sum is 7, the difference is \(28/7=4\).
- Solve the pair: \(x_{\text{right}}=\frac{7+4}{2}=5.5\), \(x_{\text{left}}=\frac{7-4}{2}=1.5\).
- Height: \(h=\sqrt{6^2-1.5^2}=\sqrt{36-2.25}=\sqrt{33.75}=5.80948\). Cross-check with the other leg: \(\sqrt{8^2-5.5^2}=\sqrt{64-30.25}=\sqrt{33.75}\) — identical, so the trapezoid closes.
- Base angles: \(A=\operatorname{atan2}(5.80948,\,1.5)=75.5225^\circ\) and \(D=\operatorname{atan2}(5.80948,\,5.5)=46.5674^\circ\).
- Closure check: \(6\cos 75.5225^\circ + 8\cos 46.5674^\circ = 1.5+5.5 = 7\) ✓. Angle check: \(B=104.4775^\circ\), \(C=133.4326^\circ\), and \(75.5225+104.4775+46.5674+133.4326=360^\circ\) ✓.
- Midsegment: \(m=\frac{5+12}{2}=8.5\); perimeter \(P=5+12+6+8=31\).
- Area: \(A_{\text{area}}=8.5\times 5.80948=\) 49.38.
To 4 significant figures: \(h=5.809\), \(A=75.52^\circ\), \(D=46.57^\circ\), area \(=49.38\). Note that swapping which leg sits on the left mirrors the figure: the angles trade places but \(h\), \(m\), \(P\) and the area are unchanged.
Example 3 — Working backwards from a known area
Given: area \(=96\), \(a=8\), \(b=16\). Solve for: the height.
- Midsegment first: \(m=\frac{8+16}{2}=12\).
- Invert \(A_{\text{area}}=m\cdot h\): \(h=\frac{A_{\text{area}}}{m}=\frac{2A_{\text{area}}}{a+b}=\frac{2\times 96}{8+16}=\frac{192}{24}=\) 8.
- Verify: \(12\times 8=96\) ✓.
- The perimeter is not determined by area and bases alone — infinitely many trapezoids share \(a=8\), \(b=16\), \(h=8\). Fix the shape first. If it is isosceles, the half-difference is \(k=\frac{16-8}{2}=4\), each leg is \(\sqrt{8^2+4^2}=\sqrt{80}=8.9443\), so \(P=8+16+2(8.9443)=41.8885\approx 41.89\) and the base angles are \(\arctan(8/4)=63.43^\circ\).
In every case, keep full precision through the chain and round only the final figures — rounding \(h\) to \(5.8\) in Example 2 would shift the area by about 0.08.
How To Solve a Trapezoid by Hand
A trapezoid is fixed by four independent quantities, so the trick is to reduce whatever you are given to the pair \(\{\text{bases},\,h\}\) plus the two horizontal offsets. Work through the steps in order and skip the ones whose result you were already given.
- Label consistently. Let \(a\) be the short (top) base and \(b\) the long (bottom) base, with \(a\parallel b\). Let \(c\) be the left leg meeting \(b\) at base angle \(A\), and \(d\) the right leg meeting \(b\) at base angle \(D\). The angles at the top are \(B\) (above \(A\)) and \(C\) (above \(D\)). \(h\) is the perpendicular distance between the bases.
- Find the base overhang. Dropping perpendiculars from both ends of \(a\) onto \(b\) splits \(b\) into \(x_{\text{left}}+a+x_{\text{right}}\), so $$x_{\text{left}}+x_{\text{right}} = b-a.$$ For an isosceles trapezoid the two offsets are equal, giving the half-difference $$k=\frac{b-a}{2}.$$ For a right trapezoid one offset is 0 and the other is the whole of \(b-a\).
- Get the height. Use whichever route your data allows:
- Isosceles from a leg: \(h=\sqrt{c^2-k^2}\).
- From a leg and its own base angle: \(h=c\sin A\) (or \(h=d\sin D\)).
- From a known area: \(h=\dfrac{2A_{\text{area}}}{a+b}\).
- From both legs and both bases: solve \(x_{\text{right}}-x_{\text{left}}=\dfrac{d^2-c^2}{b-a}\) together with \(x_{\text{left}}+x_{\text{right}}=b-a\), then \(h=\sqrt{c^2-x_{\text{left}}^2}\).
- Get the base angles. With the offsets and the height in hand, $$A=\operatorname{atan2}(h,\,x_{\text{left}}),\qquad D=\operatorname{atan2}(h,\,x_{\text{right}}).$$ Using
atan2rather than plain \(\arctan(h/x)\) handles the two edge cases correctly: \(x=0\) returns \(90^\circ\) (a right trapezoid) and a negative \(x\) returns an obtuse angle (the top base overhangs that side). Then \(B=180^\circ-A\) and \(C=180^\circ-D\), because each leg is a transversal of the two parallel bases. - Get any missing legs. From the height and the angle, \(c=\dfrac{h}{\sin A}\) and \(d=\dfrac{h}{\sin D}\); equivalently by Pythagoras from the offsets, \(c=\sqrt{h^2+x_{\text{left}}^2}\) and \(d=\sqrt{h^2+x_{\text{right}}^2}\).
- Midsegment. The segment joining the midpoints of the two legs is parallel to the bases and equals their mean: $$m=\frac{a+b}{2}.$$
- Perimeter. \(P=a+b+c+d\).
- Area. \(A_{\text{area}}=m\cdot h=\dfrac{a+b}{2}\cdot h\) — the midsegment times the height, which is why the area never depends on how the overhang is split between the two sides.
- Validity checks. Before trusting the answer, confirm all of the following:
- Every radicand is non-negative: \(c^2-k^2\ge 0\) for the isosceles case, \(c^2-x_{\text{left}}^2\ge 0\) in general. A negative radicand means the given legs are too short to span the base difference, so no such trapezoid exists.
- All four angles are strictly between \(0^\circ\) and \(180^\circ\), and \(A+B+C+D=360^\circ\).
- Horizontal closure: \(c\cos A+d\cos D=b-a\).
- Single height: \(c\sin A=d\sin D\).
- All sides and the height are positive, and \(a\ne b\) if you want a genuine trapezoid rather than a parallelogram (with \(a=b\) the "trapezoid" degenerates and the legs are no longer determined).
- Round last. Carry full precision — ideally the unrounded square roots and trigonometric values — through every intermediate step, and apply your significant-figure setting only to the reported results. Rounding \(h\) or an angle mid-chain propagates into the legs, perimeter and area, and can also make the closure checks above fail by a small amount that looks like a real error.
Quick sanity test on any finished solution: the area must lie strictly between \(a\cdot h\) and \(b\cdot h\), since the midsegment lies strictly between the two bases.
FAQ
Is a parallelogram a trapezoid? Under the inclusive definition yes (two pairs of parallel sides); this tool focuses on the figure with one pair of parallel bases a and b.
Why does it sometimes return no result? Some combinations are geometrically impossible, for example a leg too short to span the base overhang (a negative square-root radicand). Check that b is the longer base and that legs are long enough.
Does it convert between units? No. All lengths use one chosen unit and the area is reported in that unit squared; the unit label is for display only.