Scientific Calculator
Full scientific calculator with trigonometric functions (sin, cos, tan), logarithms, exponents, factorials, and constants. Supports degree and radian mode.
History will appear here…
How to use the scientific calculator
Tap the buttons or type directly in the input field. Hit = or press Enter to evaluate. Use Deg/Rad to switch angle mode for trig functions. 'Ans' recalls your last result so you can chain calculations. Use AC to reset the input and Clear to wipe the history.
Formula & explanation
Expressions are parsed into a safe whitelist of Math.* operations. Supported: +, −, ×, ÷, ^ (power), % (modulo), n! (factorial), sqrt, cbrt, log (log₁₀), ln (natural log), exp, abs, floor, ceil, round, pow, and trig functions sin/cos/tan/asin/acos/atan. Constants: π and e.
Examples
6×3 = 18 · sin(30) in Deg mode = 0.5 · log(1000) = 3 · 2^10 = 1024 · 5! = 120 · sqrt(2) ≈ 1.41421356237 · Ans+1 adds 1 to the previous result.
Frequently asked questions
- What does the Ans button do?
- Inserts the result of the last calculation into the input. Useful for chaining — e.g. calculate 5^2, then press Ans+10 to get 35.
- What is the difference between Deg and Rad?
- Deg mode treats trig inputs as degrees — sin(30) = 0.5. Rad mode treats them as radians — sin(π/6) = 0.5. Switch before entering your expression.
- What does AC do vs the ⌫ button?
- AC clears the entire input field. ⌫ deletes one character at a time, like a backspace key.
- How do I calculate a power like 2 to the power of 8?
- Use the xʸ button or type ^ directly — e.g. 2^8 = 256.
- How do I calculate a factorial?
- Type the number followed by the n! button — e.g. 5! = 120. Factorials are supported up to 170.
- What is the difference between log and ln?
- log computes the base-10 logarithm (log₁₀). ln computes the natural logarithm (base e). Example: log(1000) = 3, ln(e) = 1.
Related math tools
- Average CalculatorCalculate mean, median, mode, range, sum, min, and max for any list of numbers. Paste in grades, scores, or measurements — results update instantly.
- Ratio CalculatorSimplify ratios to lowest terms, convert a ratio to a decimal, scale to any value, and compare two ratios. For recipes, map scales, and aspect ratios.
- Root CalculatorCalculate square roots, cube roots, and any nth root with high precision. Handles perfect squares and irrational results — shows the decimal approximation and the radical form.
- Permutation & Combination CalculatorCalculate nPr (permutations) and nCr (combinations) with a step-by-step formula breakdown. Enter n and r to see the count, formula expansion, and intermediate values.
- Exponent CalculatorRaise any base to any power — including negative bases, decimal exponents, and fractional powers. Shows the full numeric result with high precision for scientific and engineering work.
- Logarithm CalculatorCalculate log base 10, natural log (ln), log base 2, and log to any custom base. Shows step-by-step working — useful for chemistry, information theory, and general math.