Scientific Calculator
Use a free online scientific calculator for arithmetic, parentheses, powers, roots, factorials, percentages, logarithms, exponentials, direct and inverse trigonometry, hyperbolic functions, rounding functions, constants, and scientific notation. Enter expressions with the keyboard or keypad, switch between degrees and radians, use implicit multiplication, and recall the latest successful result with Ans. Calculations run locally in the browser without eval().
How to Use the Scientific Calculator
Type a complete mathematical expression or build one with the keypad. Press Enter or the equals key to calculate it.
Use parentheses whenever the intended grouping may be unclear. Select DEG or RAD before evaluating an angle-dependent expression.
The 2nd control changes the trigonometric keys to inverse functions and exposes additional logarithm, exponential, root, and power controls.
Ans inserts the latest successful numeric result from the current page session.
Supported Scientific Functions
The keypad covers the most common arithmetic, trigonometric, logarithmic, exponential, power, root, factorial, constant, and percentage operations.
Additional functions can be entered directly, including hyperbolic functions, absolute value, floor, ceiling, decimal rounding, custom roots and logarithm bases, minimum, and maximum.
Function names require parentheses. Write sin(30), sqrt(81), log(8,2), or round(1/3,4), rather than leaving the argument ungrouped.
Scientific calculator function reference
Swipe horizontally to view the full table.
Operator Precedence and Grouping
The parser follows explicit precedence rather than reading strictly from left to right.
Powers associate from right to left, so 2^3^2 means 2^(3^2). Unary minus is applied after a power, so -2^2 is -4 while (-2)^2 is 4.
When in doubt, add parentheses. They make the intended structure visible and reduce avoidable entry errors.
Expression precedence from highest to lowest
Swipe horizontally to view the full table.
Implicit Multiplication
The calculator recognises multiplication before a constant, function, or opening parenthesis. Examples include 2pi, 2sin(30), 3(4+5), and (2+1)(5-2).
Explicit multiplication remains the clearest option in a long expression. Write 2sin(30) whenever the compact notation could be misread.
A function still needs parentheses around its arguments, and adjacent digits are not treated as separate factors.
Degrees, Radians, and Trigonometry
DEG treats direct trigonometric inputs as degrees and returns inverse-trigonometric results in degrees. RAD uses radians for both.
For example, sin(30) is 0.5 in DEG mode, while sin(pi/6) is 0.5 in RAD mode.
Changing the mode recalculates the current expression when one is present. It does not rewrite the numbers or insert an angle unit into the expression.
Logarithms, Exponentials, Powers, and Roots
ln(x) is the natural logarithm. log(x) and log10(x) use base 10, while log2(x) uses base 2. A custom base can be supplied as log(value,base).
Use ^ or pow(x,y) for powers, sqrt(x) for square roots, cbrt(x) for cube roots, and root(x,n) for an nth root.
The calculator reports a clear domain error when an operation has no supported real-number result, rather than displaying NaN or silently switching to complex numbers.
How the Percent Operator Works
Percent is a literal postfix operator: x% means x divided by 100. Therefore 15% equals 0.15 and 200*15% equals 30.
The expression 200+15% equals 200.15 because the calculator does not guess that the user intends a percentage increase.
Write 200*(1+15%) for a 15% increase, 200*(1-15%) for a 15% decrease, or use the dedicated Percentage Calculator for guided percentage problems.
Scientific Notation and Result Formatting
Scientific notation can be typed with e, such as 6.022e23 or 1.5e-8. The e inside a number means a power of 10, while the separate constant e represents Euler’s number.
Ordinary results are formatted to useful significant digits. Very large results and non-zero values smaller than 0.000000001 are displayed in scientific notation.
Formatting does not turn the calculator into arbitrary-precision software. The stored calculation still uses finite double-precision arithmetic.
Domain Checks and Useful Error Messages
Real-number operations have mathematical input restrictions. The calculator checks those restrictions before returning a result.
It rejects division by zero, logarithms of non-positive values, square roots of negative values, inverse sine or cosine outside -1 to 1, invalid factorials, and other unsupported inputs.
Correcting the highlighted expression is safer than treating an undefined result as zero.
Real-number domain rules
Swipe horizontally to view the full table.
Keyboard Controls and Ans
Enter evaluates the expression and Escape clears the expression and display. Standard editing keys continue to work inside the expression field.
Ans represents the exact numeric value from the latest successful calculation, not merely the rounded text shown on screen.
Clearing the display does not create a permanent history. Reloading or leaving the page removes the session result.
Keyboard and expression controls
Swipe horizontally to view the full table.
Precision, Privacy, and Scope
The evaluator tokenizes and parses an allowlisted mathematical grammar instead of passing the expression to eval().
Calculations run locally in the browser and are not uploaded, placed in the page URL, or permanently stored.
This tool is designed for practical real-number calculations. Use specialist software when a task requires exact symbolic results, complex numbers, matrices, graphing, units, uncertainty propagation, or arbitrary precision.
Scientific calculator scope
Swipe horizontally to view the full table.
Scientific Calculator Rules and Formulas
The calculator evaluates real-number expressions using the selected trigonometric angle mode and the precedence rules documented above.
Formula variables
- Angle supplied to or returned by a trigonometric function
- Real-number input
- Positive logarithm base other than 1
- Integer exponent, root degree, factorial input, or base-10 exponent according to context
- Scientific-notation coefficient
Examples
Trigonometric identity in degree mode
1Input
DEG mode: sin(30)^2 + cos(30)^2
Show result
Result
1
Right-associative powers
2Input
2^3^2
Show result
Result
512
Unary minus and parentheses
3Input
-2^2 and (-2)^2
Show result
Result
-2^2 is -4; (-2)^2 is 4
Custom logarithm base
4Input
log(1024,2)
Show result
Result
10
Negative odd root
5Input
root(-8,3)
Show result
Result
-2
Percentage increase written explicitly
6Input
200*(1+15%)
Show result
Result
230
Scientific notation
7Input
6.022e23 / 1e6
Show result
Result
6.022e17
Decimal rounding and multiple arguments
8Input
round(1/3,4) + max(2,5,1)
Show result
Result
5.3333
Frequently Asked Questions
What can this scientific calculator calculate?
It evaluates finite real-number expressions containing arithmetic, parentheses, powers, roots, percentages, factorials, logarithms, exponentials, trigonometric and hyperbolic functions, rounding functions, constants, scientific notation, and Ans.
Does the scientific calculator use eval()?
No. It tokenizes the expression, parses the supported grammar, and evaluates only an allowlisted set of operators, constants, and functions.
What is the difference between DEG and RAD?
DEG interprets direct trigonometric inputs and inverse outputs in degrees. RAD uses radians. A full turn is 360 degrees or 2π radians.
What is the difference between log and ln?
ln uses base e. log(x) and log10(x) use base 10. log2(x) uses base 2, and log(x,b) uses a custom base b.
Does it support scientific notation?
Yes. Enter values such as 1e6, 6.022e23, or 1.5e-8.
Does it support implicit multiplication?
Yes. Supported examples include 2pi, 2sin(30), 3(4+5), and (2+1)(5-2). Use an explicit multiplication symbol when the notation could be ambiguous.
Why does 2^3^2 equal 512?
Powers associate from right to left, so the expression means 2^(3^2).
Why does -2^2 equal -4?
The power is evaluated before the leading negative sign. Enter (-2)^2 when the negative number should be the base.
Why does 200 + 10% equal 200.1?
The percent operator divides the preceding value by 100, so 10% is 0.1. Write 200*(1+10%) for a 10% increase.
What does Ans store?
Ans stores the numeric value of the latest successful calculation in the current page session.
What are the keyboard shortcuts?
Press Enter to calculate and Escape to clear. Standard cursor, selection, Backspace, and Delete controls work in the expression field.
Can it calculate complex numbers?
No. The calculator reports an error when an operation has no supported real-number result.
Can it solve equations or simplify algebra?
No. It evaluates numeric expressions but does not solve equations, manipulate variables, or return symbolic forms.
Why can results contain tiny decimal differences?
Browser calculations use finite binary floating-point arithmetic. Many decimal, logarithmic, and trigonometric values cannot be represented exactly.
Why is factorial limited to 170?
171! is larger than the greatest finite value supported by the calculator’s numeric type.
Are expressions saved or uploaded?
No. Expressions and results are processed locally and are not uploaded, added to the URL, or permanently stored by this calculator.
References
You might also like
Percentage Calculator
Calculate percentages, percent change, increase, decrease, difference, discount, markup, markdown, tax, tips, and equal bill splits.
Pythagorean Theorem Calculator
Find a missing leg or hypotenuse, verify a right triangle, and see the complete calculation.
Circle Calculator
Calculate a circle's area, circumference, radius, and diameter from any one known measurement.
Christmas Countdown
See exactly how long is left until Christmas 2026 with a live countdown showing days, hours, minutes, and seconds in your local time.