Skip to content

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().

Result: 0

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

Scientific calculator function reference
Function groupSupported syntaxPurposeHow to enter it
Arithmetic and grouping+, −, *, /, ( )Addition, subtraction, multiplication, division, and grouped expressionsKeypad or typed expression
Powers and roots^, sqrt(x), cbrt(x), root(x,n), pow(x,y)Powers, square roots, cube roots, nth roots, and explicit power functionsCore controls on keypad; root and pow can be typed
Trigonometrysin, cos, tan, asin, acos, atanDirect and inverse trigonometric functions using the selected DEG or RAD modeKeypad using the 2nd control or typed expression
Hyperbolic functionssinh, cosh, tanhHyperbolic sine, cosine, and tangentTyped expression
Logarithms and exponentialsln, log, log10, log2, expNatural, common, base-2, custom-base logarithms, and e raised to a powerCore controls on keypad; additional forms can be typed
Rounding and comparisonsabs, floor, ceil, round, min, maxAbsolute value, integer rounding, decimal rounding, minimum, and maximumTyped expression
Postfix operators!, %Factorial and literal division by 100Keypad or typed expression
Constants and recallpi, e, Ansπ, Euler’s number, and the latest successful result from the current page sessionKeypad or typed expression

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

Expression precedence from highest to lowest
OrderOperationExample
1Parentheses and function arguments(2+3)*4 = 20
2Postfix factorial and percent5! = 120; 15% = 0.15
3Powers, evaluated right to left2^3^2 = 2^(3^2) = 512
4Unary positive and negative signs-2^2 = -(2^2) = -4
5Multiplication, division, and implicit multiplication2pi and 3(4+1) are multiplication
6Addition and subtraction2+3*4 = 14

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

Real-number domain rules
OperationSupported inputInvalid example
DivisionDivisor must not be zero8/0
Square rootReal input must be zero or positivesqrt(-1)
Nth rootDegree cannot be zero; a negative radicand requires an odd integer degreeroot(-16,2)
LogarithmValue must be positive; a custom base must be positive and cannot equal 1log(0) or log(8,1)
Inverse sine and cosineInput must be from -1 through 1asin(2)
FactorialWhole number from 0 through 1704.5! or 171!
TangentAngle must not be a point where cosine is zerotan(90) in DEG mode
Decimal roundinground(x,d) accepts 0 through 12 decimal placesround(1.25,20)

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

Keyboard and expression controls
ActionControl
Calculate the current expressionEnter
Clear the expression and displayed resultEscape
Delete the selected text or previous characterBackspace, Delete, or the delete key
Insert functions and operatorsType directly or use the on-screen keypad
Reuse the previous successful resultAns

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

Scientific calculator scope
IncludedNot included
Finite real-number expression evaluationComplex-number arithmetic
Arithmetic, powers, roots, logarithms, trigonometry, and factorialsSymbolic algebra, equation solving, and simplification
Direct expression entry and an on-screen scientific keypadGraphing, tables, matrices, statistics datasets, and unit conversion
Latest successful answer through AnsPermanent calculation history or cloud synchronization
Readable decimal and scientific-notation outputArbitrary-precision or exact rational arithmetic

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
Degrees to radians
Radians to degrees
Logarithm with base b
Nth root
Factorial
Percent operator
Scientific notation

Examples

Trigonometric identity in degree mode

1

Input

DEG mode: sin(30)^2 + cos(30)^2

Show result

Result

1

Right-associative powers

2

Input

2^3^2

Show result

Result

512

Unary minus and parentheses

3

Input

-2^2 and (-2)^2

Show result

Result

-2^2 is -4; (-2)^2 is 4

Custom logarithm base

4

Input

log(1024,2)

Show result

Result

10

Negative odd root

5

Input

root(-8,3)

Show result

Result

-2

Percentage increase written explicitly

6

Input

200*(1+15%)

Show result

Result

230

Scientific notation

7

Input

6.022e23 / 1e6

Show result

Result

6.022e17

Decimal rounding and multiple arguments

8

Input

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.