Everyday math

Advanced calculator

Evaluate scientific math expressions with functions, constants, and powers.

Free to use◌No account needed
Your inputsUpdates as you type

⌁ Calculations run in your browser. Calculator input values aren't included in our usage events.

Your result
—

Enter your numbers to see the answer.

Advanced calculator guide

What does this calculator help you figure out?

The advanced calculator evaluates a typed expression rather than two numbers at a time. It supports parentheses, the four arithmetic operators, powers with ^, factorials with !, a postfix % that divides by 100, the constants pi and e, and the functions sin, cos, tan, asin, acos, atan, sqrt, log (base 10), ln (natural), abs, exp, floor, ceil, and round. A degrees/radians toggle sets how the trigonometric functions read their argument. The parser follows standard precedence: parentheses and function calls first, then factorial and %, then powers, then unary minus, then multiplication and division left to right, then addition and subtraction left to right. Two behaviours are worth knowing: ^ is right-associative, so 2^3^2 is 2^9 = 512, and unary minus binds looser than ^, so -2^2 is −4. Expressions are parsed by a small local evaluator, not by JavaScript, and nothing leaves your browser.

How is the result calculated?

Result = value of the expression after applying precedence: ( ) and f(x) → ! and % → ^ (right to left) → unary − → × ÷ (left to right) → + − (left to right).

Worked example

Worked example with the default expression sqrt(144) + 2^3. The function call is evaluated first: sqrt(144) = 12. The power comes next: 2^3 = 8. Finally the addition: 12 + 8 = 20, and the calculator displays 20. A second example shows why precedence matters: 3 + 4 * 2 is 3 + 8 = 11, not 14, and (3 + 4) * 2 = 14 only because the parentheses force the sum first. With the angle mode on degrees, sin(30) = 0.5; on radians it is about −0.99.

Units and conversion notes

Numbers are unitless; decimals use a period and scientific notation such as 1.5e3 is accepted. Trigonometric arguments are radians unless you switch the toggle to degrees. log(x) is base 10 and ln(x) is base e. Percent is a postfix operator: 50% evaluates to 0.5, so 200 * 50% = 100. Results display with up to two decimals by default; use the precision setting for more.

What does the result mean?

The result follows directly from the numbers you entered, so its accuracy is the accuracy of those inputs. The most common source of a surprising answer is a mismatch between the question you meant to ask and the one the calculator answered, so re-read the field labels if the figure looks wrong. The formula is shown above so you can check the arithmetic yourself. On this page the figure rests entirely on expression, so start there if the advanced calculator returns something you did not expect.

Common mistakes to avoid

Good to know: implicit multiplication is not supported, so 2pi and 2(3+4) fail, while 2*pi and 2*(3+4) work. Factorial accepts whole numbers from 0 to 170 only. Every function needs parentheses: sqrt 16 is rejected, sqrt(16) is not. Values like 0.1 + 0.2 are computed in binary floating point and equal 0.30000000000000004 internally; the display rounds this to 0.3, which is the intended answer, but chains of many such steps can drift in the last digit.

Results are planning estimates. Check the units, product coverage, carrier rules, or local rates before making a purchase or financial decision.

Sources

Constants and sources used

How it works

The method behind the number.

Evaluate scientific math expressions with functions, constants, and powers. This tool explains the calculation so you can adjust the assumptions to match your situation.

Result = value of the expression after applying precedence: ( ) and f(x) → ! and % → ^ (right to left) → unary − → × ÷ (left to right) → + − (left to right).

Worked example

Reproduce the current result.

With Expression = sqrt(144) + 2^3 → 20 (scientific expression result). Change an input above and this example updates with your numbers.

Expression
sqrt(144) + 2^3

Common questions

Frequently asked questions

What is sqrt(144) + 2^3?

The result is 20: the square root of 144 is 12, 2 raised to the power 3 is 8, and 12 + 8 = 20. Powers and function calls are always evaluated before addition, so no parentheses are needed here.

Is 2^3^2 equal to 64 or 512 in a scientific calculator?

This calculator returns 512 because ^ groups from the right: 3^2 = 9 first, then 2^9 = 512. Some calculators and spreadsheets group from the left and give (2^3)^2 = 64. Add parentheses whenever you stack powers.

Why does -2^2 give -4 instead of 4?

Exponentiation is applied before the leading minus, so -2^2 is read as −(2^2) = −4. That matches most textbooks and scientific calculators. To square negative two, write (-2)^2, which gives 4.

Why does 0.1 + 0.2 not equal exactly 0.3 on a calculator?

Decimal fractions like 0.1 cannot be stored exactly in binary floating point, so the machine result is 0.30000000000000004. The display rounds to 0.3 at the default two-decimal precision; the tiny error only becomes visible when you raise the precision or repeat the operation thousands of times.

Does the scientific calculator use degrees or radians?

Radians by default, switchable to degrees with the angle toggle. sin(30) equals 0.5 in degree mode and about −0.99 in radian mode, so check the setting before trusting a trigonometry result.

How do I type a percentage in the advanced calculator?

Put % after a number to divide it by 100: 50% is 0.5, and 80 * 15% = 12. To add 15% to 80, write 80 * (1 + 15%), which gives 92.

Result copied