Scientific Calculator

A full-featured scientific calculator with trigonometry, logarithms, exponents, and advanced math functions. Works entirely in your browser.

 
0
Keyboard: 0-9, +, -, *, /, (, ), Enter, Backspace, Esc

How to Use This Tool

  1. Toggle DEG or RAD mode depending on whether your angle values are in degrees or radians.
  2. Enter a number using the digit buttons or your keyboard.
  3. Tap a function button (sin, cos, tan, log, ln, √, x², 1/x, |x|, n!) to apply it to the current value, or use x^y for a custom power.
  4. Use ( and ) to build a multi-step expression, then press = or Enter to evaluate it.
  5. Insert the constants π or e when you need them in an expression.
  6. Press AC or Esc to clear the display, or Backspace/← to remove the last character.
  7. Click any entry in the History panel to reload that expression and result.

Formula & How It Works

Trigonometric Functions

sin(θ), cos(θ), tan(θ)

Computed on the angle θ after converting degrees to radians (θ × π / 180) when in DEG mode; used directly in radians when in RAD mode.

Logarithms

log(x) = log₁₀(x), ln(x) = logₑ(x)

log gives the base-10 logarithm and ln gives the natural (base-e) logarithm of the entered value.

Powers and Roots

x^y, x², √x, 1/x

x^y raises the first entered number to the power of the second; x² squares the value; √x takes the square root; 1/x returns the reciprocal.

Factorial

n! = n × (n − 1) × (n − 2) × … × 1

Multiplies all positive integers up to n; only defined for non-negative integers up to 170 in this calculator.

Practical Examples & Common Use Cases

Example: sin(30) in DEG mode

Enter 30, switch to DEG mode, then press sin. 30° is converted to radians (30 × π / 180 ≈ 0.5236), and sin(0.5236) = 0.5.

Example: log(1000)

Enter 1000 and press log. Since 10³ = 1000, log₁₀(1000) = 3.

Example: 5! (factorial)

Enter 5 and press n!. 5! = 5 × 4 × 3 × 2 × 1 = 120.

Frequently Asked Questions

DEG (degrees) uses the 360-degree system where a full circle is 360°. RAD (radians) uses the radian system where a full circle is 2π. Most everyday calculations use degrees.

This calculator supports factorials up to 170! JavaScript numbers cannot accurately represent values larger than that.

Yes! Use number keys (0-9), operators (+, -, *, /), parentheses, Enter or = to evaluate, Backspace to delete, and Escape to clear.

Related Tools