Home › Calculators › Scientific Calculator
🔬

Scientific Calculator

Free online scientific calculator for trig, roots, logs and powers. Type any expression with sin, cos, sqrt or exponents and get an instant accurate result.

About this tool

Need sine, cosine, square roots, or logarithms without digging out a physical calculator? Our free online scientific calculator evaluates full expressions right in your browser - no download, no signup. It works in degrees or radians, with an on-screen keypad, history, and memory, and it handles powers, roots, factorials, and logarithms.

Type expressions naturally, like sin(30) + sqrt(16) * 2^3, and get an accurate result instantly. It is ideal for homework, engineering estimates, and quick checks - and every calculation happens on your device, so nothing you type is ever sent anywhere.

By Azhar Hussain · Last updated: 12 November 2026

How to use

Type your expression into the box using standard symbols: + - * / for basic math, ^ for powers, and % for remainder. For functions, write sin(), cos(), tan(), asin(), acos(), atan(), sqrt(), cbrt(), log() for base-10, log2(), ln() for the natural logarithm, exp(), and abs(). You can also tap the keypad - it inserts digits, operators, and functions at the cursor - and press Enter to calculate or Escape to clear the box.

Angles use DEGREES by default, because that is what school homework uses - sin(30) gives 0.5. Switch the Angle mode box to Radians for calculus, physics, and programming, where sin(30) means 30 radians. The mode also affects inverse trig: asin(0.5) gives 30 in degrees mode and about 0.5236 in radians mode.

Use pi and e as constants, Ans for your last answer, and ! for factorials (up to 170). Scientific notation works too: 1.5e-3 means 0.0015, and you can write 2(3+4) or 2pi without a * sign. Your last 20 calculations stay in the History list below the result - click one to run it again - and M+ / MR store a number in memory. If something cannot be evaluated, you get a specific error message explaining why, instead of a wrong answer.

The math behind it

The calculator reads your expression with a small parser that only allows digits, operators, parentheses, and the named math functions - no code you type is ever executed, and everything runs with the browser's built-in math library. Order of operations is brackets first, then functions and factorials, then powers (right-associative: 2^3^2 means 2^(3^2) = 512), then multiplication, division, and remainder, then addition and subtraction. So 2+3*4 = 14, and -2^2 = -4, because the power is worked out before the minus sign is applied.

Trigonometric functions convert angles using radians = degrees x pi / 180 when degrees mode is on. Results of 1,000,000,000,000,000 (10^15) or more, and results smaller than 0.000001 (10^-6), are shown in exponent form such as 1.5e+21; anything in between shows up to 6 decimal places. Factorials stop at 170, because 171! is larger than the biggest number JavaScript can store.

Function reference

Every function this calculator understands, with an example in degrees mode (the default). Results are shown as the calculator displays them, with trailing zeros trimmed.

FunctionWhat it doesExampleResult
sin( )Sine of an anglesin(30)0.5
cos( )Cosine of an anglecos(60)0.5
tan( )Tangent of an angletan(45)1
asin( )Inverse sine - the angle whose sine is xasin(0.5)30
acos( )Inverse cosineacos(0.5)60
atan( )Inverse tangentatan(1)45
sqrt( )Square rootsqrt(144)12
cbrt( )Cube root (works for negative numbers too)cbrt(27)3
log( )Base-10 logarithmlog(1000)3
log10( )Same as log( ) - base-10 logarithmlog10(100)2
log2( )Base-2 logarithmlog2(256)8
ln( )Natural logarithm (base e)ln(e)1
exp( )e raised to a powerexp(2)7.389056
abs( )Absolute value (distance from zero)abs(-7)7
! and fact( )Factorial - whole numbers from 0 to 1705!120
piThe constant pi, about 3.1415932*pi6.283185
eThe constant e, about 2.718282e^27.389056
AnsYour last result (empty until you calculate once)Ans*2Twice your last answer
^Power, right-associative2^101024
%Remainder (modulo), not percent17%52

In radians mode the trig examples give different values: sin(30) is about -0.988032 there, because 30 means 30 radians. Function names are not case-sensitive, so SIN(30) works the same as sin(30).

Worked examples

Each of these was run through the calculator in degrees mode. Try them yourself - type or tap the expression exactly as shown.

ExpressionResultWhy
sin(30) + sqrt(16) * 2^332.50.5 + 4 x 8
2(3+4)14Implicit multiplication: 2 x 7, no * needed
1e5 + 2.5e3102500100000 + 2500 in scientific notation
5! / (2! * 3!)10Combinations: 5 choose 2
2^-30.125A negative exponent means the reciprocal: 1 / 2^3
-2^2-4The power binds before the minus: -(2^2). Use (-2)^2 for 4

Standard trig values

The exact values students are expected to know, with the decimal the calculator shows in degrees mode. Use them to check your mode: if sin(30) does not give 0.5, you are in radians mode.

Anglesincostan
0°010
30°1/2 = 0.5√3/2 ≈ 0.8660251/√3 ≈ 0.577350
45°1/√2 ≈ 0.7071071/√2 ≈ 0.7071071
60°√3/2 ≈ 0.8660251/2 = 0.5√3 ≈ 1.732051
90°10Undefined

tan(90°) is undefined, because cos(90°) is 0 and division by zero has no answer. In degrees mode the calculator says so instead of showing a huge number.

Logarithm rules

Four identities that turn hard log problems into easy ones. Each check below was verified with the calculator (log means base 10 here).

RuleFormCheck
Productlog(a x b) = log(a) + log(b)log(100 x 10) = 2 + 1 = 3
Quotientlog(a / b) = log(a) - log(b)log(1000 / 10) = 3 - 1 = 2
Powerlog(a^b) = b x log(a)log(10^3) = 3 x 1 = 3
Change of baselog_b(x) = ln(x) / ln(b)ln(32) / ln(2) = 5, and log2(32) = 5

The change-of-base rule is how you get a logarithm in any base: for base 2, just use log2( ) directly.

Degrees or radians - which should you use?

Both measure angles; the right one depends on what you are doing. This calculator defaults to degrees, and the Angle mode box switches in one click.

SituationUse
School homework, geometry, trianglesDegrees
Engineering drawings and surveyingDegrees
Calculus (derivatives and integrals of trig functions)Radians
Physics (waves, rotations, angular motion)Radians
Programming (most languages measure trig in radians)Radians

To convert by hand: radians = degrees x pi / 180, and degrees = radians x 180 / pi. A full circle is 360 degrees, which is 2 x pi radians. If a trig answer looks wrong, check the mode first - it is the most common cause of "wrong" trig answers.

Order of operations and powers

The calculator follows the standard order, highest priority first:

1. Brackets   2. Functions and factorials   3. Powers (right-associative)   4. Multiplication, division, and remainder, including implicit multiplication   5. Addition and subtraction.

Three cases trip people up. First, powers chain to the right: 2^3^2 means 2^(3^2) = 512, not (2^3)^2 = 64. Second, a minus in front of a power applies after the power: -2^2 = -4, while (-2)^2 = 4. Third, implicit multiplication still respects powers: 2(3)^2 = 18, because the power applies to the 3 before the multiplication. When in doubt, add brackets - they always win.

Memory and multi-step calculations

Ans always holds your last result, and M+ / MR give you one memory slot. A worked example: type 3+4 and calculate to get 7, press M+ to store it, type 5+6 and calculate to get 11, then type MR*Ans and calculate to get 77. Chains like Ans*2 keep building on the previous answer, and MC clears the memory.

History keeps your last 20 calculations below the result - click any entry to run it again. History, memory, and Ans live only in the open page: refresh or close the tab and they reset, and nothing is ever sent anywhere.

Frequently asked questions

Are trig functions in degrees or radians?
Degrees by default. The Angle mode box above the Calculate button starts on Degrees, because that is what school homework uses - sin(30) gives 0.5. Switch it to Radians for calculus, physics, and programming, where angles are measured in radians and sin(30) means 30 radians (about -0.988032). The mode also affects inverse trig: asin(0.5) gives 30 in degrees mode and about 0.5236 in radians mode. If a trig answer looks wrong, check the mode first.
What is the difference between log and ln?
In this calculator, log() is the base-10 logarithm (log10), commonly used in science and engineering scales like decibels and pH. ln() is the natural logarithm with base e (about 2.718), used in calculus, growth models, and statistics. If your textbook just writes log without a base, in most school contexts it means base 10, which matches our log() function. log2() is the base-2 logarithm, used in computer science - log2(256) = 8.
Is my expression data sent anywhere?
No. Everything runs locally in your browser using JavaScript - your expressions never leave your device. History and memory live only in the page's own memory while the tab is open; close the tab and they are gone, and nothing is uploaded, saved to disk, or tracked. You can even disconnect from the internet after the page loads and the calculator will keep working. That also means it is fast, with results appearing the moment you press the button.
How do I switch between degrees and radians?
Use the Angle mode box above the Calculate button, or tap the DEG/RAD key on the keypad. Degrees is the default: sin(30) = 0.5 is the quick check that you are in degrees mode. The mode applies to sin, cos, and tan, and to their inverses asin, acos, and atan.
How do I calculate inverse trig (sin inverse, cos inverse, tan inverse)?
Type asin(), acos(), or atan(), or tap the sin inverse, cos inverse, and tan inverse keys on the keypad. They return the angle whose sine, cosine, or tangent is the value you give, in the current angle mode - asin(0.5) is 30 in degrees mode. asin and acos only accept values from -1 to 1; anything outside that range gives an error instead of a wrong answer.
What is the largest factorial this calculator can handle, and why?
170! - that is 7.257416e+306, a 307-digit number. 171! is larger than the biggest number JavaScript can store (about 1.798e+308), so the calculator refuses factorials above 170, and factorials of negative or non-whole numbers, with a clear error. Use the ! key or fact(): 5! = 120.
How do I type negative powers?
Type them exactly as written: 2^-3 gives 0.125, because a negative exponent means the reciprocal (1/2^3). Note that -2^2 gives -4, not 4 - the power is worked out before the minus sign, following the standard convention. To square negative two itself, use brackets: (-2)^2 = 4.
How do I use Ans and memory for multi-step calculations?
Ans always holds your last result - after calculating 3+4, typing Ans*2 gives 14. For longer chains, M+ adds the last result to memory, MR inserts the stored number into your expression, and MC clears it. Example: 3+4 (= 7), M+, then 5+6 (= 11), then MR*Ans = 77. Both live only in the open page and reset when you close the tab.
What does the % key do - percent or remainder?
Remainder (modulo), the way JavaScript defines it: 17%5 = 2, because 17 divided by 5 leaves a remainder of 2. It is not a percent key, so to add 10% to 50, type 50*1.1, which gives 55. The % key is for remainders and for "every nth" problems, like checking whether a number is even with n%2.

Related tools

💬 Comments

Have a question about this page, or an idea to make it better? Share it below — your feedback helps everyone who uses this site.