Basic Calculator

Add, subtract, multiply and divide, with brackets, powers, square roots and percentages. The answer is exact, so 0.1 + 0.2 is 0.3, and every step is shown in the right order of operations.

Calculator Numbers & Math Updated Oct 3, 2026
How to Use
  1. Tap the keys or type straight into the box: digits, + − × ÷, ^ for powers, √, % and brackets. * and / work too.
  2. The answer updates as you type; press = or Enter to save it to the recent list.
  3. Read the result, the exact fraction when there is one, and how many operations were done.
  4. Show Work lists each operation in the order it is done: brackets, powers and roots, then × and ÷, then + and −.
  5. The tree shows how the expression is grouped; each circle is worked out from the numbers below it.
Input
Presets
Expression tree
Result
—
As a fraction
—
Exactness
—
Steps
—

Worked Example

(4 + 5)² − √81. Brackets first: 4 + 5 = 9. Then powers and roots: 9² = 81 and √81 = 9. Last, the subtraction: 81 − 9 = 72.

The famous one: 6 ÷ 2(1 + 2). The bracket gives 3, leaving 6 ÷ 2 × 3. Division and multiplication rank equally and go left to right: 6 ÷ 2 = 3, then 3 × 3 = 9. Some older textbooks treat 2(1 + 2) as a single block and get 1, which is why the expression is best written with an extra bracket.

The common mistake: adding before multiplying. 2 + 3 × 4 typed into a simple pocket calculator, one key at a time, often gives 20. The correct answer is 3 × 4 = 12 first, then 2 + 12 = 14.

Show Work

Type an expression to see each step.

Order of Operations

1. Brackets
( … ) innermost first
2. Powers and roots
xʸ, √x (2^3^2 = 2^9)
3. Multiply and divide
× ÷ left to right
4. Add and subtract
+ − left to right
Percent after + or −
a + p% = a × (1 + p/100)

From the Abacus to the Pocket Calculator

The signs themselves are younger than you might think: + and − first appear in print in Johannes Widmann’s 1489 arithmetic, × in William Oughtred’s 1631 Clavis Mathematicae, and ÷ in Johann Rahn’s 1659 algebra. The rule that multiplication comes before addition grew out of how algebra was written, and was taught as a fixed convention only from the early 20th century.

The first pocket electronic calculators arrived around 1970–72; many early ones worked through keys strictly in the order pressed, which is why 2 + 3 × 4 still gives 20 on some cheap calculators today, while scientific calculators and spreadsheets follow the order of operations.

About This Calculator

This calculator takes a whole expression, typed or tapped, and evaluates it in the standard order of operations with exact fractions, so decimals never pick up binary rounding errors. It shows each step in the order it is done, draws the expression as a tree, gives the answer as a fraction when it isn’t a whole number, and keeps your last 8 calculations in this browser.

Everything runs in your browser; nothing is sent anywhere.

Related calculators: Scientific Calculator, Percentage Calculator, and Fraction Calculator.

Frequently Asked Questions

Why is 2 + 3 × 4 equal to 14 and not 20?

Multiplication and division come before addition and subtraction, so 3 × 4 = 12 is done first and 2 + 12 = 14. To add first, use brackets: (2 + 3) × 4 = 20. The order is often remembered as PEMDAS or BODMAS: brackets, powers (orders), then × ÷, then + −.

Does PEMDAS mean multiplication before division?

No. Multiplication and division have the same rank and are done left to right, and so are addition and subtraction. 12 ÷ 3 × 2 = 4 × 2 = 8, not 12 ÷ 6 = 2. Likewise 10 − 4 − 3 = 3, not 10 − 1 = 9. Powers are the exception: 2^3^2 is 2^9 = 512, worked from the top down.

Why does this give 0.1 + 0.2 = 0.3 when some calculators show 0.30000000000000004?

Most software stores numbers in binary, where 0.1 can’t be written exactly, so tiny errors appear. This calculator keeps every number as an exact fraction (0.1 is 1/10), so decimal answers are exact. Only square roots of non-squares, π and fractional powers are rounded, and the result says so.

How does the % key work?

After a + or −, a percentage means a percentage of the number before it, as on a pocket calculator: 200 + 10% = 220 and 80 − 25% = 60. Elsewhere it simply divides by 100: 50% × 30 = 15. For other percentage questions, the Percentage Calculator has a mode for each.

What does a negative number squared give?

It depends on brackets. (−3)² = 9, because the bracket squares −3. But −3² = −9, because the power is done before the minus sign, which is the standard convention in mathematics and in spreadsheets’ formulas. Use brackets whenever you mean the negative number itself.

How do I use the Basic Calculator?

Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.

Does it cost anything or need an account?

No. The tool is completely free, there is no account to create, and it keeps working offline after the page first loads.

Is anything I type uploaded?

No. The tool works entirely on your device, so the values you enter never leave your browser.

Common Use Cases

Everyday sums

12.50 + 7.25 + 3.99 = 23.74.

Order of operations

6 ÷ 2(1 + 2) = 9 read left to right, with the steps shown.

Adding tax

200 + 10% = 220.

Exact decimals

0.1 + 0.2 = 0.3 and 1 ÷ 3 × 3 = 1, with no rounding error.

Checking homework

(4 + 5)² − √81 = 72, one step at a time.

Last updated: