Scientific Calculator - sin, cos, log, sqrt & More
Math Calculators
Free online scientific calculator for trig, logarithms, exponents, factorials, π, e, and calculation history. Switch between degrees and radians.
How to use this tool
- Select DEG or RAD mode for trigonometric functions.
- Click keypad buttons or type directly into the expression field.
- Press = or Enter to calculate.
- Click any history entry to reuse a previous result.
Scientific calculator functions
This calculator evaluates full mathematical expressions, not just one operation at a time.
Type sin(45) + sqrt(16) / 2 and press Enter to get the result instantly.
Supported functions
- Trigonometry: sin, cos, tan (inverse: asin, acos, atan)
- Logarithms: log (base 10), ln (natural logarithm)
- Exponential: exp(x) = eˣ
- Roots & powers: sqrt(x), x^y
- Rounding: ceil, floor, round, abs
- Factorial: factorial(n) for non-negative integers up to 170
- Modulo:
a % breturns the remainder after dividing a by b
The % key means modulo (remainder), not a percentage. For example, 10 % 3
returns 1 because 10 divided by 3 leaves a remainder of 1.
Constants
Use pi (or π) for π ≈ 3.14159 and e for Euler's number ≈
2.71828. Implicit multiplication works: 2pi = 2π.
Expression tips
- Use
^for exponents:2^8= 256 - Chain functions:
sqrt(sin(30)^2 + cos(30)^2)= 1 - Implicit multiplication:
2(3+4)= 14 - Unary minus:
-sin(45)negates the result
Degrees vs radians
Toggle between DEG and RAD to control how angles are interpreted.
In DEG mode, sin(90) = 1. In RAD mode, sin(pi/2) = 1.
Order of operations
The expression parser follows standard PEMDAS/BODMAS precedence: Parentheses, Exponents, Multiplication and Division (left to right), Addition and Subtraction (left to right). Important edge cases to know:
- Implicit multiplication vs. division:
6 / 2(3)is evaluated as(6 / 2) × 3 = 9, not6 / (2 × 3) = 1. Use parentheses when the intent is ambiguous. - Unary minus with exponents:
-2^2is evaluated as-(2^2) = -4because exponentiation binds tighter than unary negation. To get(-2)² = 4, write(-2)^2.
Precision and floating-point
JavaScript (and this calculator) uses 64-bit IEEE 754 double-precision floating-point
arithmetic, which provides about 15–17 significant decimal digits of precision. This leads to
a well-known quirk: 0.1 + 0.2 evaluates to 0.30000000000000004 rather than exactly 0.3. The calculator rounds
results to a sensible number of significant digits for display, so most everyday calculations
show clean results - but extremely precise comparisons (e.g., testing whether two results are
exactly equal) may reveal floating-point artifacts.
Frequently asked questions
Does this calculator support degrees and radians?
Yes. Use the DEG/RAD toggle at the top. In DEG mode, sin(90) = 1. In RAD mode, sin(π/2) = 1.
How do I enter expressions with the keyboard?
Type directly into the expression input field. Use standard notation: 2^3 for 2³, sqrt(4) for √4, sin(45) for sin 45°. Press Enter to evaluate.
What functions are supported?
sin, cos, tan, asin, acos, atan, log (base 10), ln (natural log), exp, sqrt, abs, ceil, floor, round, factorial. Constants π (pi) and e are also available.
Can I use implicit multiplication?
Yes. Expressions like 2(3+4) and 2pi are interpreted as 2 × (3+4) and 2 × π respectively.
What does the % key mean?
It means modulo (remainder), not percent. For example, 10 % 3 = 1 because dividing 10 by 3 leaves a remainder of 1.
Related tools
- Function GrapherPlot the expression after evaluating it to see zeros, extrema, and overall shape.
- Log CalculatorShow dedicated logarithm and exponent steps when a keypad result is not enough.
- Trig CalculatorSolve direct and inverse trigonometric values with a focused angle workflow.
- Scientific Notation ConverterReformat a very large or small result as scientific, engineering, or E-notation.