Basic Calculator

Calculate arithmetic expressions using the on-page keypad.

Scientific Calculator

0

Use × between values. Keyboard input is supported.

Understanding the basic calculator

The basic calculator is the tool everyone already knows how to use — and the one most often used wrong. The keys are familiar, but the rules behind them are not always remembered. Type 5 + 2 × 3 into a calculator that follows the standard order of operations and you get 11, because multiplication comes before addition.

Formula and method

Powers and roots next: 3^2 means 3 × 3 = 9
Multiplication and division next, left to right: 100 ÷ 4 × 5 is (100 ÷ 4) × 5 = 125, not 100 ÷ (4 × 5) = 5
Addition and subtraction last, left to right: 10 − 3 + 2 is (10 − 3) + 2 = 9, not 10 − (3 + 2) = 5

The parser uses the standard order of operations, from highest to lowest priority: Parentheses → functions and powers → multiplication and division → addition and subtraction Parentheses first: anything inside brackets is evaluated before anything outside. (47 + 38) × 6 is not the same as 47 + 38 × 6. Powers and roots next: Powers associate to the right: 2^3^2 is 2^(3^2) = 2^9 = 512, not (2^3)^2 = 64. Multiplication and division next, left to right: Work them in the order they appear. Percent: a percent sign divides its preceding value by 100. 18.5% is 0.185, so 18.5% of 240 is 0.185 × 240 = 44.40. It is not modulo. Trigonometry: sine, cosine and tangent use the angle mode you select — degrees or radians. The same number means something different in each mode, so check the mode before trusting a trig result.

Worked example

Example 1 — Order of operations: 47 + 38 × 6 − 120 ÷ 15 Evaluate 47 + 38 × 6 − 120 ÷ 15. Multiplication and division first: 38 × 6 = 228; 120 ÷ 15 = 8 The expression is now 47 + 228 − 8 Addition and subtraction left to right: 47 + 228 = 275; 275 − 8 = 267 Result: 267 Done left to right without the rules, the same keystrokes give a different (wrong) answer: 47 + 38 = 85, × 6 = 510, − 120 = 390, ÷ 15 = 26. The order is the whole difference between 267 and 26.