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

Sphere Volume Calculator (V = 4/3 × π × r³)

Enter the radius of the sphere. The volume (4/3 × π × radius cubed) is shown, along with conversions to liters (L) and cubic meters (m³).

Enter only a number of 0 or more (no units. For a radius of 12 cm, enter "12"). If you only know the diameter, divide it by 2 and enter that (the radius).
Result and figure
Enter the radius of the sphere in the field on the left and press "Calculate". The result will appear here.

What you can do on this page

  • Enter the radius of a sphere, and its volume (volume = \(\dfrac{4}{3} \times \pi \times\) radius cubed) is calculated on the spot
  • The sphere is also drawn as a 3D shape (drag it to turn it around)
  • The result also shows the volume in US gallons and cubic feet when you enter inches. Switch "Units" to Metric to get liters and cubic meters instead
  • Also explains what to do when you only know the diameter (radius = diameter ÷ 2, or \(V = \pi d^3 \div 6\))
  • 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 in one unit (for example, inches). The volume comes out in that unit cubed (in³ if you enter inches, ft³ if you enter feet). The volumes of other solids, such as cylinders and cones, have their own pages.

What is this calculation used for?

Comparing balls by volume (sports)

A size 5 soccer ball is about 8.7 in across, so with a radius of 4.35 in its volume is \(\dfrac{4}{3}\pi \times 4.35^3 \approx 345\,\mathrm{in^3}\), about 1.5 gallons. A baseball (about 2.9 in across) is about 12.8 in³, so a soccer ball has room for about 27 baseballs' worth of space.
When the diameter is 3 times as large, the volume is \(3^3 = 27\) times as large. This "it grows with the cube" sense is the basis for estimating sizes of any kind, not just balls.

Estimating a serving of ice cream or food (cooking and food service)

If an ice cream scoop makes balls 2.5 in across, one scoop is a sphere with a radius of 1.25 in, about \(8.2\,\mathrm{in^3}\), or roughly 4.5 fluid ounces. Restaurants use calculations like this to control portion sizes and costs.
It works just as well for anything shaped into balls, such as meatballs, cookie dough and melon balls.

Finding the capacity of a spherical tank (industry and infrastructure)

Spherical storage tanks are round because a sphere holds the most volume for a given amount of material. A tank 60 ft across has a volume of \(\dfrac{4}{3}\pi \times 30^3 \approx 113{,}000\,\mathrm{ft^3}\), or about 846,000 gallons (1 ft³ ≈ 7.48 gallons).
The design and the stated capacity of such tanks are built on exactly the formula on this page.

Estimating the rough volume of a lump from a scan (medicine)

In CT or ultrasound scans, a roughly round lump or cyst is measured by its diameter, and its approximate volume can be estimated with the sphere formula. Medical imaging uses centimeters even in the US: a diameter of 2 cm gives about \(4.2\,\mathrm{cm^3}\), and 4 cm gives about \(33.5\,\mathrm{cm^3}\). Doubling the diameter makes the volume 8 times as large.
Real lumps are not perfect spheres, so this is only a rough estimate, used for example to follow whether something is growing.

Calculating the volume of the Earth, the Moon and other bodies (astronomy)

The Earth is nearly a sphere (strictly, it is slightly flattened), so with a radius of about 3,959 miles its volume is about \(\dfrac{4}{3}\pi \times 3959^3 \approx 2.60 \times 10^{11}\,\mathrm{mi^3}\), or 260 billion cubic miles.
The Moon's radius is about 1,080 miles, so its volume is only about \(\dfrac{1}{50}\) of the Earth's. The size comparisons of planets and moons in science textbooks are calculated with this formula.

Formulas and figures

Volume of a sphere (from the radius)
Figure
Standard notation (the usual math form)
\(V\) \(=\) \(\dfrac{4}{3}\) \(\times\) \(\pi\) \(\times\) \(r\) \(3\)
In words (symbols replaced with words)
⑤ \(V\): volume of the sphere \(=\) ④ \(\dfrac{4}{3}\): a constant \(\times\) ③ \(\pi\): pi \(\times\) ① \(r\): radius ② cubed (the number used as a factor 3 times)
The formula in words
① Take the \(r\): radius
② and make it cubed (the number used as a factor 3 times)
③ multiply by \(\pi\): pi
④ multiply by \(\dfrac{4}{3}\): a constant
⑤ and you get the \(V\): volume of the sphere
Quick example
The volume of a sphere with a radius of 3 in is
\(V\): volume of the sphere \(=\) \(\dfrac{4}{3}\): a constant \(\times\) \(\pi\): pi \(\times\) radius (3 in) cubed
\(\dfrac{4}{3} \times \pi \times 3^{3} = \dfrac{4}{3} \times \pi \times 27 = 36\pi\)
\(36\pi \approx 36 \times 3.14 = 113.04 \approx 113\,\mathrm{in^3}\)
Key idea
Why \(\dfrac{4}{3}\pi\)? The ancient Greek mathematician Archimedes found the answer. A cylinder that fits a sphere exactly (base radius \(r\), height \(2r\)) has a volume of \(\pi r^2 \times 2r = 2\pi r^3\), and the sphere takes up exactly \(\dfrac{2}{3}\) of it. So the sphere's volume is \(2\pi r^3 \times \dfrac{2}{3} = \dfrac{4}{3}\pi r^3\). Say the formula out loud as "four-thirds pi r cubed" to remember it. The most common mistake is to multiply the radius by 3 instead of cubing it (\(r \times r \times r\)).
Volume of a sphere (from the diameter)
Figure
Standard notation (the usual math form)
\(V\) \(=\) \(\pi\) \(\times\) \(d\) \(3\) \(\div\) \(6\)
In words (symbols replaced with words)
⑤ \(V\): volume of the sphere \(=\) ① \(\pi\): pi \(\times\) ② \(d\): diameter ③ cubed (the number used as a factor 3 times) \(\div\) ④ \(6\): a constant
The formula in words
① Take \(\pi\): pi
② and the \(d\): diameter
③ multiply pi by the diameter cubed (the number used as a factor 3 times)
④ divide by \(6\): a constant
⑤ and you get the \(V\): volume of the sphere
Quick example
The volume of a ball with a diameter of 6 in (radius 3 in) is
\(V\): volume of the sphere \(=\) \(\pi\): pi \(\times\) diameter (6 in) cubed \(\div\) \(6\): a constant
\(\pi \times 6^{3} \div 6 = \pi \times 216 \div 6 = 36\pi\)
\(36\pi \approx 113\,\mathrm{in^3}\)
Key idea
This formula comes from putting "radius = half the diameter (\(r = d \div 2\))" into formula 1 and simplifying (\(\dfrac{4}{3}\pi \times \dfrac{d^3}{8} = \dfrac{\pi d^3}{6}\)). It is handy for things like balls, where you can measure the diameter but not the radius directly. The 6 in diameter example gives the same answer (\(36\pi\)) as the 3 in radius example in formula 1, which shows that the two formulas describe the same sphere. Schools teach formula 1 (the radius formula), so learn that one first.
To find the volume of a sphere, cube the radius, then multiply by pi and by 4/3. If you only know the diameter, divide it by 2 to get the radius first. The answer is in the cube of the unit you entered (inches give in³), and dividing cubic inches by 231 gives US gallons.

Symbols and terms

Symbols

\(V\) vee The usual symbol for volume, from the first letter of "volume". On this page it stands for the volume of the sphere.
\(r\) ar The radius of the sphere, from the first letter of "radius". It is the distance from the center of the sphere to its surface.
\(d\) dee The diameter of the sphere, from the first letter of "diameter". It is the distance straight across the widest part of the sphere, twice the radius (\(d = 2r\)).
\(\pi\) pi The ratio of a circle's circumference to its diameter. It goes on forever as about 3.14159…, and 3.14 is a common rounded value.
\(r^3\) r cubed The number \(r\) used as a factor 3 times (\(r \times r \times r\)). The small raised 3 is an exponent. (Example: \(3^3 = 3 \times 3 \times 3 = 27\))
\(\mathrm{in^3}\) cubic inches A unit of volume. A cube that is 1 inch on each side has a volume of 1 in³. Do not mix it up with in² (square inches), which is a unit of area.
\(\mathrm{gal}\) gallons A unit for amounts of liquid such as water. 1 US gallon is \(231\,\mathrm{in^3}\), the size of a gallon jug of milk.
\(\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.

Terms

sphere A perfectly round solid made of all the points that are the same distance from a center. Balls, marbles and soap bubbles are spheres; they look like a circle from any direction.
radius The distance from the center of a sphere (or circle) to its surface. This is the value you enter in the calculator. It is half the diameter.
diameter The length of a line from surface to surface through the center of a sphere (or circle). It is twice the radius. Balls are often described by their diameter.
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.
pi The number of times a circle's diameter fits around its circumference (about 3.14), written \(\pi\). It appears not only in circle formulas but also in the volume and surface area of a sphere.
exponent The small raised number in \(3^3\), which tells how many times the number is used as a factor. The volume formula has a power of 3 because a solid spreads out in 3 directions: length, width and height.

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.

Circles and pi (Grade 7)
  • Knowing that pi (about 3.14) is a fixed number that tells how many times the diameter fits around the circumference
  • Knowing that the diameter is twice the radius
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 gallon = \(231\,\mathrm{in^3}\)
Multiplying a fraction by a whole number (Grades 4–5)
  • Multiplying a fraction by a whole number, such as \(\dfrac{4}{3} \times 27\)
Exponents (Grades 6–8)
  • Knowing that "cubed" means using a number as a factor 3 times, as in \(3^3 = 3 \times 3 \times 3\)
Spheres and the volume formula (Grade 8)
  • Knowing that a sphere is the set of all points at the same distance from a center
  • Remembering the volume formula \(V = \dfrac{4}{3}\pi r^3\) ("four-thirds pi r cubed")

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 sphere from the radius
Radius r (in) 5
Volume (in³) =4/3*PI()*B1^3
Table to find the volume of a sphere from the diameter
Diameter d (in) 10
Volume (in³) =PI()*B1^3/6
Table to convert cubic inches to US gallons
Volume in in³ 523.6
Volume in US gallons =B1/231
After pasting, column A holds the labels and column B holds the numbers. The upper row is your input, and the formula in the last row calculates automatically from it.
"PI()" is the Excel function that returns pi (3.14159…), "*" is multiplication, "/" is division and "^" is an exponent (how many times to multiply). "=4/3*PI()*B1^3" means "4/3 × π × B1 cubed".
In the first table, for example, B2 shows about 523.6 (in³ for a radius of 5 in). The second table is the same sphere (diameter 10 in), so it also shows about 523.6, and the third table shows about 2.267 (US gallons) in B2. Just replace the input numbers with your own.

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 sphere from the radius
Radius r (in) 5
Volume (in³) =4/3*PI()*B1^3
Table to find the volume of a sphere from the diameter
Diameter d (in) 10
Volume (in³) =PI()*B1^3/6
Table to convert cubic inches to US gallons
Volume in in³ 523.6
Volume in US gallons =B1/231
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 your own.

How to calculate it in Python

import math

radius = 5   # radius of the sphere (inches in this example)

volume = 4 / 3 * math.pi * radius ** 3   # volume of the sphere (input unit cubed, in3 in this example)
volume_gal = volume / 231                # in US gallons (for inputs in inches)

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 (cubed here), "*" is multiplication and "/" is division. Change the radius at the top and run it (this example uses inches).

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

Volume of a sphere (from the radius)
V = (4/3)πr³
V = \dfrac{4}{3}\pi r^{3}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>V</mi>
    <mo>=</mo>
    <mfrac><mn>4</mn><mn>3</mn></mfrac>
    <mi>&#x3C0;</mi>
    <msup><mi>r</mi><mn>3</mn></msup>
  </mrow>
</math>
V = 4/3 pi r^3
(4/3)*Pi*r^3
V := (4/3)*Pi*r^3;
V = (4/3)*pi*r^3;
V = (4/3)πr^3
Volume of a sphere (from the diameter)
V = πd³/6
V = \dfrac{\pi d^{3}}{6}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>V</mi>
    <mo>=</mo>
    <mfrac>
      <mrow><mi>&#x3C0;</mi><msup><mi>d</mi><mn>3</mn></msup></mrow>
      <mn>6</mn>
    </mfrac>
  </mrow>
</math>
V = (pi d^3)/6
Pi*d^3/6
V := Pi*d^3/6;
V = pi*d^3/6;
V = πd^3/6

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 sphere has a radius of 5 inches.
Find each of the following:
1. The volume of the sphere in cubic inches (in³) (V = 4/3 × π × r³)
2. 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.