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.
It also has the hyperbolic functions sinh, cosh and tanh (these take a plain number, so the Deg/Rad toggle does not affect them),
factorial (n!, written after the number: 5!), absolute value
(|x|), any root (ⁿ√x, written nthroot(x, n) — so nthroot(27, 3) is the cube root of 27), a reciprocal key (1/x,
which wraps the whole expression) and round, floor and ceil for whole numbers.
The Decimal / Fraction switch changes how the result is shown. In Fraction
mode, a result that is exactly a fraction is shown with =, as = 3/4. A result that is not, like π, is shown as the nearest fraction with a
denominator up to 1000, marked ≈ so it is never mistaken for the exact value.
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)→ 45!→ 120nthroot(-8, 3)→ -2round(-2.5)→ -3 (halves round away from zero)1/3in Fraction mode → = 1/3piin Fraction mode → ≈ 3 16/113
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. The hyperbolic functions sinh, cosh and tanh take a plain number rather than an angle, so the toggle does not change them.
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.
Can I see the answer as a fraction?
Yes. Switch "Show result as" to Fraction. 0.75 is shown as = 3/4 and 1/3 as = 1/3. A number that is not exactly a fraction, such as π or √2, is shown as the closest fraction with a denominator of at most 1000, after ≈ rather than =, so π appears as ≈ 3 16/113. The value you keep calculating with is always the full decimal.
What is the factorial of 2.5, or of a negative number?
This calculator refuses both and says so, rather than showing a number. Factorial here counts arrangements, so it takes whole numbers from 0 to 170; 171! is too large to hold, and the calculator tells you that instead of showing infinity. It does not use the gamma function, which would give 2.5! a value.
How do I take a cube root, or any other root?
Press ⁿ√x and type the number, a comma, then the root: nthroot(27, 3) is 3. A negative number has a real cube root, so nthroot(-8, 3) is -2, but an even root of a negative number is not a real number, so nthroot(-16, 4) shows an error.
How does round treat halves?
Halves round away from zero, as on most calculators and spreadsheets: round(2.5) is 3 and round(-2.5) is -3. floor rounds down and ceil rounds up, so floor(-2.1) is -3 and ceil(-2.7) is -2.
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.
Related Tools
Updated October 12, 2026