# Basic Calculator

URL: https://hifreetools.com/calculators/basic-calculator

> A fast, free online calculator for everyday arithmetic. Type an expression or tap the buttons — it respects the order of operations and parentheses.

## Quick answer

This calculator evaluates a whole expression at once, following the standard order of operations: parentheses first, then × and ÷, then + and −. For example, 2 + 3 × 4 = 14, not 20. Use parentheses to change the order: (2 + 3) × 4 = 20.

## Formula

- Brackets first, then ^ (right to left), then × ÷ and remainder (left to right), then + − (left to right); −2^2 = −(2^2)
- b% = b ÷ 100; a + b% = a × (1 + b/100); a − b% = a × (1 − b/100); a % b between two numbers is the remainder
- Results are rounded to 12 significant digits (whole numbers below 10^15 are exact)

Enter a math expression using digits, + − × ÷, and parentheses, then press = or Enter. The calculator parses the whole expression and applies standard operator precedence (multiplication and division before addition and subtraction). Everything is computed locally in your browser — nothing is uploaded.

## Inputs

- Expression; default 0

## Worked examples (computed by the page's own function)

- Expression = 2 + 3 × 4 → Result = 14  (2 + 3 × 4 = 14)
- Expression = (2 + 3) × 4 → Result = 20  ((2 + 3) × 4 = 20)
- Expression = 7 ÷ 8 → Result = 0.875  (7 ÷ 8 = 0.875)
- Expression = 200 + 10% → Result = 220  (200 + 10% = 220)
- Expression = 0.1 + 0.2 → Result = 0.3  (0.1 + 0.2 = 0.3)

## Verification

Checked against 39 reference cases (expected values computed independently). Reviewed 2026-10-27. Latest change 2026-10-28: Moved to the schema keypad renderer with a sourced ledger. Adds ^ (powers) and % (percent: 200 + 10% = 220) keys, a history of recent results and Ans; % between two numbers is still the remainder. Results are rounded to 12 significant digits as before; very large or small results switch to exponent form from 10^15 / below 10^−9 with 12 digits instead of 9. Function names and constants (sin, π, !) are no longer typed here — they live in the scientific calculator.

## FAQ

**Does it follow the order of operations?**
Yes. It applies the standard PEMDAS / BODMAS rules: parentheses, then multiplication and division, then addition and subtraction.

**Can I use my keyboard?**
Yes. Type the expression directly and press Enter to evaluate; the on-screen buttons are optional.

**Is my input sent anywhere?**
No. The calculation runs entirely in your browser and nothing is uploaded.

**How do I do powers, roots, or trigonometry?**
For advanced math — powers, roots, logarithms, and trigonometry — use the scientific calculator.

**Why isn't 0.1 + 0.2 exactly 0.3?**
Computers use binary floating-point, so some decimals are approximate. Results are rounded for display, but tiny differences can appear in long calculations.


## Sources

- [Wikipedia — Order of operations](https://en.wikipedia.org/wiki/Order_of_operations)
- [Wikipedia — Percentage](https://en.wikipedia.org/wiki/Percentage)
- [Wikipedia — Modulo (remainder)](https://en.wikipedia.org/wiki/Modulo)
- [Python documentation — Floating-point arithmetic: issues and limitations](https://docs.python.org/3/tutorial/floatingpoint.html)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Basic Calculator", https://hifreetools.com/calculators/basic-calculator
