Bookmarks    
nPr and nCr    
Random Number    
SD Calculator    
Sample Size    
Percent Error    
Density    
Molarity    
Molar Mass    
Ohm's Law    
Watts to Amps    
Voltage Drop    
Long Division    
Mixed Numbers    
Rounding    
Nth Root    
Exponents    
Half-Life    
Polar Form    
De Moivre    
3D Distance    
Point to Line    
Cross Product    
Determinant    
Sin Cos Tan    
Triangle Area    
Scale Factor    
Sector Area    
Ellipse Area    
Cube Volume    
Box Volume    
Sphere Volume    
Cone Volume    
Pipe Volume    
Time Duration    
Time Card    
Present Value    
Future Value    
Churn Rate    
A/B Test Calc    
SEO Traffic    
Ideal Weight    
Fat Intake    
Child Height    
Golf Handicap    
Heat Index    
Wind Chill    
Dew Point    
Download Time    
kWh to Cost    
AC Size (BTU)    
Heating Costs    
LED Savings    
Trip Gas Cost    
Tire Size    
Solar Output    
Solar Payback    
Battery Size    
Wall Area    
Gravel Needed    
Mortar Mix    
Slope Grade    
Curtain Size    
Soil Needed    
Sod Needed    
Ramp Length    
Blind Size    
Drain Slope    
Board Feet    
Heat Loss    
Furniture Fit    
Moving Boxes    
Plywood Cuts    
Shelf Sag    
   Add
Probability and random number calculators
Independent Events
Independent Events
Two Events Solver
Two Events Solver
Repeated Trials
Repeated Trials
Bayes' Theorem
Bayes' Theorem
Expected Value
Expected Value
Binomial Distribution
Binomial Distribution
nPr and nCr
nPr and nCr
Circular Permutation
Circular Permutation
With Repetition
With Repetition
Random Number
Random Number
Averages and statistics calculators
Average Calculator
Average Calculator
Mean Median Mode
Mean Median Mode
SD Calculator
SD Calculator
Quartiles & IQR
Quartiles & IQR
Frequency Table
Frequency Table
Correlation (r)
Correlation (r)
Normal Probability
Normal Probability
Z-Score Calculator
Z-Score Calculator
Confidence Interval
Confidence Interval
Sample Size
Sample Size
Mark & Recapture
Mark & Recapture
P-Value Calculator
P-Value Calculator
Percentage and ratio calculators
Percentage Calc
Percentage Calc
Percent Change
Percent Change
Percent Difference
Percent Difference
Percent Error
Percent Error
Ratio Calculator
Ratio Calculator
Discount Calculator
Discount Calculator
Sales Tax Calculator
Sales Tax Calculator
Margin Calculator
Margin Calculator
Speed calculators
Speed Calculator
Speed Calculator
Density and concentration calculators
Density
Density
Molarity
Molarity
Molar Mass
Molar Mass
Physics and electricity calculators
Ohm's Law
Ohm's Law
Watts to Amps
Watts to Amps
Resistor Colors
Resistor Colors
Voltage Drop
Voltage Drop
Unit conversion calculators
Weight Converter
Weight Converter
Shoe Size Converter
Shoe Size Converter
Integer and signed number calculators
Long Division
Long Division
LCM Calculator
LCM Calculator
GCF Calculator
GCF Calculator
Integer Calculator
Integer Calculator
Prime Factorization
Prime Factorization
Diophantine Solver
Diophantine Solver
Modulo Calculator
Modulo Calculator
Factor Calculator
Factor Calculator
Roman Numerals
Roman Numerals
Fraction, decimal and rounding calculators
Fraction Calculator
Fraction Calculator
Mixed Numbers
Mixed Numbers
Simplify Fractions
Simplify Fractions
Fraction to Decimal
Fraction to Decimal
Decimal to Fraction
Decimal to Fraction
Rounding
Rounding
Equation and inequality calculators
Linear Equation
Linear Equation
Linear Systems
Linear Systems
Quadratic Formula
Quadratic Formula
Absolute Value
Absolute Value
Quadratic Inequality
Quadratic Inequality
Polynomial calculators
Binomial Theorem
Binomial Theorem
Square root and nth root calculators
Simplify Radicals
Simplify Radicals
Nth Root
Nth Root
Exponent and logarithm calculators
Exponents
Exponents
Log Calculator
Log Calculator
Number of Digits
Number of Digits
Scientific Notation
Scientific Notation
Sci. Notation Math
Sci. Notation Math
Half-Life
Half-Life
Complex number calculators
Complex Numbers
Complex Numbers
Polar Form
Polar Form
De Moivre
De Moivre
Function and graph calculators
Slope Calculator
Slope Calculator
Linear Function
Linear Function
Direct & Inverse Variation
Direct & Inverse Variation
y = ax² Calculator
y = ax² Calculator
Distance Formula
Distance Formula
3D Distance
3D Distance
Section Formula
Section Formula
Point to Line
Point to Line
Lat/Long Distance
Lat/Long Distance
Complete the Square
Complete the Square
Circle Equation
Circle Equation
Conic Sections
Conic Sections
Polar Coordinates
Polar Coordinates
Sequence calculators
Arithmetic Sequence
Arithmetic Sequence
Geometric Sequence
Geometric Sequence
Fibonacci Sequence
Fibonacci Sequence
Recurrence Relation
Recurrence Relation
Vector calculators
Vector Calculator
Vector Calculator
Cross Product
Cross Product
Matrix calculators
Matrix Calculator
Matrix Calculator
Determinant
Determinant
Inverse Matrix
Inverse Matrix
Plane geometry calculators
Sin Cos Tan
Sin Cos Tan
Degrees ⇔ Radians
Degrees ⇔ Radians
a sin θ + b cos θ
a sin θ + b cos θ
Triangle Solver
Triangle Solver
Triangle Area
Triangle Area
Right Triangle
Right Triangle
Pythagorean Theorem
Pythagorean Theorem
Polygon Angles
Polygon Angles
Scale Factor
Scale Factor
Parallel Lines
Parallel Lines
Rectangle Area
Rectangle Area
Parallelogram Area
Parallelogram Area
Trapezoid Area
Trapezoid Area
Circle Calculator
Circle Calculator
Sector Area
Sector Area
Inscribed Angle
Inscribed Angle
Ellipse Area
Ellipse Area
Solid geometry calculators
Cube Volume
Cube Volume
Cube Surface Area
Cube Surface Area
Box Volume
Box Volume
Box Surface Area
Box Surface Area
Cylinder Volume
Cylinder Volume
Cylinder Surface
Cylinder Surface
Sphere Volume
Sphere Volume
Sphere Surface
Sphere Surface
Spherical Cap Volume
Spherical Cap Volume
Cap Surface Area
Cap Surface Area
Ellipsoid Volume
Ellipsoid Volume
Ellipsoid Surface
Ellipsoid Surface
Pyramid Volume
Pyramid Volume
Pyramid Surface
Pyramid Surface
Cone Volume
Cone Volume
Cone Surface Area
Cone Surface Area
Frustum Volume
Frustum Volume
Frustum Surface Area
Frustum Surface Area
Pipe Volume
Pipe Volume
Capsule Volume
Capsule Volume
Capsule Surface Area
Capsule Surface Area
Date and time calculators
Age Calculator
Age Calculator
Days Between Dates
Days Between Dates
Date Calculator
Date Calculator
Hours From Now
Hours From Now
Day of the Week
Day of the Week
Time Calculator
Time Calculator
Time Zone Converter
Time Zone Converter
Hours Calculator
Hours Calculator
Time Duration
Time Duration
Time Card
Time Card
Finance and economics calculators
Compound Interest
Compound Interest
Simple Interest
Simple Interest
Interest Calculator
Interest Calculator
TVM Calculator
TVM Calculator
Present Value
Present Value
Future Value
Future Value
ROI Calculator
ROI Calculator
IRR Calculator
IRR Calculator
Payback Period
Payback Period
Average Return
Average Return
GDP Calculator
GDP Calculator
Web marketing and ad metric calculators
CTR Calculator
CTR Calculator
Conversion Rate
Conversion Rate
CPC, CPM & CPA
CPC, CPM & CPA
ROAS Calculator
ROAS Calculator
Break-Even CPA
Break-Even CPA
LTV Calculator
LTV Calculator
CAC Calculator
CAC Calculator
Churn Rate
Churn Rate
A/B Test Calc
A/B Test Calc
A/B Sample Size
A/B Sample Size
SEO Traffic
SEO Traffic
Break-Even Point
Break-Even Point
Markup vs. Margin
Markup vs. Margin
CAGR Calculator
CAGR Calculator
Health and fitness calculators
BMI Calculator
BMI Calculator
Sleep Calculator
Sleep Calculator
Calorie Calculator
Calorie Calculator
BMR Calculator
BMR Calculator
TDEE Calculator
TDEE Calculator
Ideal Weight
Ideal Weight
Body Fat Calculator
Body Fat Calculator
Lean Body Mass
Lean Body Mass
Calories Burned
Calories Burned
Protein Intake
Protein Intake
Macro Calculator
Macro Calculator
Carb Calculator
Carb Calculator
Fat Intake
Fat Intake
Child Height
Child Height
Sports calculators
Golf Handicap
Golf Handicap
Pace Calculator
Pace Calculator
1RM Calculator
1RM Calculator
Target Heart Rate
Target Heart Rate
Weather calculators
Heat Index
Heat Index
Wind Chill
Wind Chill
Dew Point
Dew Point
Computer calculators
Base Converter
Base Converter
Subnet Calculator
Subnet Calculator
Download Time
Download Time
Household energy and budget calculators
Electricity Cost
Electricity Cost
kWh to Cost
kWh to Cost
Yearly kWh to Cost
Yearly kWh to Cost
AC Size (BTU)
AC Size (BTU)
AC Running Cost
AC Running Cost
Heating Costs
Heating Costs
Gas vs Electric
Gas vs Electric
LED Savings
LED Savings
Salary Calculator
Salary Calculator
Budget Calculator
Budget Calculator
Car calculators
Trip Gas Cost
Trip Gas Cost
EV Charging Cost
EV Charging Cost
EV vs Gas Cost
EV vs Gas Cost
MPG Calculator
MPG Calculator
Tire Size
Tire Size
Solar power and battery calculators
Solar Output
Solar Output
Solar Panel Count
Solar Panel Count
Solar Payback
Solar Payback
Battery Size
Battery Size
Home and DIY calculators
Tile Calculator
Tile Calculator
Stair Calculator
Stair Calculator
Concrete Volume
Concrete Volume
Wall Area
Wall Area
Wallpaper Rolls
Wallpaper Rolls
Paint Calculator
Paint Calculator
Flooring Needed
Flooring Needed
Exterior Walls
Exterior Walls
Gravel Needed
Gravel Needed
Mortar Mix
Mortar Mix
Slope Grade
Slope Grade
Lumber Cut List
Lumber Cut List
Lot Coverage/FAR
Lot Coverage/FAR
Sheet Vinyl Roll
Sheet Vinyl Roll
Insulation Needed
Insulation Needed
Curtain Size
Curtain Size
TV Size & Distance
TV Size & Distance
Soil Needed
Soil Needed
Sod Needed
Sod Needed
Block Calculator
Block Calculator
Brick Calculator
Brick Calculator
Deck Materials
Deck Materials
Ramp Length
Ramp Length
Pilot Hole Size
Pilot Hole Size
Room Ventilation
Room Ventilation
Paint Thinning
Paint Thinning
Baseboard & Trim
Baseboard & Trim
Blind Size
Blind Size
Picture Hanging
Picture Hanging
Drain Slope
Drain Slope
Screw Calculator
Screw Calculator
Board Feet
Board Feet
Fence Calculator
Fence Calculator
Wood Shrinkage
Wood Shrinkage
Caulk Calculator
Caulk Calculator
Heat Loss
Heat Loss
Furniture Fit
Furniture Fit
Moving Boxes
Moving Boxes
Storage Capacity
Storage Capacity
Plywood Cuts
Plywood Cuts
Shelf Sag
Shelf Sag

Cylinder Volume Calculator (V = πr²h)

Enter the radius of the base and the height of the cylinder. The volume (V = πr²h) and the base area are shown, along with conversions between cm³, L and m³.

Use the same unit for both and enter numbers only (no units. For 3 cm, enter "3"). If you only know the diameter, divide it by 2 to get the radius first.
Result and figure
Enter the radius of the base and the height in the fields on the left and press "Calculate". The result will appear here.

What you can do on this page

  • Enter the radius of the base and the height, and the volume of the cylinder (\(V = \pi r^2 h\)) is calculated on the spot
  • The result also shows the base area (\(\pi r^2\)) and the volume in other units: US gallons and cubic feet if you enter inches, and US gallons if you enter feet. Switch "Units" to Metric to get liters and cubic meters instead
  • The result is also drawn as a 3D shape. Turn it with the mouse or a swipe to check its shape
  • A plain-language explanation of the formulas and copy-and-paste formulas for Excel, Google Sheets and Python are all on this page
Enter the radius and the height in the same unit (both in inches, or both in feet). The volumes of other solids, such as cones and spheres, have their own pages.

What is this calculation used for?

Checking the capacity of a pot or a tumbler (cooking)

A pot 10 in across (radius 5 in) and 6 in deep holds \(\pi \times 5^2 \times 6 \approx 471\,\mathrm{in^3}\), which is \(471 \div 231 \approx 2.04\) gallons, or about 8 quarts (in practice you do not fill it to the brim, so you can use about 80% of that).
"Will 4 quarts of water plus the pasta fit in this pot?" "Does this tumbler hold a whole 12-ounce can?" You can check with numbers before you buy or cook.

Finding how much water a round tank holds (emergency prep and home)

A round rain barrel with a radius of 11 in and a height of 34 in holds \(\pi \times 11^2 \times 34 \approx 12925\,\mathrm{in^3}\), or about \(12925 \div 231 \approx 56\) gallons, close to the familiar 55-gallon drum.
Rainwater is not safe to drink untreated, but it can flush toilets and water the garden during a water outage. A newer US toilet uses at most 1.6 gallons per flush, so 56 gallons is about 35 flushes. The tank size tells you how long your backup water will last.

Estimating the volume of a log (forestry and lumber)

Treat a log 12 in across (radius 0.5 ft) and 16 ft long as a cylinder, and its volume is \(\pi \times 0.5^2 \times 16 \approx 12.57\,\mathrm{ft^3}\).
Real logs taper toward the top, and in the US, logs are usually measured in board feet with log rules such as Doyle or Scribner. The idea underneath all of them is still the volume of a cylinder.

Ordering concrete (construction)

A round pier poured in a tube form 12 in across (radius 0.5 ft) and 4 ft deep needs \(\pi \times 0.5^2 \times 4 \approx 3.14\,\mathrm{ft^3}\) of concrete, so 10 piers need about 31.4 ft³, or \(31.4 \div 27 \approx 1.16\) yd³.
Ready-mix concrete is ordered by the cubic yard, and an 80 lb bag makes only about 0.6 ft³, so you would need about 53 bags instead. Running short stops the job and leftovers cost money, so this volume calculation goes straight to your budget.

Scaling a recipe to a different cake pan (baking)

An 8-inch round cake pan (radius 4 in) that is 2 in deep holds \(\pi \times 4^2 \times 2 \approx 100.5\,\mathrm{in^3}\).
When your pan is a different size from the recipe's, scale the batter by the ratio of the volumes. For the same depth, going from an 8-inch pan to a 9-inch pan takes \((4.5 \div 4)^2 \approx 1.27\) times as much. You can decide "make about 1.25 times the recipe" by calculation instead of guessing.

Formulas and figures

Volume of a cylinder (the basic formula)
Figure
Standard notation (the usual math form)
\(V\) \(=\) \(\pi\) \(\times\) \(r\) \(2\) \(\times\) \(h\)
In words (symbols replaced with words)
⑤ \(V\): volume of the cylinder \(=\) ① \(\pi\): pi \(\times\) ② \(r\): radius of the base ③ squared (the number times itself) \(\times\) ④ \(h\): height
The formula in words
① Take \(\pi\): pi
② and the \(r\): radius of the base
③ multiply pi by the radius squared (the number times itself)
④ multiply that by the \(h\): height
⑤ and you get the \(V\): volume of the cylinder
Quick example
The volume of a cylinder with a base radius of 3 in and a height of 4 in is
\(V\): volume of the cylinder \(=\) \(\pi\): pi \(\times\) radius of the base (3 in) squared \(\times\) height (4 in)
\(3 \times 3 = 9\)
\(\pi \times 9 \times 4 = 36\pi \approx 113.1\,\mathrm{in^3}\)
Key idea
The \(\pi r^2\) part is the area of the circle at the base. So this formula just takes the area of a circle (\(\pi\) × radius × radius) and multiplies it by the height. Only the radius is squared, not the height. And since three lengths are multiplied, the unit of the answer is cubed: enter inches and you get cubic inches (in³); enter feet and you get cubic feet (ft³).
Base area × height (the same idea for every prism and cylinder)
Figure
Standard notation (the usual math form)
\(V\) \(=\) \(S\) \(\times\) \(h\)
In words (symbols replaced with words)
③ \(V\): volume of the cylinder \(=\) ① \(S\): area of the base \(\times\) ② \(h\): height
The formula in words
① Take the \(S\): area of the base
② multiply it by the \(h\): height
③ and you get the \(V\): volume of the cylinder
Quick example
The volume of a cylinder with a base area of 28.26 in² (a circle of radius 3 in, using 3.14 for pi) and a height of 4 in is
\(V\): volume of the cylinder \(=\) area of the base (28.26 in²) \(\times\) height (4 in)
\(28.26 \times 4 = 113.04\,\mathrm{in^3}\)
Key idea
"Volume = area of the base × height" works not only for cylinders but for every solid made by stacking the same base straight up, such as triangular and rectangular prisms. Many US textbooks write it as \(V = Bh\). For a cylinder the base is a circle, so the base area is \(S = \pi r^2\), and this becomes exactly the first formula. The 113.04 in³ here is a little less than the 113.1 in³ from the first formula because pi was rounded to 3.14 (this calculator uses \(\pi = 3.14159\ldots\)).
Converting volume units (in³ to ft³)
Figure
Standard notation (the usual math form)
\(V_{\mathrm{ft^3}}\) \(=\) \(V_{\mathrm{in^3}}\) \(\div\) \(1728\)
In words (symbols replaced with words)
③ \(V_{\mathrm{ft^3}}\): volume in ft³ \(=\) ① \(V_{\mathrm{in^3}}\): volume in in³ \(\div\) ② \(1728\): cubic inches in 1 ft³
The formula in words
① Take the \(V_{\mathrm{in^3}}\): volume in in³
② divide it by \(1728\): cubic inches in 1 ft³
③ and you get the \(V_{\mathrm{ft^3}}\): volume in ft³
Quick example
A cylinder with a radius of 6 in and a height of 24 in holds about 2714.3 in³. In cubic feet, that is
volume in ft³ \(=\) volume in in³ (2714.3) \(\div\) cubic inches in 1 ft³ (1728)
\(2714.3 \div 1728 \approx 1.571\,\mathrm{ft^3}\)
Key idea
\(1\,\mathrm{ft^3}\) is a cube that is 1 foot (12 inches) on each side, so it holds \(12 \times 12 \times 12 = 1728\,\mathrm{in^3}\). For liquids, use US gallons: 1 gallon is \(231\,\mathrm{in^3}\), so divide cubic inches by 231. This cylinder holds \(2714.3 \div 231 \approx 11.75\) gallons. A handy fact: 1 ft³ is about 7.48 gallons.
Converting volume units (ft³ to yd³)
Figure
Standard notation (the usual math form)
\(V_{\mathrm{yd^3}}\) \(=\) \(V_{\mathrm{ft^3}}\) \(\div\) \(27\)
In words (symbols replaced with words)
③ \(V_{\mathrm{yd^3}}\): volume in yd³ \(=\) ① \(V_{\mathrm{ft^3}}\): volume in ft³ \(\div\) ② \(27\): cubic feet in 1 yd³
The formula in words
① Take the \(V_{\mathrm{ft^3}}\): volume in ft³
② divide it by \(27\): cubic feet in 1 yd³
③ and you get the \(V_{\mathrm{yd^3}}\): volume in yd³
Quick example
The concrete for 10 round piers, each 12 in across and 4 ft deep, is about 31.4 ft³. In cubic yards, that is
volume in yd³ \(=\) volume in ft³ (31.4) \(\div\) cubic feet in 1 yd³ (27)
\(31.4 \div 27 \approx 1.16\,\mathrm{yd^3}\)
Key idea
The conversion factor for volume is the length factor cubed. Since 1 yd = 3 ft, \(1\,\mathrm{yd^3}\) is \(3 \times 3 \times 3 = 27\,\mathrm{ft^3}\). A common mistake is to divide by 3 or by 9 instead of 27. To go back from cubic yards to cubic feet, multiply by 27. Ready-mix concrete, gravel and topsoil are sold by the cubic yard in the US, so this is the conversion you need when you place an order.
The volume of a cylinder is "area of the base (πr²) × height". Only the radius is squared, and the answer is in the cube of the unit you entered (inches give in³). It also helps to remember 1 ft³ = 1728 in³, 1 yd³ = 27 ft³ and 1 gallon = 231 in³.

Symbols and terms

Symbols

\(V\) vee The usual symbol for volume, from the first letter of "volume".
\(r\) ar The radius of the base circle (the distance from its center to its edge), from the first letter of "radius". It is half the diameter.
\(h\) aitch The height of the cylinder (the straight distance from the bottom face to the top face), from the first letter of "height".
\(\pi\) pi The Greek letter for the ratio of a circle's circumference to its diameter. It goes on forever as \(3.14159\ldots\), and 3.14 is a common rounded value.
\(r^2\) r squared The number \(r\) multiplied by itself (\(r \times r\)). The small raised 2 is an exponent that shows how many times the number is used as a factor.
\(S\) ess A common symbol for area. On this page it stands for the area of the base (the area of the base circle, \(\pi r^2\)). Many US textbooks write \(B\) for this.
\(\mathrm{in^3}\) cubic inches A unit of volume. A cube that is 1 inch on each side has a volume of 1 in³. 1 US gallon is exactly 231 in³.
\(\mathrm{ft^3}\) cubic feet A unit of volume. A cube that is 1 foot on each side has a volume of 1 ft³. \(1\,\mathrm{ft^3} = 1728\,\mathrm{in^3} \approx 7.48\) gallons, and \(1\,\mathrm{yd^3} = 27\,\mathrm{ft^3}\).
\(\mathrm{gal}\) gallons A unit for amounts of liquid, familiar from milk jugs and gas pumps. 1 US gallon is \(231\,\mathrm{in^3}\) (about 3.785 liters), and 1 gallon = 4 quarts.

Terms

cylinder A straight solid with circular bases, where every slice across it is a circle of the same size. Cans, drums and paper towel tubes are all around us.
base The top and bottom faces of a prism or cylinder. A cylinder has two circles of the same size, one at the top and one at the bottom, and both are called bases.
area of the base The area of a base. For a cylinder the base is a circle, so the base area comes from the circle area formula \(\pi r^2\) (\(\pi\) × radius × radius).
volume The amount of space a solid takes up, given as a number. It is measured by how many unit cubes, such as 1-inch cubes (1 in³), fit inside.
prism A solid made by stacking the same polygon straight up, such as a triangular or rectangular prism. A cylinder is built the same way with a circle, so for all of them, volume = area of the base × height.
pi The number of times a circle's diameter fits around its circumference. It is the same for every circle, is written \(\pi\), and is about 3.14.
unit conversion Writing the same amount in a different unit. For volume, the key point is that the volume factor is the length factor cubed (1 yd = 3 ft, so 1 yd³ = 27 ft³).

Good to know before you start

Here is what helps you use the calculation on this page with real understanding, not just by pressing the button.

Area of a circle (Grade 7)
  • Knowing that the area of a circle is \(\pi\) × radius × radius
  • Telling the radius from the diameter, and getting the radius as diameter ÷ 2
What volume is and its units (Grade 5)
  • Knowing that volume can be counted as the number of unit cubes, such as 1-inch cubes (1 in³), that fit inside
  • Reading and writing units such as in³, ft³ and gallons, and knowing that \(1\,\mathrm{ft^3} = 1728\,\mathrm{in^3}\) and 1 gallon = \(231\,\mathrm{in^3}\)
Volume of prisms and cylinders (Grades 6–8)
  • Knowing that the volume of a prism or cylinder is "area of the base × height"
Pi and answers in terms of pi (Grades 7–8)
  • Using the symbol \(\pi\) instead of 3.14 and leaving an answer "in terms of pi", such as \(36\pi\)
Multiplying decimals (Grades 5–6)
  • Multiplying decimals such as \(28.26 \times 4\)

How to calculate it in Excel

Copy the whole table below and paste it into cell A1 in Excel. It works as is.
Table to find the volume of a cylinder
Radius of the base r (in) 3
Height h (in) 4
Volume (in³) =PI()*B1^2*B2
Table to find it as "area of the base × height"
Radius of the base r (in) 3
Area of the base, πr² (in²) =PI()*B1^2
Height h (in) 4
Volume (in³) =B2*B3
Table to convert cubic inches to cubic feet
Volume in in³ 2714.3
Volume in ft³ =B1/1728
Table to convert cubic feet to cubic yards
Volume in ft³ 31.4
Volume in yd³ =B1/27
After pasting, column A holds the labels and column B holds the numbers. The upper rows are your inputs, and the formula in the last row calculates automatically from them.
In a formula, "PI()" is the Excel function that returns pi (3.14159…), "B1" and "B2" mean "use the number in that cell", "*" is multiplication, "/" is division and "^" is an exponent (how many times to multiply).
In the first table, for example, B3 shows about 113.097 (in³, since the inputs are in inches). The second table shows the same value in B4, the third table shows about 1.571 in B2, and the fourth table shows about 1.163 in B2. To get US gallons from cubic inches, use "=B1/231". Just replace the input numbers with the size of your own cylinder.

How to calculate it in Google Sheets

Copy the whole table below and paste it into cell A1 in Google Sheets. It works as is.
Table to find the volume of a cylinder
Radius of the base r (in) 3
Height h (in) 4
Volume (in³) =PI()*B1^2*B2
Table to find it as "area of the base × height"
Radius of the base r (in) 3
Area of the base, πr² (in²) =PI()*B1^2
Height h (in) 4
Volume (in³) =B2*B3
Table to convert cubic inches to cubic feet
Volume in in³ 2714.3
Volume in ft³ =B1/1728
Table to convert cubic feet to cubic yards
Volume in ft³ 31.4
Volume in yd³ =B1/27
The same formulas as in Excel (including the PI() function) work as is. Copy the whole table, paste it into cell A1, and replace the input numbers with the size of your own cylinder.

How to calculate it in Python

import math

radius = 3   # radius of the base (inches in this example)
height = 4   # height (same unit as the radius)

base_area = math.pi * radius ** 2   # area of the base circle (in2 in this example)
volume = base_area * height         # volume of the cylinder (input unit cubed, in3 in this example)
volume_gal = volume / 231           # in US gallons (for inputs in inches)

print(f"Base area: {base_area} in2")
print(f"Volume: {volume} in3")
print(f"In US gallons: {volume_gal} gal")
Runs with the standard library only. "math.pi" is pi, "**" is an exponent (squared here) and "*" is multiplication. Change the radius and height at the top and run it. This example uses inches; if you use feet, the volume is in cubic feet, and dividing it by 27 gives cubic yards.

How to write it in LaTeX and other math languages (copy and paste)

Volume of a cylinder (the basic formula)
V = π × r² × h
V = \pi r^{2} h
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>V</mi>
    <mo>=</mo>
    <mi>&#x3C0;</mi>
    <mo>&#x2062;</mo>
    <msup><mi>r</mi><mn>2</mn></msup>
    <mo>&#x2062;</mo>
    <mi>h</mi>
  </mrow>
</math>
V = pi r^2 h
Pi*r^2*h
V := Pi*r^2*h;
V = pi*r^2*h;
V = πr^2 h
Base area × height (the same idea for every prism and cylinder)
V = S × h
V = S \times h
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>V</mi>
    <mo>=</mo>
    <mi>S</mi>
    <mo>&#xD7;</mo>
    <mi>h</mi>
  </mrow>
</math>
V = S xx h
S*h
V := S*h;
V = S*h;
V = S × h
Converting volume units (in³ to ft³)
V[ft³] = V[in³] ÷ 1728
V_{\mathrm{ft^3}} = V_{\mathrm{in^3}} \div 1728
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <msub><mi>V</mi><mrow><msup><mi mathvariant="normal">ft</mi><mn>3</mn></msup></mrow></msub>
    <mo>=</mo>
    <msub><mi>V</mi><mrow><msup><mi mathvariant="normal">in</mi><mn>3</mn></msup></mrow></msub>
    <mo>&#xF7;</mo>
    <mn>1728</mn>
  </mrow>
</math>
V_(ft^3) = V_(in^3) -: 1728
vIn3/1728
vFt3 := vIn3/1728;
v_ft3 = v_in3/1728;
V(ft³) = V(in³)/1728
Converting volume units (ft³ to yd³)
V[yd³] = V[ft³] ÷ 27
V_{\mathrm{yd^3}} = V_{\mathrm{ft^3}} \div 27
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <msub><mi>V</mi><mrow><msup><mi mathvariant="normal">yd</mi><mn>3</mn></msup></mrow></msub>
    <mo>=</mo>
    <msub><mi>V</mi><mrow><msup><mi mathvariant="normal">ft</mi><mn>3</mn></msup></mrow></msub>
    <mo>&#xF7;</mo>
    <mn>27</mn>
  </mrow>
</math>
V_(yd^3) = V_(ft^3) -: 27
vFt3/27
vYd3 := vFt3/27;
v_yd3 = v_ft3/27;
V(yd³) = V(ft³)/27

How to have ChatGPT  do the calculation

You are a math calculation assistant. Do the following calculation by actually running Python code, and base your answer only on the numbers from the execution result (do not answer by mental math or guessing).

A cylinder has a base radius of 3 inches and a height of 4 inches.
Find each of the following:
1. The area of the base in square inches (in²)
2. The volume of the cylinder in cubic inches (in³)
3. That volume in US gallons (1 gallon = 231 in³)

Show the formulas you used and the numbers from the execution result.

How to Use
  1. 1
    Enter your numbers
    Type the numbers you want to calculate with into the input fields
  2. 2
    Calculate
    Press the "Calculate" button
  3. 3
    Check the result
    The result appears on the spot. The same page also explains the idea behind the calculation and the formula
  DataChef Features
Easy and Free
Unlimited conversions for free.
No technical knowledge required.
Intuitive and user-friendly operation.
No Registration Required
Available immediately after access.
Can be used without registering personal information.
Safe and Secure
Fully SSL encrypted communication.
Automatic file deletion by clicking "download".
Fast
High-speed site access
and rapid file conversion.
No Watermark
No watermark.
No attribution required.
Commercial Use Available
Free for commercial use.
No need to contact us for commercial use permission.