In Excel: use =PI() — it returns π to 15 significant digits, 3.14159265358979, with no arguments needed.
On this page8
Syntax
Arguments
| Argument | required / optional | Description |
|---|---|---|
pi | optional | PI takes no arguments — the empty brackets are required. |
Related functions
Select the result cell and type =PI() including the empty brackets.
Combine it with the rest of the geometry, such as =PI()*A2^2 for a circle area.
Press Enter.
Round the display with ROUND only at the point of presentation, never mid-calculation.
What this does
PI returns the mathematical constant π at full spreadsheet precision. Typing 3.14 by hand instead is the classic source of quiet inaccuracy in engineering and geometry sheets, and PI() removes it. It takes no arguments; the empty brackets are part of the syntax. Beyond areas and circumferences, it appears wherever radians are involved — Excel's trigonometric functions expect radians, so converting degrees means multiplying by PI()/180, though RADIANS() states that conversion more directly. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. For “excel pi function”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected formula change, and only then apply the same setup to the full sheet. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That is what makes a calculation you can defend to a CFO or an auditor useful in real work: repeatable, auditable, and not dependent on memory or luck.
A worked example
Area of a circle from a radius in A2: =PI()*A2^2. Circumference from a diameter in B2: =PI()*B2. Converting 45 degrees to radians for a trig function: =45*PI()/180, or equivalently =RADIANS(45). PI() removes hand-typed approximations from geometry sheets, which is the difference between a rounding error and a wrong answer. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.
In Google Sheets
Google Sheets support for this task has not been verified. Check the function, arguments and workflow in the target product before transferring the example. Matching formula notation does not establish identical behaviour. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. For “excel pi function”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.
Common mistakes
- Typing 3.14 or 3.1416 instead, which introduces avoidable error in anything downstream.
- Omitting the brackets;
=PIis read as a defined name and returns#NAME?. - Feeding degrees straight into SIN, COS or TAN — they expect radians, so convert with RADIANS or × PI()/180 first.
Frequently asked questions
How do I use pi in an Excel formula?
Write =PI() wherever the constant is needed, for example =PI()*A2^2. The brackets are required even though there are no arguments.
How precise is PI()?
It returns π to 15 significant digits, which is the limit of Excel's numeric precision.
How do I convert degrees to radians?
Multiply by PI()/180, or use =RADIANS(degrees), which is clearer.