🇺🇸 USC
Math & Conversion
🔬

Scientific Calculator

Trig, logs, powers, roots, factorial, pi & e - degrees or radians

DegreesScientific
 
0

🕑 History

Your last calculations will appear here.

Calculations run entirely in your browser using a safe expression parser (no eval). Trigonometric functions follow the degrees setting above. Results are rounded to about 12 significant figures.

Last updated June 2026

Method: Expressions are parsed with a safe shunting-yard algorithm and evaluated in reverse Polish notation - no JavaScript eval. Standard math precedence (PEMDAS) is enforced, and trigonometric functions respect the degrees/radians toggle.

Included: Basic arithmetic, parentheses, percent, sign change, sin/cos/tan, natural log (ln) and base-10 log, square root, x², arbitrary powers (xʸ), reciprocal (1/x), factorial (n!), and the constants pi and e, plus a reusable history of recent results.

Not included: Symbolic algebra, complex numbers, matrices, statistics, unit conversion, and graphing. For those, use a dedicated tool.

Disclaimer: This tool is for general educational use. Worked examples such as investment growth are illustrations only and are not financial, tax, or professional advice. Always verify important results independently.

Scientific calculator: a complete guide

A scientific calculator goes beyond the four basic operations to handle the math you meet in algebra, trigonometry, chemistry, physics, and statistics. This online scientific calculator works entirely in your browser: tap or type an expression like 2 * sin(30) + sqrt(16), and it applies the correct order of operations, evaluates trigonometric and logarithmic functions, and shows the answer instantly. In degree mode that example returns 5, because sin(30°) is 0.5, doubled is 1, and the square root of 16 is 4.

How the calculator evaluates an expression

Behind the display, your input is broken into tokens, reordered with the shunting-yard algorithm, and computed in reverse Polish notation. That sounds technical, but the practical effect is simple: the calculator respects the standard order of operations rather than reading strictly left to right. The precedence it follows is:

Parentheses → Exponents → Multiplication / Division → Addition / Subtraction

So 2 + 3 * 4 is 14 (the multiplication runs first), while (2 + 3) * 4 is 20. Functions such as sin, ln, and sqrt bind to whatever sits inside their parentheses, and the ^ operator handles powers. Crucially, the tool never uses JavaScript's eval, so the parser is both safe and predictable.

How to use it, step by step

  1. Pick degrees or radians. Tap the DEG/RAD button so trig functions interpret your angles correctly. It defaults to degrees.
  2. Enter numbers and operators. Use the keypad for digits, + − × ÷, the decimal point, and percent.
  3. Add functions. Tap sin, cos, tan, ln, log, or ; each inserts the function with an open parenthesis ready for its argument.
  4. Use powers and roots. The button squares the current value, raises to any power, and 1/x gives the reciprocal.
  5. Group with parentheses. Add ( and ) to force the order you intend - the safest way to avoid surprises.
  6. Press =. The result appears in large type, and the calculation drops into the History card. Tap any past line to reuse it.

Who it is for

  • Students in algebra, pre-calculus, trigonometry, and introductory calculus who need trig and log functions for homework or test prep.
  • Science learners working through chemistry (pH, equilibrium) and physics (vectors, waves) problems that mix exponents and trig.
  • Engineers and makers doing quick, on-the-fly calculations without opening a heavyweight program.
  • Test-takers who want to practice mental setup the way an exam calculator behaves, including the degrees/radians distinction.
  • Anyone who occasionally needs a power, a square root, or a logarithm and does not want to install an app.

Key functions and what they mean

  • sin, cos, tan: the core trigonometric ratios of an angle. Honor the DEG/RAD mode.
  • ln: natural logarithm, base e. ln(e) = 1.
  • log: common logarithm, base 10. log(1000) = 3.
  • √ (sqrt) and x²: square root and square - inverse operations of each other.
  • xʸ (^): raises a base to any exponent, including fractions for roots and negatives for reciprocal powers.
  • 1/x: reciprocal, equal to raising to the power −1.
  • n!: factorial, the product of all positive integers up to n.
  • π and e: the mathematical constants pi (≈3.14159) and Euler's number (≈2.71828).

Worked example 1: trigonometry in degrees

Suppose a ramp rises at a 30° angle over a horizontal run, and you want the vertical height for a 12-foot run. The height is 12 * tan(30). In degree mode, tan(30°) ≈ 0.5774, so the height is about 6.93 feet. Switch to radian mode by mistake and you would get tan(30 rad) ≈ −6.41, an obviously wrong answer - a reminder to check the DEG/RAD setting first.

Worked example 2: compound growth with a power

You invest a lump sum at 7% annual growth for 10 years. The growth factor is 1.07 ^ 10. Type 1.07, tap , type 10, and press =. The result is about 1.9672, meaning the balance nearly doubles. Multiply by your starting amount to get the future value - for $5,000 that is 5000 * 1.07 ^ 10$9,836. For repeated contributions or interest compounded monthly rather than annually, the dedicated Compound Interest Calculator handles the full schedule.

Worked example 3: a logarithm for sound levels

Decibels use base-10 logs. If a sound is 10,000 times more intense than the reference, its level is 10 * log(10000) decibels. Because log(10,000) = 4, the answer is 40 dB. The natural log appears just as often: continuous growth at rate r over time t multiplies a quantity by e ^ (r * t), and you invert it with ln.

Handy reference: perfect squares and common values

Recognizing these by sight speeds up estimation and lets you sanity-check the calculator:

n n² (square) √n (to 3 dp) n! (factorial)
241.4142
391.7326
4162.00024
5252.236120
6362.449720
8642.82840,320
101003.1623,628,800

Degrees and radians at common angles

Trig values for the standard angles are worth memorizing; the calculator will confirm them in the right mode:

Degrees Radians sin cos
001
30°π/60.50.866
45°π/40.7070.707
60°π/30.8660.5
90°π/210

Tips for accurate results

  • Set the angle mode first. The single most common error in trig is being in the wrong DEG/RAD mode.
  • Parenthesize generously. When you nest functions or mix operators, extra parentheses make your intent explicit and prevent precedence surprises.
  • Use fractional exponents for roots. A cube root is ^(1/3); the fifth root is ^(1/5).
  • Chain calculations. After pressing =, typing an operator continues from the last answer, so you can build up a long computation in steps.
  • Round only at the end. Keep full precision through intermediate steps and round once for the final answer to avoid compounding rounding error.

Common pitfalls explained

Most "wrong" answers trace back to a handful of misunderstandings. Knowing them helps you read the calculator's output critically rather than trusting it blindly. The degrees/radians trap is the biggest; division by zero and roots of negatives produce errors by design; and forgetting that multiplication outranks addition leads to silently incorrect numbers. The Common mistakes card below walks through each with an example.

Scientific vs. basic vs. graphing calculators

It helps to know where this tool sits. A basic calculator handles only addition, subtraction, multiplication, and division - fine for a tip or a grocery total, but it usually reads strictly left to right and lacks parentheses. A scientific calculator like this one adds the function library (trig, logarithms, exponents, roots, factorial), the constants pi and e, parentheses, and - critically - true order of operations, which makes it the right choice for school math and the sciences. A graphing calculator goes one step further, plotting functions, solving equations symbolically, and handling matrices or statistics on screen. If you only need to evaluate an expression rather than visualize or solve it symbolically, a scientific calculator is faster and far simpler.

For everyday questions the difference is practical: computing cos(60) * 12 or ln(50) is exactly what a scientific calculator is for, whereas "graph y = x² − 4" or "solve 2x + 3 = 11 for x" belongs to a graphing or algebra tool. This page focuses on fast, accurate evaluation. If you only need raw powers without the rest of the keypad, the focused Exponent Calculator is even quicker.

Working efficiently: history and chaining

Two small features save real time on multi-step problems. First, chaining: right after you press =, typing an operator keeps the previous answer as the starting value, so a sequence like 200 = then * 1.05 = then * 1.05 = compounds the result without retyping it. Typing a digit instead starts a brand-new calculation, so you are never locked into the old number. Second, the History card stores your recent results; tap any line to pull that whole expression back into the display, change one number, and re-evaluate. This is ideal for "what if" work - comparing 1.07 ^ 10 against 1.07 ^ 20, or trying the same trig setup at 30°, 45°, and 60° in turn.

If you frequently rework the same formula with different inputs, build it once with clear parentheses, evaluate it, then reopen it from History and edit only the value that changed. You get reproducible results and avoid the small transcription mistakes that creep in when you retype a long expression by hand.

Significant figures and rounding

The calculator keeps full double-precision internally and rounds the displayed answer to about 12 significant figures, which removes the tiny floating-point noise that otherwise turns a clean 0.3 into 0.30000000000000004. For schoolwork, report your answer to the number of significant figures your problem calls for - typically matching the least precise input. A measurement of 4.2 cm has two significant figures, so a result derived from it should usually be given to two as well, even though the calculator can show many more. Rounding at the very end, not at each step, keeps the final value as accurate as possible.

Trigonometry tips: the unit circle and identities

Most trig work on a scientific calculator gets easier once you anchor it to the unit circle - a circle of radius 1 where, for any angle, the x-coordinate of the point is the cosine and the y-coordinate is the sine. That single picture explains why sin and cos always sit between −1 and 1, why sin(0°) = 0 while cos(0°) = 1, and why the values swap as you rotate: cos(90°) = 0 and sin(90°) = 1. The tangent is simply sin divided by cos, which is why tan(90) blows up - cos(90°) is 0, so the division is undefined and the calculator reports an error rather than a number.

A handful of identities let you sanity-check or rework an answer without retyping it. The Pythagorean identity sin(x)² + cos(x)² always equals 1, so if you compute both and they do not add to 1 you have a mode or input error. The cofunction relationship means sin(x) = cos(90° − x), so sin(30°) and cos(60°) are the same 0.5 you can see in the table above. And because sine is an odd function while cosine is even, sin(−x) = −sin(x) but cos(−x) = cos(x); a negative angle flips the sign of a sine but not a cosine. To go the other direction - from a ratio back to an angle - you need the inverse functions (arcsin, arccos, arctan), which are the natural next step beyond the core sin/cos/tan keys on this keypad.

Logarithm and exponent rules worth knowing

Logs and exponents follow a small set of algebra rules that turn awkward calculations into easy keystrokes. The product rule says log(a * b) = log(a) + log(b), the quotient rule says log(a / b) = log(a) − log(b), and the power rule - the most useful one - says log(a^k) = k * log(a). That last rule is how scientists handle enormous numbers: instead of evaluating something astronomically large directly, they work with its logarithm and only exponentiate at the end.

The single most practical trick is change of base. This calculator offers natural log (ln) and base-10 log (log), but you can compute a logarithm in any base with the rule log_b(x) = ln(x) / ln(b). To find log base 2 of 32, for example, enter ln(32) / ln(2) and you get exactly 5, because 2⁵ = 32. The same pattern works for base 5, base 16, or any other base - divide the natural log of your number by the natural log of the base. Remember too that logs and exponents undo each other: ln reverses e^x and log reverses 10^x, which is why entering ln(e ^ 3) returns 3. Keeping these inverse pairs in mind makes it far easier to spot when a result is plausible.

Related math concepts

A scientific calculator is the gateway to several connected ideas. Logarithms and exponents are inverse operations - log undoes 10^x and ln undoes e^x. Trigonometric functions tie angles to ratios of triangle sides and underpin everything from navigation to signal processing. Factorials feed into permutations and combinations in probability. And powers and roots describe growth, decay, and scaling laws across finance and the sciences. If your task is more specialized, a focused tool is faster than building the formula by hand: try the Square Root Calculator for clean radical simplification, the Percentage Calculator for increases, decreases and "what percent of", the Fraction Calculator for exact rational arithmetic, the Average Calculator for means, or the Ratio Calculator for scaling and proportions. Students tracking grades can use the GPA Calculator, and anyone working with spread or variance can reach for the Standard Deviation Calculator.

⚠️ Common mistakes & edge cases

Wrong angle mode (degrees vs radians)

sin(30) is 0.5 in degree mode but about −0.988 in radian mode. Always set DEG or RAD to match how your angle is written before evaluating any trig function.

Ignoring the order of operations

Entering 2 + 3 * 4 gives 14, not 20, because multiplication runs before addition. If you mean the addition first, wrap it: (2 + 3) * 4.

Undefined operations

Dividing by zero, taking √ of a negative number, or computing a factorial of a fraction has no real-number answer. The calculator returns an error instead of a misleading value.

Unbalanced parentheses

An open function like sin( with no closing ) - or a stray ) - makes the expression incomplete. Count your brackets, or use the on-screen ( and ) buttons so each one has a partner.

Note: Results are rounded to about 12 significant figures, so a value that should be exactly 0 may display as a vanishingly small number in edge cases - treat such tiny outputs as zero.

❓ Frequently asked questions

How do I use a scientific calculator online?

Type or tap an expression such as 2 * sin(30) + sqrt(16). Use the function buttons for sin, cos, tan, ln, log and square root, the ^ button for powers, and parentheses to control the order of operations. Press = to evaluate. The display shows a live preview as you build the expression, and the History card stores your last results so you can reuse them.

What is the difference between degrees and radians?

Both measure angles. A full circle is 360 degrees or 2*pi radians, so 180 degrees equals pi radians. Trigonometric functions behave differently depending on the mode: sin(30) is 0.5 in degree mode but about -0.988 in radian mode. Use the DEG/RAD toggle at the top of the keypad to match how your angle is expressed before evaluating.

How does the order of operations work?

The calculator follows standard math precedence (PEMDAS): parentheses first, then exponents, then multiplication and division, then addition and subtraction. So 2 + 3 * 4 equals 14, not 20. When in doubt, add parentheses - for example (2 + 3) * 4 forces the addition first and gives 20.

What is the difference between ln and log?

ln is the natural logarithm, with base e (about 2.71828). log on this calculator is the common logarithm, with base 10. So log(1000) is 3 because 10^3 = 1000, while ln(e) is 1 because e^1 = e. To take a log in a different base b, use the change-of-base rule: log_b(x) = ln(x) / ln(b).

How do I calculate a power or a root?

For a power, enter the base, press the xʸ (^) button, then the exponent: 2 ^ 10 gives 1024. The x² button squares the current value. For a square root use the √ button (sqrt). For other roots, use a fractional exponent: a cube root is x ^ (1/3), and the nth root of x is x ^ (1/n).

What does the factorial (n!) button do?

Factorial multiplies an integer by every positive integer below it: 5! = 5 * 4 * 3 * 2 * 1 = 120. It is defined only for non-negative whole numbers, and by convention 0! = 1. Factorials grow extremely fast, so values above 170! exceed the range this calculator can represent and return infinity. Factorials are the building block of permutations and combinations, so for counting problems a dedicated probability tool may be quicker.

Why am I getting an error?

Errors usually mean the expression is incomplete or undefined - for example unbalanced parentheses, dividing by zero, taking the square root of a negative number, or a factorial of a non-integer. Check that every ( has a matching ), that functions like sin( are closed, and that no step asks for an impossible result.

Does this calculator use pi and e exactly?

It uses the full double-precision values built into JavaScript: pi is 3.141592653589793 and e is 2.718281828459045. Tap the π or e button to insert them. Final results are rounded to about 12 significant figures to remove tiny floating-point artifacts.

Is my data sent anywhere?

No. Every calculation runs locally in your browser with a safe expression parser - there is no server call and the tool deliberately does not use JavaScript's eval. Nothing you type leaves your device, and the history clears when you reload the page or press Clear history.

Can I use my keyboard or reuse past results?

You can tap any past calculation in the History card to load its expression back into the display and edit it. After pressing =, typing an operator continues from the previous answer (so you can chain calculations), while typing a digit starts a fresh entry.

💡 Good to know

Everything runs in your browser

There is no server round-trip and no eval: a safe parser evaluates each expression locally. Nothing you type is sent anywhere, and the page works the same offline once loaded.

The DEG/RAD toggle changes answers

The same expression can give different trig results depending on the mode. The current mode is labeled on the display - glance at it before trusting a sine, cosine, or tangent.

Reuse past work from History

Your last several calculations are saved during the session. Tap any of them to drop the expression back into the display, tweak a number, and re-evaluate without retyping the whole thing.

Related Calculators