Scientific Calculator
A full scientific calculator with sin, cos, tan, log, ln, square root, and power functions.
0
Extended
History, Constants & Base Converter
Calculation history, mathematical constants reference, decimal/binary/hex/octal converter
Last 10 calculations
No calculations yet. Press = to save to history.
Professional
Matrix Operations & Equation Solver
2×2 matrix add/subtract/multiply, 2-variable linear equation solver, unit circle reference
Enter matrices (rows separated by ;, values by comma). E.g. 1,2;3,4
Result Matrix
[ 6.00000 , 8.00000 ]
[ 10.0000 , 12.0000 ]
How to Use This Calculator
Click the number and function buttons to build your expression. Use sin, cos, tan for trigonometry (input in degrees requires conversion — multiply degrees × π/180 first). Use log for base-10 logarithm, ln for natural logarithm, √ for square root, and xʸ to raise a number to a power. Press = to calculate.
Available Functions
sin(x), cos(x), tan(x)Trigonometric (radians)
log(x)Base-10 logarithm
ln(x)Natural logarithm (base e)
√(x)Square root
x²Square (x^2)
xʸPower (x^y)
πPi = 3.14159265...
FAQ
JavaScript's built-in Math.sin/cos/tan functions use radians, as do most programming languages and scientific calculators. To convert degrees to radians, multiply by π/180. For example: sin(30°) = sin(30 × π/180) = sin(0.5236) = 0.5. You can type: sin(30×π/180) in the calculator display.
log (or log₁₀) is the common logarithm — it answers "10 to the power of what equals x?" So log(1000) = 3 because 10³ = 1000. ln is the natural logarithm using Euler's number e ≈ 2.718. ln(e) = 1. Natural logs appear in continuous compound interest, population growth, and many physics equations.
Yes. The calculator sanitises all input before evaluation, only allowing numeric characters, standard operators, and known mathematical functions. It uses a strict function constructor rather than direct eval(), preventing code injection. No input data is sent to any server — all computation happens in your browser.