Skip to content

Online Calculator With Step-by-Step Working

Type or tap a whole calculation and the answer updates as you go. Scientific keys, a percent key, a history of past answers and the order-of-operations steps are all on one page.

Runs in your browserFree, no sign-upLast reviewed

Settings

Type here or use the keys. Press Enter or = to save the answer to the history.

= 56
Angle unit

Results update automatically as you type.

Result

Answer
56

Order of operations, step by step

StepCalculationResult
112 + 820
220 × 360
32^416
416 ÷ 44
560 − 456

Copy the calculation

(12 + 8) × 3 − 2^4 ÷ 4 = 56

Quick answers

What is 8 ÷ 2(2 + 2)?
16. The bracket is worked out first, giving 8 ÷ 2 × 4. Division and multiplication have equal rank and are done from left to right, so 8 ÷ 2 = 4, then 4 × 4 = 16. Writing 8 ÷ (2(2 + 2)) instead gives 1.
How do I add a percentage to a number on a calculator?
Type the number, a plus sign, then the percentage with the % key. 200 + 15% gives 230, because the calculator adds 15% of 200, which is 30. Subtracting works the same way: 80 − 25% gives 60.
Is -3^2 equal to 9 or -9?
-9. The power is applied before the minus sign, so -3^2 means -(3^2). To square negative three, put it in brackets: (-3)^2 = 9.
What order does a calculator do operations in?
Brackets first, then powers and roots, then multiplication and division from left to right, then addition and subtraction from left to right. This is the rule known as PEMDAS in the US and BODMAS or BIDMAS in the UK. So 2 + 3 × 4 is 14, not 20.
Should my calculator be in degrees or radians?
Use degrees when the angle is written with a degree sign or comes from a triangle or a protractor, and radians when it is written in terms of π. In degrees sin(30) is 0.5. In radians sin(1) is 0.841470984808.
How do I type a power or a square root?
Use ^ for a power, so 2^10 gives 1,024. For a square root, press the √ key or type sqrt, so √81 gives 9. A cube root is cbrt(27), which gives 3.

What Online Calculator does

This online calculator works out a full expression in one go instead of one keypress at a time, so you can see and correct everything you entered. Use the on-screen keys or your keyboard for addition, subtraction, multiplication, division, powers, roots, percentages, factorials, logarithms and trigonometry in degrees or radians. Under the answer it lists each step in the order the rules of arithmetic require, and gives the answer as a fraction when one exists. With the starting example, (12 + 8) × 3 − 2^4 ÷ 4, the steps are 12 + 8 = 20, 20 × 3 = 60, 2^4 = 16, 16 ÷ 4 = 4 and 60 − 4 = 56.

What each key types, with an example

Every key adds text to the Calculation box, so anything a key does can also be typed by hand.

KeyTypesExampleAnswer
+ − × ÷The four basic operators. On a keyboard use + - * /100 ÷ 10 × 220
( )Brackets, worked out before anything outside them(2 + 3) × 420
x² and xʸ^2 and ^ for powers2^101,024
√√( for a square root. sqrt( also works√(3^2 + 4^2)5
%Percent of the number before it250 × 20%50
n!Factorial of a whole number from 0 to 17010!3,628,800
sin cos tanTrigonometry in the chosen angle unitsin(30) in Deg0.5
sin⁻¹ cos⁻¹ tan⁻¹asin( acos( atan( for the inverse functionsatan(1) in Deg45
ln and logNatural logarithm and base-10 logarithmlog(1000)3
π and e3.14159265359 and 2.718281828464/3 × π × 6^3904.778684234
EEE, meaning times ten to the power of6.02E23 × 21.204e24
modRemainder after division17 mod 52
x⁻¹^(-1), the reciprocal5^-20.04
AnsThe last answer saved with = or Enter
⌫ and ACDelete the last entry, or clear the whole line

Typed functions that have no key: log2, cbrt, abs, exp, sinh, cosh, tanh, round, floor and ceil.

Worked examples with the steps shown

Each line below is the calculator's own output, including the working.

A shop total

19.99 × 3 + 4.5

64.47. Steps: 19.99 × 3 = 59.97, then 59.97 + 4.5 = 64.47. As a fraction: 6,447/100.

An average of three test scores

(72 + 85 + 90) ÷ 3

82.3333333333, or 82.33 rounded to 2 decimals. Steps: 72 + 85 = 157, 157 + 90 = 247, 247 ÷ 3 = 82.3333333333. As a fraction: 247/3 (82 1/3).

Without the brackets only the 90 would be divided by 3.

Compound growth

1500 × 1.08^5

2,203.9921152, or 2,203.99 rounded. Steps: 1.08^5 = 1.4693280768, then 1,500 × 1.4693280768.

1,500 growing at 8% a year for 5 years. The power is taken before the multiplication.

The long side of a right-angled triangle

√(3^2 + 4^2)

5. Steps: 3^2 = 9, 4^2 = 16, 9 + 16 = 25, √25 = 5.

Choosing 2 items from 5

5!/(3! × 2!)

10. Steps: 5! = 120, 3! = 6, 2! = 2, 6 × 2 = 12, 120 ÷ 12 = 10.

Checking an identity in degrees

sin(30)^2 + cos(30)^2

1. Steps: sin(30°) = 0.5, 0.5^2 = 0.25, cos(30°) = 0.866025403784, squared = 0.75, 0.25 + 0.75 = 1.

The order of operations this calculator follows

A calculation with more than one operator is not read strictly left to right. Brackets come first. Powers and roots come next, and a chain of powers is read from the right, so 2^3^2 is 2^9 = 512. Multiplication, division and mod share the next level and are worked from left to right: 100 ÷ 10 × 2 is 20, not 5. Addition and subtraction come last, also left to right: 10 − 4 + 2 is 8.

Two cases catch people out. A minus sign in front of a power is applied after the power, so -3^2 is -9 while (-3)^2 is 9. And a number written directly against a bracket or a symbol is multiplied, with the same rank as a written × sign: 2π is 2 × π, and 8 ÷ 2(2 + 2) is read as 8 ÷ 2 × 4 = 16. Some textbooks and some handheld calculators give implied multiplication a higher rank and would answer 1, which is why that sum causes arguments. If you mean the other reading, add brackets and the steps table will confirm which one was used.

A simple four-function pocket calculator works differently again: it applies each key as it is pressed, so entering 2 + 3 × 4 on one gives 20. This page gives 14, the answer the standard rules require.

How the percent key works

The % key means two different things depending on what comes before it.

You typeHow it is readAnswer
15%15 ÷ 1000.15
250 × 20%250 × 0.2, which is 20% of 25050
45 ÷ 60%45 ÷ 0.6, the whole when 45 is 60% of it75
200 + 15%200 plus 15% of 200230
80 − 25%80 minus 25% of 8060

The + and − behaviour matches the % key on a pocket calculator. For a remainder, use mod, as in 17 mod 5.

Common values worth checking against

CalculationAnswerAngle unit
sin(30)0.5Degrees
sin(45)0.707106781187Degrees
cos(30)0.866025403784Degrees
cos(60)0.5Degrees
tan(45)1Degrees
tan(60)1.73205080757Degrees
sin(1)0.841470984808Radians
atan(1)0.785398163397Radians
√21.41421356237Any
ln(10)2.30258509299Any
log(2)0.301029995664Any
1/30.333333333333Any

tan(90) in degrees has no value, and the calculator says so instead of returning a huge number.

Precision, rounding and limits

Answers are shown to 12 significant digits. That is enough to hide the tiny binary rounding errors computers make with decimals, so 0.1 + 0.2 shows 0.3 here and 3 × 0.1 shows 0.3. Whole-number answers are shown in full up to 9,007,199,254,740,991. Beyond that, and for anything smaller than 0.000001, the answer switches to E notation: 20! is shown as 2.43290200818e18, meaning 2.43290200818 × 10^18. The largest value it can hold is about 1.8 × 10^308, and the largest factorial is 170!.

The As a fraction line appears when the answer matches a simple fraction to all 12 digits, so 1.375 is also given as 11/8 (1 3/8). For exact fraction arithmetic with full working, the fraction calculator on this site is the better tool.

This is a calculator for real numbers. It does not draw graphs, solve equations for x, store variables or work with complex numbers, so √ of a negative number and the logarithm of zero return a plain-language error. The History holds the last 10 saved lines and is cleared when you leave or reload the page. Nothing you type is sent anywhere.

Step by step

  1. 1

    Tap the number and operator keys, or click the Calculation box and type, for example 19.99 × 3 + 4.5. The first number key you press replaces the example.

  2. 2

    Read the answer on the display line under the box. It changes with every key, so there is no need to press = first.

  3. 3

    For sin, cos and tan, set the Angle unit switch to Deg or Rad before reading the answer.

  4. 4

    Press = or Enter to save the line to the History and carry the answer into the next calculation. The Ans key types the last saved answer.

  5. 5

    Check the Order of operations, step by step table to see how the answer was reached, then use Copy the calculation to take the whole line with you.

Common questions

Can I use my keyboard instead of the on-screen keys?
Yes. Click the Calculation box and type. Use * for multiply, / for divide, ^ for a power, and function names such as sqrt(16), sin(30) or ln(2). Press Enter to save the line to the History, the same as the = key.
Why is my sin, cos or tan answer different from the one I expected?
The Angle unit is almost always the cause. sin(30) is 0.5 in degrees but about -0.988 in radians. Switch between Deg and Rad above the keys. The Answer panel notes which unit was used.
Why do some calculators show 0.30000000000000004 for 0.1 + 0.2?
Computers store decimals in binary, and 0.1 and 0.2 have no exact binary form, so a tiny error appears in the 17th digit. This calculator rounds the display to 12 significant digits, which removes it and shows 0.3.
What is the difference between ln and log?
ln is the natural logarithm, with base e, and log is the common logarithm, with base 10. So log(1000) is 3 and ln(10) is 2.30258509299. For base 2, type log2, as in log2(8), which gives 3.
What does the EE key do?
It enters a number in scientific notation. 6.02E23 means 6.02 × 10^23, and 1.5E-3 means 0.0015. Large and small answers are shown the same way, with a lower-case e.
Is my calculation history saved?
Only while the page is open. Pressing = or Enter adds the line to the History under the keys, and clicking a line loads it again. The list keeps the 10 most recent entries and disappears when you reload or close the page.
Can I type numbers with commas?
Yes, as thousands separators: 1,250 × 12 gives 15,000. A comma is not accepted as a decimal mark, so write three and a half as 3.5 and not 3,5.
Does it work on a phone?
Yes. The keys are sized for touch and sit directly under the answer, so the result stays in view while you tap. No app or sign-up is needed.

Looking for something else? Browse all calculators or see every tool.