Formula: Sphere & Cap Mathematical Identity
- radiusR: Radius R (numeric parameter)
- capHeightH: Cap Height H (numeric parameter)
Compute full sphere and spherical dome/cap volume and surface area.
Your cap height equals twice the radius, so the cap is the full ball. With the default radius of 10, h = 20 returns 4,188.79 cubic units for both lines, which is correct. Any larger h is refused with a range message. Check that you entered the cap height and not the diameter, and that both inputs use the same unit.
Use R = (a² + h²)/(2h), where a is half the width of the base circle and h is the dome height. A dome 16 units across and 4 units tall has a = 8, so R is 80 divided by 8, or 10. Enter that 10 as the radius. Typing the base radius straight into the radius field gives the wrong sphere.
No. The 2πRh figure is the curved surface only. For a closed cap you add the flat circle, whose area is π times h(2R minus h). On the default sphere that circle has area 64π, so the full outer skin of the cap is the 251.327 dome area plus 64π, about two hundred square units of flat face, worked out by hand.
A sphere is thin near its top and bottom and widest at the middle. The first part of the height crosses the narrow region, so it holds little volume. In the default, a cap 4 units tall on a sphere 20 units across holds 435.634 of 4,188.79 cubic units. The dome area, by contrast, is exactly 20 percent.
Yes. Set the cap height equal to the radius. The cap volume then comes out as exactly half the sphere volume and the dome area as exactly half the sphere surface. On the default sphere of radius 10 that gives a cap volume of exactly half of 4,188.79 cubic units. Add the flat circle of area πR² if you need the whole hemisphere surface.
It is refused. The calculator asks for a cap height from 0 up to the diameter, and it also refuses a radius of zero or less. Only h = 0 itself gives a cap volume and dome area of 0, while the sphere figures stay unchanged. If you meant a cap measured from the other pole, enter 2R minus your depth instead.
Sphere volume grows with the cube of the radius, so relative errors roughly triple. A radius that is 1 percent too large makes the full sphere volume about 3 percent too large. Cap volume is less sensitive to R for a shallow cap but very sensitive to h, because h appears squared. Measure the cap height carefully.
Either subtract the cap volume from the sphere volume, or enter the gap as the cap height: twice the radius minus the liquid depth. Both give the same air volume. For the default tank, liquid at depth 4 leaves a 16 unit gap, and the cap for that gap plus the 435.634 of liquid adds back up to 4,188.79.
With h held at 4, a bigger sphere makes the cap wider but not deeper. A shallow cap is close to a flat disc, and its volume grows roughly in proportion to R. Going from radius 6 to radius 15, the cap volume goes from 234.572 to 686.962 cubic units, less than three times as much while the sphere volume rises more than fifteenfold.
No. The calculator has no unit fields and assumes R and h share one unit. A radius in metres with a height in centimetres will usually push h past 2R, and the range check then refuses the input. Convert both to the same unit before typing, then read the volumes in that unit cubed.
With no changes, the calculator works on a sphere of radius 10 and slices off a cap 4 units tall. Four numbers come back. The whole sphere holds 4,188.79 cubic units and has 1,256.637 square units of surface. The cap holds 435.634 cubic units, and its curved dome covers 251.327 square units.
The first two figures depend only on the radius. Type any cap height you like and they will not move. The last two are the ones that respond to h, and they are usually the reason someone opens this page: how much liquid sits in the bottom of a round tank, how much material goes into a domed lid, how much paint a dome roof needs.
The headline result is the full sphere volume, which can be a little misleading if you came for the cap. The cap figures sit underneath in the supporting lines. Read those first if your question is about a partial sphere.
The cap volume formula is V = (πh²/3)(3R minus h). With R = 10 and h = 4, h² is 16 and 3R minus h is 26. Multiply those together, multiply by π and divide by 3, and you land on the 435.634 shown on screen.
Two easy checks tell you the formula is behaving. Set h equal to R, here 10, and the cap becomes a hemisphere. The formula then gives (πR²/3)(2R), which is (2/3)πR³, exactly half the sphere. The calculator agrees: run it with h = 10 and the cap volume is exactly half of 4,188.79. Set h to 2R, here 20, and the cap is the whole ball: (π·4R²/3)(R) collapses to (4/3)πR³ and the cap volume equals the sphere volume.
The same structure works for the smaller preset. A sphere of radius 6 with a 4 unit cap gives 16 times 14, times π, divided by 3, which is 234.572 cubic units. The radius 15 preset gives 16 times 41, times π, over 3, which is 686.962 cubic units.
Notice what happened there. The cap height stayed at 4 and the radius more than doubled, from 6 to 15, yet the cap volume less than tripled. A shallow cap on a big sphere is close to a thin flat disc, so its volume grows roughly in step with R rather than with R cubed.
The dome area 2πRh is one of the oldest neat results in geometry, often credited to Archimedes. The curved surface of a cap depends on the sphere radius and the cap height, and on nothing else. Double h and the dome area doubles.
In the default, h is 4 and the full diameter is 20, so the cap covers 4/20, or 20 percent, of the height of the ball. The dome area of 251.327 is exactly 20 percent of 1,256.637. The radius 6 preset shows the same thing: 150.796 out of 452.389 is one third, because 4 is one third of the diameter 12.
Volume does not behave that way. The default cap takes 20 percent of the height but only about 10.4 percent of the volume, 435.634 out of 4,188.79. The ball is narrow near its poles and wide at its equator, so the first slices of height contain little material. This is the trap in reading a tank gauge as if it were linear. A spherical tank filled to 20 percent of its height holds only about a tenth of its capacity.
The dome area line is the curved surface only. A real cap, cut from a sphere, also has a flat circular face where the cut was made. If you are costing material for a closed solid, a sealed lid for example, you need to add that disc yourself.
The radius of the flat circle, call it a, comes from a² = h(2R minus h). For the default that is 4 times 16, so a² is 64 and a is 8. The flat face then has area 64π, close to two hundred square units. Add it to the 251.327 dome area for the total skin of the cap.
Many real problems start from a instead of R. You might know a dome is 16 units across at the base and 4 units tall, and want the sphere it came from. Rearranging gives R = (a² + h²)/(2h). With a = 8 and h = 4 that is 80 divided by 8, which returns R = 10, the default. Work out R this way first, then enter it here. Entering the base radius into the radius field is the most common mistake on this kind of page, and it gives a cap that is far too large.
A cap cannot be taller than the sphere it is cut from, so h must sit between 0 and 2R. The calculator checks this. Enter h = 25 on a sphere of radius 10 and it stops with a message asking for a cap height from 0 up to the diameter. At exactly h = 20 it accepts the input and reports a cap volume of 4,188.79, the whole sphere, which is the correct limit.
A negative cap height is rejected the same way, and so is a radius of zero or below. A cap height of exactly 0 is allowed and gives a cap volume and dome area of 0, which is right: no slice, no cap. If you see the input message, the usual cause is a diameter typed into the cap height field, or the two inputs in different units.
A cap with h between R and 2R is larger than a hemisphere. That is still a valid cap and the formula handles it with no special case. At h = 16 on the default sphere, the cap holds roughly 90 percent of the ball. That is the volume of liquid in a spherical tank that is filled to 80 percent of its height, and it shows the reverse of the shallow cap effect: the last slices near the top add little volume.
There is no unit selector. Whatever length unit you use for R and h, the volumes come out in that unit cubed and the areas in that unit squared. Enter centimetres and the default reads 4,188.79 cubic centimetres, which is about 4.19 litres since a litre is a thousand cubic centimetres. Enter metres and the same digits are cubic metres.
Both inputs must use the same unit. Mixing a radius in metres with a cap height in centimetres is an easy slip when copying from a drawing, and the engine has no way to notice it unless the mix pushes h past 2R. Then the range check fires. When it does not, the answer is simply wrong by a large factor, so convert first.
Results display to three decimal places, which is more than enough precision for real measurements. A radius measured to the nearest millimetre limits accuracy long before rounding does. Because volume scales with the cube of the radius, a 1 percent error in R becomes about a 3 percent error in the sphere volume.
Before you trust any cap figure, you can bracket it with two shapes you already know. Picture the flat base circle of radius a and the cap height h. A cone on that base, with its tip at the top of the dome, fits entirely inside the cap. A cylinder on that base, h tall, fits entirely around it. So the cap volume must land somewhere between one third of πa²h and the full πa²h.
For the default, a² is 64 and h is 4. The enclosing cylinder works out to 64 times 4 times π, and the cap's 435.634 is a little over half of that. A shallow cap always sits near the halfway mark, because for small h the formula tends toward πa²h/2, the volume of a thin paraboloid. As the cap grows toward a hemisphere the ratio rises to two thirds.
If a result falls outside the bracket, an input is wrong. The usual culprit is a base radius typed into the radius field, or a diameter typed in where the cap height should go. The bracket takes ten seconds with a phone calculator and catches both.
The most practical use of this page is a fill level problem. Treat the liquid in a spherical tank as a cap whose height is the depth of liquid, measured from the lowest point. Enter the tank's inner radius as R and the depth as h. The cap volume is the liquid volume.
For a tank of radius 10 filled to a depth of 4, that is the default: 435.634 cubic units, about 10.4 percent full by volume. If you want the empty space above the liquid, subtract from the sphere volume, or enter 2R minus the depth as h and read the cap volume directly. Both approaches give the same answer, which is a handy self check.
This only works for a true sphere. Many tanks are cylinders with domed ends, and for those the cap formula covers only the end pieces. Wall thickness also matters: use the inside radius for capacity and the outside radius for paint or insulation area.