Calculator

Calculate arithmetic expressions with parentheses, decimals and percentages. See operation order and keep a short session history.

Your calculation

Use +, −, ×, ÷, parentheses and %. Percent means divide by 100.

Operation steps
    Session history (up to 8)

      Calculations run on your device. Inputs are not sent to our server. Saved tools stores a result locally only when you choose to save it.

      Arithmetic with a visible method

      Type an expression or use the keypad. Multiplication and division are evaluated before addition and subtraction. Operations at the same precedence are evaluated left to right. Parentheses change the order. The steps show the arithmetic in the order it was performed. Press Enter or equals to add a result to the current session history.

      Examples to try

      • 2 + 3 × 4 gives 14; (2 + 3) × 4 gives 20.
      • 120 ÷ 3 × 2 gives 80, because division and multiplication proceed left to right.
      • 200 × 15% gives 30. To add 15% to 200, enter 200 × (1 + 15%), which gives 230.
      • -(8 + 2) ÷ 4 gives −2.5.

      How the percent key works

      The percent sign divides the immediately preceding number or parenthesized value by 100. It is not a contextual pocket-calculator percent key: 200 + 10% means 200 + 0.1 = 200.1. Use 200 × 1.10 to add ten percent. For guided percentage questions, use the percentage calculator below.

      Input and precision limits

      Use a decimal point and explicit multiplication: enter 2 × (3 + 4), not 2(3 + 4). Commas, currency signs, variables, powers and functions such as sin are not supported. Scientific notation such as 1e3 is accepted. There is a 200-character limit and a 20-level nesting limit. Division by zero, non-finite results and magnitudes above 9,007,199,254,740,991 are rejected.

      Calculations use binary floating-point arithmetic and display up to 12 significant digits. For example, 0.1 + 0.2 displays 0.3. Display rounding does not make this exact decimal accounting software. Intermediate results use unrounded values; use the fractions tool when exact fractional arithmetic matters. The equals key records the expression; it does not repeat the last operation.

      Keyboard, history and privacy

      Use the keyboard for +, -, *, /, parentheses and %. Enter records a valid result; Escape clears the expression. Delete edits at the cursor. History keeps at most eight results until you leave or reload this page. Clear history removes those rows. Optional Saved tools saves are stored separately on your device and can be deleted there. No sign-up is needed.

      Unexpected result? Tell us the inputs and what you expected.