Basic Calculator

About this calculator

This Basic Calculator handles everyday arithmetic: addition, subtraction, multiplication and division, plus percentages, square roots, squares, sign changes and memory. It respects the order of operations, so 2 + 3 × 4 gives 14.

Click the keys or use your keyboard, then press = for the answer.

0

Tip: you can also type with your keyboard. Enter evaluates, Backspace deletes, Esc clears.

Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

How to use the basic calculator

Type a calculation with the on-screen keys or your keyboard and press = (or Enter). The full expression stays visible while you type, so you can spot a mistyped digit before you get the answer. After a result appears, pressing an operator such as + continues from that answer, while pressing a digit starts a fresh calculation.

  • + − × ÷: the four basic operations. Multiplication and division are carried out before addition and subtraction.
  • %: divides the number before it by 100. 50 × 20% is 10, and 80% on its own is 0.8.
  • √x: finds a square root. Press 9, then √x and = to get 3. You can also press √x before entering the number.
  • x2: squares the number before it. 12² is 144.
  • ( ): group part of a calculation so it is done first. (2 + 3) × 4 is 20.
  • ±: changes the sign of the last number you entered.
  • EXP: scientific notation. 4 EXP 6 means 4 × 106, or 4,000,000.
  • Ans: inserts the previous answer.
  • M+, M−, MR: add the current value to memory, subtract it from memory, or recall it. The stored value is shown under the display.
  • RND: inserts a random number between 0 and 1.
  • Back and AC: delete the last entry or clear the display. AC keeps the previous answer available on Ans.

Order of operations

When an expression mixes operations, the calculator applies the same rules you learned in school:

  1. Anything in parentheses.
  2. Square roots, squares and percentages.
  3. Multiplication and division, left to right.
  4. Addition and subtraction, left to right.
10 − 4 ÷ 2 + 3 × 3 = 10 − 2 + 9 = 17

Some pocket calculators work strictly left to right, which would give (10 − 4) ÷ 2 + 3, times 3, or 18. If you want that behavior, press = after each step, or add parentheses.

Worked examples

You typeResultNotes
125 + 375500Simple addition
1000 − 237.5762.5Decimals are handled exactly as typed
24 × 7168Hours in a week
355 ÷ 1133.1415929204A famous approximation of π
80 × 15%1215 percent of 80
√(144)12Square root
(3 + 5) × 216Parentheses first

Working with percentages

Percent means "per hundred," so the % key simply divides by 100. That makes a few everyday tasks one-liners:

  • Tip or tax on a bill: 64 × 18% = 11.52. Add it with 64 + 64 × 18% = 75.52.
  • Discount: a 25% discount on 90 is 90 − 90 × 25% = 67.5.
  • What percent is one number of another: divide and multiply by 100, for example 45 ÷ 60 × 100 = 75, so 45 is 75% of 60.

Using memory for running totals

Memory is handy for totals that build up from several separate calculations. For example, to total three purchases of 3 × 4.50, 2 × 7.25 and 12.99: type 3 × 4.50 and press M+, type 2 × 7.25 and press M+, type 12.99 and press M+, then press MR to recall 40.99. M− removes a value from the stored total, and AC clears the expression but keeps the memory, so you can keep adding to it.

Accuracy

Results are computed in double-precision floating point and shown with a 12 digit budget (whole-number digits plus the remaining decimals, so 355 ÷ 113 shows 3.1415929204). This rounds away tiny binary artifacts, so 0.1 + 0.2 displays as 0.3. Whole numbers below 1021 are shown in full; larger or very small answers switch to scientific notation (for example 1e+21). Dividing by zero or taking the square root of a negative number shows Error. For exact arithmetic on numbers with hundreds of digits, use the Big Number Calculator instead.

Frequently asked questions

Does the basic calculator follow the order of operations?
Yes. Multiplication and division are done before addition and subtraction, and parentheses are evaluated first. 2 + 3 × 4 is 14. Press = after each step if you prefer left-to-right evaluation.
How does the percent key work?
It divides the number before it by 100. So 200 × 15% is 30, and 200 + 200 × 15% is 230.
How do I find a square root?
Press √x, enter the number, then press =. For example √(225) = 15.
Can I use my keyboard?
Yes. Digits, the decimal point, + − * / ( ) and % all work. Enter or = evaluates, Backspace deletes and Esc clears.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.