Stadium Calculator: Area and Perimeter of a Pill Shape

Find the area and perimeter of a stadium (pill/capsule) shape from its cap radius and rectangle length, or work backward from a known area or perimeter.

Loading calculator…

What a stadium shape is

Take a circle, slice it in half straight through the center, and pull the two halves apart. Insert a rectangle of length aa between them, matching the circle's diameter as the rectangle's height. The result — a running track, a pill capsule, a swimming lane — is called a stadium (or pill, capsule, discorama).

A=πr2+2raP=2(πr+a)A = \pi r^2 + 2ra \qquad P = 2(\pi r + a)

Tip: The rectangle's height is 2r2r (the full diameter), not rr — that's why the area term is 2ra2ra, not rara.

Why these formulas work

The area comes from two pieces: the two semicircular caps rejoined make one full circle, contributing πr2\pi r^2; the rectangular middle section contributes 2r×a2r \times a (height 2r2r, width aa). Adding them gives A=πr2+2raA = \pi r^2 + 2ra.

The perimeter also comes from two pieces: the two semicircular arcs rejoined make one full circumference, 2πr2\pi r; the two straight sides each contribute length aa, for 2a2a total. Adding them gives P=2πr+2a=2(πr+a)P = 2\pi r + 2a = 2(\pi r + a).

Worked example: radius r = 5, length a = 10

A=π(52)+2(5)(10)=25π+100178.5398A = \pi(5^2) + 2(5)(10) = 25\pi + 100 \approx 178.5398 P=2(π5+10)=2(5π+10)51.4159P = 2(\pi \cdot 5 + 10) = 2(5\pi + 10) \approx 51.4159

Because both the radius and length are exact here, the area also has an EXACT symbolic form (25π+10025\pi + 100) alongside the decimal approximation.

Solving in the other direction

Given the radius plus either the area or the perimeter, this calculator solves for the rectangle length first, then derives the rest.

KnownSolve for length aThen
Radius rr, length aa— (already known)A=πr2+2raA = \pi r^2 + 2ra, P=2(πr+a)P = 2(\pi r + a)
Radius rr, area AAa=(Aπr2)/(2r)a = (A - \pi r^2)/(2r)P=2(πr+a)P = 2(\pi r + a)
Radius rr, perimeter PPa=P/2πra = P/2 - \pi rA=πr2+2raA = \pi r^2 + 2ra

Worked example: radius r = 5, area A = 178.5398

Rearranging the area formula gives a=(178.5398π(25))/10=(178.539878.5398)/10=10a = (178.5398 - \pi(25))/10 = (178.5398 - 78.5398)/10 = 10. The perimeter follows as P=2(π(5)+10)51.4159P = 2(\pi(5) + 10) \approx 51.4159.

Tip: A negative solved length means the given area or perimeter is too small for that radius — there's no valid stadium with those measures.

Common mistakes

  • Forgetting the rectangle entirely. Computing only πr2\pi r^2 (the circle part) and skipping 2ra2ra under-counts the area — a stadium is always bigger than the circle its caps came from (unless a=0a = 0).
  • Using rr instead of 2r2r for the rectangle's height. The rectangle spans the caps' full diameter, not just the radius.
  • Confusing perimeter with area. Perimeter is a length (2πr+2a2\pi r + 2a); area is a surface (πr2+2ra\pi r^2 + 2ra) — they don't share units.

Where this shows up

  • Running tracks and athletics fields: the classic 400m oval track is a stadium shape, which is where the name comes from.
  • Pills and capsules: medicine capsules are 3D versions (a capsule, the solid of revolution of a stadium) built from the same two-piece geometry.
  • Swimming lanes and rounded tables: any rectangle with semicircular rounded ends — a rounded rectangle taken to its full curve — is a stadium.

A stadium is the simplest shape built from two others: know the circle's radius and the rectangle's length, and every other measure — area, perimeter, or either one worked backward — follows directly.

Frequently asked questions

What is a stadium shape in geometry?
A stadium (also called a pill, capsule, or discorama) is a rectangle of length aa with a semicircle of radius rr capping each short end — like a running track or a medicine capsule. It's a rectangle plus two circle-halves.
What are the area and perimeter formulas for a stadium?
Area is A=πr2+2raA = \pi r^2 + 2ra — a full circle (the two caps rejoined) plus the rectangle 2r×a2r \times a. Perimeter is P=2(πr+a)P = 2(\pi r + a) — the two semicircular arcs rejoined into one circumference 2πr2\pi r, plus the two straight sides 2a2a.
Why is the rectangle's height 2r2r and not rr?
The rectangle spans the full diameter of the caps, not just the radius. A rectangle of height rr would only cover half of each semicircular cap, leaving the shape's outline disconnected.
How do I find the rectangle length if I only know the area and radius?
Rearrange the area formula: a=(Aπr2)/(2r)a = (A - \pi r^2)/(2r). For example, with radius r=5r = 5 and area A=178.5398A = 178.5398, a=(178.539878.5398)/10=10a = (178.5398 - 78.5398)/10 = 10.
How do I find the rectangle length if I only know the perimeter and radius?
Rearrange the perimeter formula: a=P/2πra = P/2 - \pi r. For example, with radius r=5r = 5 and perimeter P=51.4159P = 51.4159, a=25.7079515.7079610a = 25.70795 - 15.70796 \approx 10.
What's the most common mistake with stadium formulas?
Forgetting the rectangle's area entirely and computing only the circle part (πr2\pi r^2), or using rr instead of 2r2r for the rectangle's height. Both under-count the true area.
Can the rectangle length be zero?
Yes — when a=0a = 0, the stadium collapses into a bare circle of radius rr, since the two semicircular caps meet directly. The formulas A=πr2A = \pi r^2 and P=2πrP = 2\pi r fall right out of the general ones.
How is the stadium related to the circle and the rectangle?
A stadium is literally a circle (#G03) cut in half through its center, with the two halves pulled apart and a rectangle (#G02) inserted between them. Its area and perimeter formulas are built directly from the circle's and rectangle's own formulas.

Related calculators