The PI function returns the mathematical constant π (pi), approximately 3.14159265358979, with no arguments required. Use it wherever a formula needs the ratio of a circle's circumference to its diameter, such as area, circumference or angle conversions.
=PI()What does PI do?
The PI function is one of Excel's simplest functions: you type =PI() and Excel gives you the value of π, the constant used in every circle calculation. It takes no arguments, so there is nothing to get wrong, and it always returns the same 15-digit precision value. That matters because typing 3.14 by hand introduces rounding errors that grow quickly in larger calculations.
Although π sounds academic, it appears in everyday spreadsheet work: calculating the area of a round table for a floor plan, working out the volume of a cylindrical tank, converting degrees to radians before using trigonometric functions, or estimating the length of a circular running track. Excel's built-in trigonometric functions such as SIN and COS expect angles in radians, so PI is often the bridge between the degrees people think in and the radians Excel needs.
A typical situation: an office manager is ordering protective covers for circular café tables and needs the area of each tabletop. With the diameter in one cell, the formula =PI()*(B2/2)^2 returns the exact area, and copying it down the column handles every table size at once. No manual constant, no rounding surprises.
When to use PI
- Calculating the area of a circle from its radius or diameter
- Finding the circumference of a round object, such as a pipe or track
- Working out the volume of a cylinder, such as a tank or a can
- Converting degrees to radians before using SIN, COS or TAN
- Estimating material needed for circular or curved surfaces
- Solving geometry or physics homework in a spreadsheet
PI syntax
=PI()| Argument | Required? | What to enter |
|---|---|---|
none | Optional | PI takes no arguments; the empty parentheses are required. For example, =PI() returns 3.14159265358979. |
What it returns: The mathematical constant π as a number, approximately 3.14159265358979, with 15 significant digits of precision.
PI examples
1 Basic circle area from a radius
This example calculates the area of a circle when the radius is given. The formula =PI()*B2^2 multiplies π by the radius squared. Excel evaluates B2^2 first, then multiplies by π. With a radius of 5, the result is about 78.5398 square units.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Shape | Radius | |||
| 2 | Circle A | 5 | 78.53981634 | ||
| 3 | Circle B | 7 | |||
| 4 | Circle C | 10 | |||
| 5 |
2 Circumference from a diameter
Here the diameter is known and the circumference is needed. The formula =PI()*B2 multiplies π by the diameter. For a diameter of 12, the circumference is about 37.6991. This is useful for ordering edging strips or calculating distance around a round feature.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Object | Diameter (cm) | |||
| 2 | Table | 12 | 37.69911184 | ||
| 3 | Planter | 30 | |||
| 4 | Fountain | 45 | |||
| 5 |
3 Volume of a cylindrical tank
This example finds the volume of a cylinder using radius and height. The formula =PI()*B2^2*C2 squares the radius, multiplies by π, then multiplies by the height. For radius 2 and height 10, the volume is about 125.6637 cubic units. It is handy for capacity planning.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Tank | Radius (m) | Height (m) | |||
| 2 | Tank 1 | 2 | 10 | 125.6637061 | ||
| 3 | Tank 2 | 3 | 8 | |||
| 4 | Tank 3 | 1.5 | 12 | |||
| 5 |
4 Convert degrees to radians for trigonometry
Excel's SIN, COS and TAN functions expect radians, not degrees. The formula =B2*PI()/180 converts an angle in degrees to radians. For 45 degrees, it returns about 0.785398. You can then wrap it in SIN, for example =SIN(B2*PI()/180), to get 0.707107.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Angle name | Degrees | |||
| 2 | Angle 1 | 30 | 0.5235987756 | ||
| 3 | Angle 2 | 45 | |||
| 4 | Angle 3 | 90 | |||
| 5 |
5 Cost of protective covers for round tables
A café needs to order covers priced per square metre. The formula =PI()*(B2/2)^2*C2 converts the diameter to a radius, calculates the area, then multiplies by the price per square metre. For a 1.2 m table at 25 per square metre, the cost is about 28.2743. Copying the formula down gives the total for every table.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Table | Diameter (m) | Price per m² | |||
| 2 | Table 1 | 1.2 | 25 | 28.27433388 | ||
| 3 | Table 2 | 1.5 | 25 | |||
| 4 | Table 3 | 0.8 | 30 | |||
| 5 |
Common PI errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #NAME? | The function name is misspelled, for example =PIE() or =PI without parentheses. | Use exactly =PI() with the empty parentheses. |
| #VALUE! | A non-numeric value is used in the surrounding formula, such as text in a radius cell. | Check that referenced cells contain numbers, not text or spaces. |
| #DIV/0! | The formula divides by a cell that is zero or empty, often when converting units. | Ensure the divisor cell contains a non-zero number. |
| #NUM! | An operation produces an invalid number, such as a negative value under a square root in a related formula. | Verify that inputs such as radius or diameter are positive. |
Tips for using PI
- Always use
PI()rather than typing 3.14; the built-in value has far more precision and avoids rounding drift. - Remember that Excel's SIN, COS and TAN use radians, so multiply degrees by
PI()/180before calling them. - To display fewer decimals without changing the stored value, apply number formatting rather than ROUND.
- Name a cell
PiValuewith=PI()if you prefer a readable reference, but directPI()is usually clearer. - When calculating area from diameter, divide by 2 first:
=PI()*(B2/2)^2. - Use
PI()inside larger formulas freely; it is a constant and costs almost nothing in performance.
Frequently asked questions
Does the PI function take any arguments?
No. It is written as =PI() with empty parentheses and always returns the same constant.
How precise is Excel's PI value?
Excel returns π to 15 significant digits, approximately 3.14159265358979, which is more than enough for ordinary business and study calculations.
Why do my SIN and COS results look wrong?
Those functions expect radians. Convert degrees first with =degrees*PI()/180, then pass the result to SIN or COS.
Can I use PI in a named formula or chart?
Yes. PI() can appear anywhere a number is expected, including named ranges, chart series formulas and conditional formatting rules.
Is there a difference between PI() and the PI symbol?
Excel does not recognise the Greek letter π as a number in formulas; you must use the PI() function.
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. PI reference