Basic Calculator
Fast online calculator for addition, subtraction, multiplication & division with keyboard support and calculation history
Loading Calculator...
- Tap the number keys or use your keyboard to enter the first number.
- Select +, −, ×, or ÷ to choose an operation.
- Type the second number, then tap = or press Enter for the result.
- Keep chaining operators and numbers to perform multi-step calculations. The full expression chain is displayed above the result.
- Use % to convert the current number to a percentage, or +/− to flip its sign.
- Use x² to square the current value, or √x to take the square root (press Q or R on keyboard).
- Use xn to raise a number to any power: enter the base, press xn, enter the exponent, then press =. Use n√x similarly for nth roots (press ^ or N on keyboard).
- Check Recent Calculations below the display to review your history. History persists across sessions via local storage.
- Use the Clear button next to Recent Calculations to remove all saved history.
- Use C to clear everything or Backspace to remove the last digit typed.
The calculator processes one operation at a time, in the order you enter it (left to right), rather than following full mathematical operator precedence. For example, entering 2 + 3 × 4 calculates (2 + 3) × 4 = 20, not 14. This matches how most simple pocket calculators behave.
As you chain operations, the full expression (e.g., "2 + 6 + 7") is displayed above the current result so you can always see your complete calculation sequence.
Supported Operations:
- • Addition (+) - combine two numbers
- • Subtraction (−) - find the difference between two numbers
- • Multiplication (×) - scale one number by another
- • Division (÷) - split a number into equal parts
- • Square (x²) - multiply a number by itself
- • Square Root (√x) - find the value that when multiplied by itself gives the input
- • Power (xⁿ) - raise a number to any exponent (e.g., 2^5 = 32)
- • Nth Root (ⁿ√x) - find the nth root of a number (e.g., ³√27 = 3, ³√-8 = -2)
- • Percent (%) - convert the current value to a decimal fraction (e.g., 50 becomes 0.5)
- • Sign toggle (+/−) - switch between positive and negative
Calculation History:
Your calculation history is automatically saved to your browser's local storage, so it persists even after you close the tab or refresh the page. Up to 50 recent calculations are retained, each showing the full expression chain and result. Use the Clear button to remove all saved history at any time.
Error Handling:
Dividing by zero is undefined in mathematics, so the calculator shows "Error" instead of a result. Taking the square root of a negative number also produces an error. For nth roots, odd integer root indices of negative numbers are supported (e.g., ³√-8 = -2), but even or non-integer root indices of negative numbers will show "Error" since they are undefined in real numbers. Press C or Backspace to reset and continue calculating.
Everyday Math
- • Split a restaurant bill evenly among friends
- • Add up grocery totals before reaching the checkout
- • Calculate quick discounts while shopping in-store
- • Convert recipe measurements when scaling servings up or down
Work & School
- • Check homework arithmetic without switching apps
- • Total up hours worked for timesheet entries
- • Calculate quick estimates during meetings or calls
- • Find square roots for geometry or physics homework
Budgeting & Shopping
- • Track running totals while comparing prices
- • Divide shared expenses among roommates fairly
- • Calculate tips and service charges on the spot
- • Estimate monthly expenses by adding line items
Quick Reference
- • Perform fast arithmetic without opening a dedicated app
- • Review past calculations from persistent history
- • Use on any device with a browser, no installation needed
- • Square numbers or find roots for quick math checks