Scientific Calculator

A fast, keyboard-friendly scientific calculator with trigonometry, logarithms, powers, factorials and a running history — all in your browser.

Free, no sign-upRuns in your browserUpdated November 2026
DEG
—

Keyboard: type digits and + - * / ^ ( ) ! %, press Enter for =, Backspace to delete and Esc to clear. Function names such as sin, sqrt, pi also work.

History
Calculations you finish with = or Enter appear here. Click one to reuse its result.
Quick reference
sin⁻¹(x)angle whose sine is x (−1 ≤ x ≤ 1)
log(x)base-10 logarithm, x > 0
ln(x)natural logarithm (base e), x > 0
n!factorial of a whole number 0–170
x%x ÷ 100
Ansresult of the last calculation

How to use the Scientific Calculator

  1. Choose Deg or Rad at the top of the display — this controls how sin, cos, tan and their inverses read and return angles.
  2. Build your expression with the keypad or your keyboard. Functions such as sin(, log( and √( open a bracket for you; close it with ).
  3. Watch the live preview under the expression, then press = or Enter to save the result to your history.
  4. Press an operator straight after a result to keep calculating with it (it becomes Ans), or click any history line to reuse that number.

How this scientific calculator works

This calculator reads your expression the way a maths textbook would, using the standard order of operations. It does not just evaluate left to right like a basic four-function calculator, so 2 + 3 × 4 gives 14, not 20. Expressions are parsed by a small, purpose-built parser in your browser — nothing is sent to a server.

Order: ( ) brackets → functions (sin, log, √ …) → n! and % → ^ powers → unary minus → × ÷ → + −
  • Powers are right-associative: 2^3^2 means 2^(3^2) = 2^9 = 512, not 8^2 = 64.
  • Negation applies after powers: −3^2 = −9. Write (−3)^2 to get 9.
  • Implied multiplication is supported: 2π, 3(4+1) and 2sin(30) are read as multiplication.
  • Percent divides by 100, so 200 × 15% = 30.

Worked examples

ExpressionModeResultWhy
2×(3+4)^2÷7—14brackets 7, power 49, then 2 × 49 ÷ 7
sin(30)Deg0.5sine of a 30° angle
sin(30)Rad−0.98803162409330 radians ≈ 1,719°
cos⁻¹(0.5)Deg60the angle whose cosine is 0.5
log(1000)—310³ = 1000
ln(e^2)—2ln and eˣ are inverses
5!—1205 × 4 × 3 × 2 × 1
0.1+0.2—0.3binary rounding noise removed

Degrees vs radians

Angles can be measured in degrees (a full turn is 360°) or radians (a full turn is 2π ≈ 6.2832). Getting the mode wrong is the most common reason a trig answer looks strange: sin(30) is exactly 0.5 in degree mode but about −0.988 in radian mode. Use degrees for everyday geometry, surveying and navigation, and radians for calculus, physics and most programming languages, where functions like Math.sin always expect radians.

radians = degrees × π ÷ 180 degrees = radians × 180 ÷ π

In degree mode the calculator returns exact zeros where they belong — sin(180) is 0 and cos(90) is 0 — instead of tiny values such as 6.1×10^−17, and tan(90) correctly shows Error because the tangent is undefined there.

Function reference

  • sin, cos, tan: trigonometric ratios of an angle.
  • sin⁻¹, cos⁻¹, tan⁻¹ (arcsin, arccos, arctan): return the angle. sin⁻¹ and cos⁻¹ only accept values from −1 to 1; sin⁻¹ returns −90° to 90°, cos⁻¹ 0° to 180°.
  • log: common (base-10) logarithm. ln: natural logarithm, base e ≈ 2.718281828. Both need a positive input. For any other base use the change-of-base rule: logb(x) = ln(x) ÷ ln(b), e.g. ln(8)÷ln(2) = 3.
  • xʸ, x², √: powers and square roots. For other roots raise to a fractional power: the cube root of 27 is 27^(1÷3) = 3.
  • n!: factorial, defined for whole numbers 0 to 170 (171! is too large for standard double-precision numbers).
  • π and e: the mathematical constants, to about 15 significant digits.

Precision and why 0.1 + 0.2 shows 0.3

Computers store numbers in binary floating point (IEEE 754 double precision), which cannot represent most decimal fractions exactly. Done naively, 0.1 + 0.2 gives 0.30000000000000004. This calculator rounds every final result to 12 significant digits, which removes that noise while keeping more precision than most handheld calculators display. Very large or very small results are shown in scientific notation, such as 1.5×10^21.

Tips and common mistakes

  • Close every bracket you open. sin(30 is incomplete and shows Error when you press =.
  • Use brackets for fractions in exponents: 8^(1÷3) = 2, but 8^1÷3 = 2.667.
  • Check the Deg/Rad badge before any trig calculation.
  • For averages or spread of a list of numbers, the standard deviation calculator is faster; for percentage questions use the percentage calculator.

Frequently asked questions

How do I switch between degrees and radians?
Use the Deg / Rad toggle at the top of the display. The badge on the right always shows the active mode, and the setting is remembered on this device. History entries made in radian mode are tagged RAD.
Why does the calculator show Error?
Error appears when the expression is incomplete (for example an unclosed bracket or a trailing operator) or the maths is undefined: division by zero, the square root or logarithm of a negative number, sin⁻¹ of a value above 1, tan(90°), or the factorial of a negative or non-whole number.
Can I type with my keyboard?
Yes. Type digits and + - * / ^ ( ) ! % directly, press Enter for equals, Backspace to delete and Esc to clear. You can also type function names such as sin, cos, log, ln, sqrt and pi.
What is the difference between log and ln?
log is the base-10 logarithm, so log(100) = 2. ln is the natural logarithm with base e ≈ 2.71828, so ln(e) = 1. They are related by ln(x) = log(x) × ln(10).
How do I calculate a cube root or nth root?
Raise the number to the power 1/n. The cube root of 64 is 64^(1÷3) = 4, and the fourth root of 81 is 81^(1÷4) = 3.
Is my calculation history stored anywhere?
Only in your own browser’s local storage, so it is still there when you come back. It is never uploaded. Use “Clear history” to delete it.

Last reviewed November 2026. Results are estimates for information only — see our disclaimer.