What a spherical cap is
Slice a sphere with a flat plane and the smaller piece that comes away is a spherical cap. It looks like a dome sitting on a flat circular base. Domes on buildings, the bulb of a round-bottomed flask, a lens blank, the liquid in a partly filled spherical tank and the shape of a raindrop on a waxed surface are all caps or close to them. This calculator needs two lengths. The first is the radius R of the whole sphere the cap was cut from, and the second is the height h of the cap, measured along the axis from the flat cut to the highest point. It returns the volume of the cap and the area of its curved outer surface. The flat base is not included in that area, which matters when you buy paint or cladding. Both lengths must use the same unit.
Formulas and the default example
The volume is pi times h squared times (R minus h over 3). The curved surface area is 2 times pi times R times h. With the defaults R equals 5 and h equals 1. The volume is pi times 1 times (5 minus 0.3333), which is pi times 4.6667, about 14.6608 cubic units. The curved area is 2 times pi times 5 times 1, which is 10 pi, about 31.4159 square units. Notice that the area formula contains only R and h in a simple product. This is a result attributed to Archimedes: the area of a band cut from a sphere between two parallel planes depends only on the sphere radius and the distance between the planes. A cap is the special case where one plane just touches the sphere. MathWorld lists the same formulas in its entry on the spherical cap.
Height is not the base radius
The assumption note on this page warns that h is the cap height and not the base radius, and this is the most common input mistake. The two are related, but they are different lengths. The base radius a of the flat circle satisfies a squared equals h times (2R minus h). For the default cap, a squared equals 1 times 9, so a is 3. If you measure the width across the flat opening and halve it, you have a, not h. To get h from a and R, use h equals R minus the square root of R squared minus a squared. With R equal to 5 and a equal to 3, that gives 5 minus 4, which is 1. If you have only a and h and need R, rearrange to R equals (a squared plus h squared) divided by 2h. For a dome with a base radius of 3 meters and a height of 1 meter, R is 10 divided by 2, which is 5 meters.
A second worked example
Suppose a sphere has a radius of 10 and the cap is 4 units high. The volume is pi times 16 times (10 minus 1.3333), which is pi times 16 times 8.6667, about 435.634 cubic units. The curved area is 2 times pi times 10 times 4, which is 80 pi, about 251.327 square units. The base radius squared is 4 times 16, which is 64, so the base radius is 8 and the flat face has an area of 64 pi, about 201.062. If you wanted to coat the whole dome including the underside, you would add that to the curved area for a total of about 452.389. For a smaller, flatter dome such as R equal to 2 meters and h equal to 0.5 meters, the volume is pi times 0.25 times (2 minus 0.1667), about 1.4399 cubic meters, and the curved area is 2 pi, about 6.2832 square meters.
Special cases: hemisphere and full sphere
Two limits help you check results. When h equals R, the cap is a hemisphere. With R equal to 5 and h equal to 5, the volume is pi times 25 times (5 minus 1.6667), which is about 261.799, exactly two thirds of pi R cubed, and the curved area is 50 pi, about 157.080, half of the sphere area 4 pi R squared. When h equals 2R, the cap is the entire sphere. With R equal to 5 and h equal to 10, the volume is about 523.599, which is four thirds of pi R cubed, and the curved area is 100 pi, about 314.159, equal to the whole sphere surface. A cap cannot be taller than the sphere diameter, so values of h above 2R do not describe a real cap. If you enter such a value, the formulas will still compute a number, but it will not correspond to a physical shape.
Liquid in a spherical tank
A spherical storage tank filled to a depth d holds exactly the volume of a cap with h equal to d, measured from the bottom. That makes this calculator a quick way to build a depth-to-volume table. For a tank of radius 2 meters, a depth of 0.5 meters holds about 1.4399 cubic meters, or 1,440 liters. A depth of 1 meter holds pi times 1 times (2 minus 0.3333), which is about 5.236 cubic meters. A depth of 2 meters, the halfway mark, holds a hemisphere of about 16.755 cubic meters. Notice that the volume does not rise in proportion to depth. The tank is narrow near the bottom, so the first 0.5 meters holds far less than the middle band. Real tanks have nozzles, supports and a nonzero wall thickness, so use inside dimensions and treat the figures as approximate.
Domes, roofs and cladding
For a building dome, the curved area is the roof surface that needs weatherproofing, and the volume is the interior space above the base circle. A dome with a sphere radius of 15 meters and a height of 6 meters has a curved area of 2 times pi times 15 times 6, which is 180 pi, about 565.49 square meters. Its base radius squared is 6 times 24, which is 144, so the base radius is 12 meters and the base diameter is 24 meters. The volume is pi times 36 times (15 minus 2), which is 468 pi, about 1,470.26 cubic meters. Real domes include thickness, ribs, a drum or a lantern, and designers work from drawings and structural analysis. The cap formulas give the ideal geometry of a smooth spherical shell, which is a good starting point for estimating paint, panels or air volume before detailed design.
Lenses, drops and small caps
In optics, a simple lens surface is often a spherical cap, and the height of the cap is called the sagitta or sag. For a surface with radius of curvature R and an aperture radius a, the sag is R minus the square root of R squared minus a squared, which is the h of this page. A surface with R equal to 50 mm and a half-aperture of 10 mm has a sag of 50 minus the square root of 2,400, which is about 1.0102 mm. When the cap is shallow, the volume is close to half the base area times the height, and with this example the cap volume is pi times 1.0204 times (50 minus 0.3367), about 159.2 cubic mm. A sessile drop on a flat surface has the same cap shape when gravity is small compared with surface tension, and the contact angle can be found from the ratio of h to the base radius.
Working backward to find the height
Often the volume is known and the height is not, for example when you want to know how deep a given amount of liquid will stand in a spherical bowl. The volume formula is cubic in h, so there is no neat rearrangement. You can solve it by trial. Take R equal to 5 and a target volume of 100 cubic units. At h equal to 3 the formula gives pi times 9 times (5 minus 1), which is about 113.1. At h equal to 2.8 it gives pi times 7.84 times (5 minus 0.9333), about 100.2. So h is just under 2.8, which is close enough for practical use. Enter successive guesses into the calculator until the volume matches. A spreadsheet goal-seek tool does the same task. Because the volume rises steadily with h on the range from 0 to 2R, the search always converges.
Units and scaling
The result volume is in cubic units of whatever length unit you used, and the curved area is in square units of the same unit. A radius and a height in centimeters give cubic centimeters and square centimeters, and 1,000 cubic centimeters make a liter. Scaling a cap by a factor k in every length multiplies the area by k squared and the volume by k cubed. Doubling both R and h of the default cap gives a volume of 8 times 14.6608, which is about 117.29, and an area of 4 times 31.4159, which is 125.66. This scaling rule holds because the formulas are homogeneous. It gives a fast check of any answer. If you scale the inputs and the outputs do not change by those factors, a unit or a typing mistake has crept in. The same rule applies if you switch from inches to millimeters, using the right conversion for each power.
Limits of the model
The page treats a perfect sphere and a plane cut, with finite results required. It does not model ellipsoidal domes, paraboloids, caps with a thick shell, partially filled containers lying on their side, or domes with a hole at the top. It also does not give the area of the flat base or the total surface area, although the base is easy to add: pi times a squared, with a squared equal to h times (2R minus h). Guards in the underlying model reject results that are not finite. For real construction, manufacturing or pressure-vessel work, rely on drawings and the relevant standards. The numbers here describe idealized geometry, and the examples are illustrative.