Skip to content
EveryFix

Scientific Calculator

A full online scientific calculator with trigonometry (degrees or radians), logarithms, square roots, powers, factorials, parentheses, and the constants π and e. Type an expression or tap the buttons and the answer updates live — no download, no sign-up. It's powered by the mathjs expression engine, and results are trimmed to 12 significant digits to avoid the floating-point noise (like 0.30000000000000004) that trips up naive calculators. Inverse trig functions (asin, acos, atan) are also supported by typing them directly, even though the on-screen keypad only has buttons for sin, cos, and tan.

Beginner⏱ 1 minuteUpdated 2026-07-08

Full scientific calculator with trigonometry (DEG/RAD), logarithms, roots, powers, factorials, and the constants π and e. Type an expression or tap the buttons — the result updates live. Everything runs in your browser.

How This Tool Works

Type a math expression or tap the buttons — sin, cos, tan, ln, log, √, powers (xʸ), factorial (!), π, and e are all supported. The result updates instantly, and “=” carries it forward for the next calculation.

Formula & Method

Expressions follow standard order of operations (PEMDAS): parentheses first, then exponents and roots, then multiplication and division, then addition and subtraction. Trig functions use degrees or radians depending on the DEG/RAD switch.

Example Calculation

In DEG mode, entering sin(30) gives 0.5. Typing 2^10 gives 1024, and sqrt(144) + 5! gives 132. Typing asin(0.5) returns 30, the angle whose sine is 0.5. Switch to RAD mode and sin(pi/2) evaluates to 1, since π/2 radians equals 90°.

Please note: This calculator provides estimates for general informational purposes only. Results may not be accurate for every situation — use your judgment and consult a relevant professional when it matters.

About the Scientific Calculator

A scientific calculator earns its place the moment a problem involves an angle, a logarithm, a power, or a factorial. This one gives you a single expression line and a keypad. You type or tap a whole formula, such as 1500*(1+0.05)^10, and the answer appears underneath and updates with every keystroke. Parentheses and the standard order of operations are respected, so you can write a formula the way a textbook prints it rather than working through it one button at a time.

Behind the display sits the mathjs expression engine, a widely used JavaScript math library, with one customization: a DEG/RAD switch. Trigonometric functions need to know whether 30 means thirty degrees or thirty radians, and the switch decides. In DEG mode (the default), sin(30) is 0.5. In RAD mode, the same input is the sine of thirty radians. Results are rounded to 12 significant digits, which hides the tiny floating-point residue that makes a plain 0.1 + 0.2 appear as 0.30000000000000004 in many tools.

Students, engineers, tradespeople, and anyone checking compound growth or physics formulas can use it. Because you can type, the engine also accepts functions that have no button, such as asin, acos, atan, exp, abs, and cbrt, and two-argument forms such as log(8, 2). The sections below explain the quirks that matter most in practice, particularly what the ln and log buttons really insert and how rounding behaves for very large and very small answers.

When to Use It

Solving a ladder or roof-pitch problem

A homeowner needs the height a 6-meter ladder reaches when leaned at 70 degrees from the ground. In DEG mode, entering 6*sin(70) returns 5.63815572472, so the top of the ladder is a little over 5.6 meters up. Switching the mode would give a nonsense answer, so the DEG setting matters.

Checking compound growth

A saver wants to see what 1,500 grows to after 10 years at 5% interest compounded annually. Typing 1500*(1+0.05)^10 returns 2443.34194017. To estimate the time to double at 7%, log(2)/log(1.07) returns 10.2447683511 years, which is close to the rule-of-72 shortcut.

Counting combinations

A teacher or a game designer needs the number of ways to choose 3 items from 10. Writing 10!/(3!*7!) returns 120. Factorials grow quickly, so it helps to cancel terms in large formulas: the tool handles factorials up to 170, and anything larger shows Undefined.

Working in decibels and scientific notation

A hobbyist converting a power ratio of 200 to decibels types 10*log10(200) and gets 23.0102999566 dB. Very large or small values appear in scientific notation, such as 6.02e23*2 returning 1.204e+24, which keeps long-digit physics constants readable.

How to Use It, Step by Step

  1. Choose the angle mode first with the DEG and RAD buttons at the top left. DEG is selected when the page opens. Pick RAD only if your formula supplies angles in radians, such as pi/6.
  2. Click the expression line, which shows 0 when empty, and start typing a formula using your keyboard, or tap buttons in the keypad. Both can be mixed freely in the same expression.
  3. Use the keypad's function buttons to insert text. sin, cos, and tan add an opening parenthesis, so finish with the matching closing parenthesis. The root button inserts sqrt( and the power button xʸ inserts a caret.
  4. Know what the log buttons insert. The button labeled ln inserts log(, which is the natural logarithm, and the button labeled log inserts log10(, the base-10 logarithm. Typing ln( by hand is not recognized.
  5. Add constants with the π and e buttons, which insert pi and e, or type pi and e. Use the exclamation-mark button for factorial, as in 5!, and the parentheses buttons to group terms.
  6. Read the live answer shown beneath the expression, starting with an equals sign. While a bracket is still open you may see "Error", which simply means the expression is incomplete. "Undefined" means the math has no finite value, such as 1/0.
  7. Press the "=" button or the Enter key to move the result into the expression line so you can keep calculating with it. Use C to clear everything or the backspace button to remove the last character, and Copy to copy the result.

Understanding Your Results

The displayed result is rounded to 12 significant digits, and trailing zeros are dropped, so 9.99*3 appears as 29.97 and 100*1.1 as 110. Very small or large results switch to scientific notation: 1.22464679915e-16 means 0.000000000000000122..., and 7.25741561531e+306 is the value of 170 factorial. The rounding is good for most purposes, but it does mean that a product with more than twelve meaningful digits is shortened; 123456789*987654321 shows 121932631113000000, not the exact 121932631112635269.

Trigonometric answers can show a tiny leftover instead of an exact zero. In DEG mode, sin(180) displays 1.22464679915e-16 and cos(90) displays 6.12323399574e-17, because the angle is first converted to radians using an approximate value of pi. Treat any value around e-16 or e-17 as zero. Likewise tan(90) does not report Undefined; it returns 16331239353200000, an enormous number that signals the tangent is undefined for practical purposes.

Some results are not ordinary numbers. The square root of a negative number returns a complex value written as text, so sqrt(-4) displays 2i. An arcsine of a value above 1 is Undefined in DEG mode but is shown as a complex number in RAD mode. If an answer includes the letter i, the expression went outside the real numbers. Check for a sign error, a missing parenthesis, or a value outside a function's domain.

More Worked Examples

A ladder problem in degrees

Scenario: DEG mode. Enter 6*sin(70), then atan(4/3).

With the mode on DEG, 6*sin(70) returns 5.63815572472, meaning a 6 m ladder at 70 degrees reaches about 5.64 m up the wall. Next, atan(4/3) asks for the angle whose tangent is 4/3, the slope of a 3-4-5 right triangle. It returns 53.1301023542, so the angle is about 53.13 degrees. Both use the degree-aware versions of sin and atan; in RAD mode the same entries would be read in radians and give different numbers.

Compound growth and doubling time

Scenario: Enter 1500*(1+0.05)^10, then log(2)/log(1.07).

The first formula grows 1,500 at 5% a year for 10 years and returns 2443.34194017, so the balance is about 2,443.34. The second asks how many years a quantity takes to double at 7% growth: the log of 2 divided by the log of 1.07 returns 10.2447683511, or about 10.2 years. The same answer comes from log10(2)/log10(1.07), because the ratio of two logarithms does not depend on the base, provided both use the same base.

Rounding noise and special values

Scenario: DEG mode. Enter sin(180), then 171!, then log(100), then sqrt(-4).

sin(180) returns 1.22464679915e-16 instead of 0, which is floating-point residue and should be read as zero. 171! returns Undefined, because the result exceeds the largest number a standard computer can hold, while 170! is accepted. log(100) returns 4.60517018599, not 2, because the log( function is the natural logarithm; use log10(100) to get 2. Finally sqrt(-4) returns 2i, a complex number rather than an error.

Tips for Better Results

  • Use the ln button for natural logarithms and the log button for base-10. If you type by hand, remember that log( is natural, log10( is base 10, and log(x, b) uses base b, so log(8, 2) returns 3.
  • Set DEG or RAD before you type the formula. Formulas with pi, such as sin(pi/6), are written in radians, so switch to RAD for them; in DEG mode, sin(pi/6) would treat the input as about 0.52 degrees.
  • Only sin, cos, tan, asin, acos, and atan follow the DEG setting. Other trig-style functions such as sec, cot, and sinh always use radians, so convert angles by hand for those.
  • Check order of operations when a result looks off. Exponents bind tighter than a leading minus, so -2^2 is -4, and stacked powers run right to left, so 2^3^2 is 2^9 = 512. Add parentheses to make your intent explicit.
  • Add parentheses around every denominator and exponent that has more than one term, such as 1/(2+3) or 2^(1/3). A missing pair is the most common cause of a wrong answer.
  • Percent signs follow the engine's rules, not a pocket calculator's: 200*20% returns 40 and 20% returns 0.2, while a % between two numbers means remainder, so 10 % 3 returns 1.

Common Mistakes to Avoid

  • Typing ln(10) and expecting a natural log. The word ln is not recognized and gives Error. Use the ln button, or type log(10) for the natural logarithm.
  • Assuming log(100) gives 2. In this calculator, log( is the natural logarithm; for base 10 use the log button or type log10(100).
  • Leaving the mode on DEG while entering radian formulas, or the reverse. A sine of 1 in the wrong mode gives 0.0174524064373 instead of 0.841470984808.
  • Typing a unit such as 30 deg inside a trig function in DEG mode. The mode already treats numbers as degrees, and the extra unit makes the result Undefined.
  • Reading an unmatched bracket as a wrong answer. The display shows Error until every opening parenthesis has a closing one, so finish the expression before judging the result.

Assumptions and Limits

  • Calculations use standard double-precision floating-point numbers, with results trimmed to 12 significant digits. Expect rounding differences in the last digit compared with a handheld calculator that carries different internal precision.
  • Very large integer results lose exactness after about 12 digits in the display, and numbers beyond roughly 1.8 x 10^308 overflow to Undefined.
  • Only six trig functions are switched by the DEG/RAD setting. Hyperbolic, secant, cosecant, and cotangent functions treat their input as radians in either mode.
  • This calculator is a convenience for homework, estimates, and quick checks. For engineering design, medical dosing, structural, or financial decisions, verify the result with a second method and follow the standards of your field.

Key Terms

Order of operations
The rule for deciding which part of a formula is calculated first: parentheses, then exponents, then multiplication and division, then addition and subtraction.
Radian
An angle unit based on the circle's radius. A full turn is 2 pi radians, or 360 degrees, so 180 degrees equals pi radians.
Natural logarithm
The logarithm to base e, about 2.71828. It answers the question: e raised to what power gives this number? This calculator's log( function is the natural logarithm.
Factorial
The product of all whole numbers from 1 up to a given number, written with an exclamation mark. For example, 5! = 5 x 4 x 3 x 2 x 1 = 120.
Significant digits
The digits in a number that carry meaning, counted from the first non-zero digit. This tool shows up to 12 of them.
Complex number
A number with a real part and an imaginary part written with i, where i squared equals -1. The square root of -4 is the complex number 2i.

Frequently Asked Questions

Does it use degrees or radians?+

Both — use the DEG/RAD switch at the top. It defaults to degrees, so sin(30) returns 0.5.

What functions are supported?+

Trigonometry (sin, cos, tan), natural and base-10 logs (ln, log), square root, powers (xʸ), factorial (!), parentheses, and the constants π and e.

Can I type on my keyboard?+

Yes — type directly into the display and press Enter to evaluate, or tap the on-screen buttons. Both work together.

Can I calculate inverse trig functions like arcsine or arccosine?+

Yes — type asin(, acos(, or atan( directly, since there's no dedicated button for them. In DEG mode they return an angle in degrees; in RAD mode they return radians, matching whichever mode the sin/cos/tan buttons are currently using.

Why do I get "Error" or "Undefined" instead of a number?+

"Error" means the expression itself couldn't be parsed — usually a typo, an unmatched parenthesis, or a missing operator. "Undefined" means the math has no finite result, such as dividing by zero (1/0).

What is the difference between the ln and log buttons?+

The ln button inserts log(, which this calculator treats as the natural logarithm, base e. The log button inserts log10(, the common base-10 logarithm. So the keypad matches the labels, but typed text does not: log(100) returns 4.605..., the natural log, while log10(100) returns 2. Typing ln( by hand is not recognized and shows Error. You can also give a base as a second argument, as in log(8, 2).

Why does sin(180) show a tiny number instead of zero?+

Computers store numbers in binary with limited precision, and pi cannot be stored exactly. In DEG mode the calculator converts 180 degrees to radians using an approximate pi, and the sine of that value is a hair above zero, about 1.22 x 10^-16. Everything beyond the rounding limit is noise, so treat results of that size as zero. The same thing happens with cos(90) and similar angles.

Why was my long multiplication rounded?+

The display is limited to 12 significant digits to hide floating-point noise. A product like 123456789*987654321 has an exact value of 121932631112635269, but the display shows 121932631113000000. The calculation itself uses standard double precision, which is accurate to about 15 to 17 digits. For exact large-integer arithmetic, such as cryptography or exact factorials, use a big-integer tool.

How does it handle negative numbers and powers?+

Exponents bind more tightly than a leading minus sign, so -2^2 returns -4, not 4. To square negative two, write (-2)^2. Repeated powers are evaluated from the right, so 2^3^2 means 2^(3^2) and returns 512, not 64. When unsure, add parentheses; they cost nothing and make your intent clear to both the calculator and anyone reading the formula.

How do percent signs work?+

Following the underlying math engine, a percent sign after a number divides it by 100, so 20% returns 0.2 and 200*20% returns 40. Used between two numbers, as in 10 % 3, the symbol means remainder after division and returns 1. Writing a sentence like 50% of 200 is not supported and gives Error, so write it as 50% * 200 or 0.5*200 instead.

Found this useful? Share it

Help someone else out — or link to it from your own site.

Link to this tool

Writing about scientific calculator? Paste this on your site to link here.

<a href="https://everyfix.net/tools/scientific-calculator/">Scientific Calculator</a> by <a href="https://everyfix.net">EveryFix</a>