Basic Calculator
Four-function and scientific calculator with parentheses, exponents, and keyboard input.
This calculator evaluates a full expression at once rather than computing step-by-step like a simple four-function calculator — it respects standard order of operations (exponents before multiplication/division before addition/subtraction), and parentheses override that order. Type an expression using the buttons or your keyboard, then press = or Enter to evaluate.
The scientific functions row adds trigonometry (sin, cos, tan and their inverses), roots and logarithms (√, ln natural log, log base-10), the constants π and e, and percent. Trig functions use the Deg/Rad toggle — switch to Rad if you're working in radians. Percent (%) is a postfix
operator that divides the preceding number by 100, so 50% becomes 0.5 and 50%+1 evaluates to 1.5.
Keyboard support: digits, + - * / ^ ( ) %, Enter to evaluate,
Backspace to delete the last character, and Escape to clear. Recent calculations are saved to this browser (not sent anywhere) — click
one to recall its result and keep calculating.
Worked examples:
2+3*4→ 14 (multiplication before addition)(2+3)*4→ 20 (parentheses override order)2^10→ 1024sin(90)in Deg mode → 1sqrt(16)→ 4
Does this calculator respect order of operations?
Yes. Exponents are evaluated before multiplication and division, which are evaluated before addition and subtraction — for example, 2+3*4 evaluates to 14, not 20. Wrap part of an expression in parentheses to force it to evaluate first, e.g. (2+3)*4 = 20.
How do I switch between degrees and radians?
Use the Deg/Rad toggle at the top of the calculator. It affects the trig functions (sin, cos, tan, and their inverses) — sin(90) is 1 in Deg mode but 0.894 in Rad mode, since 90 radians is not the same angle as 90 degrees.
Can I use my keyboard instead of clicking buttons?
Yes — type digits and operators (+ - * / ^ ( ) %) directly, press Enter or = to evaluate, Backspace to delete the last character, and Escape to clear the expression.
Is my calculation history saved anywhere?
History is saved only in this browser via localStorage — nothing is sent to a server. Click any past calculation to recall its result and continue calculating from there, or use the Clear button to erase your history.