πŸ† US-Registered Digital Marketing Agency Trusted by 200+ brands Β· USA Β· UK Β· Canada Β· AUS
MATH TOOL

Scientific Calculator β€” free online, with steps

Type or tap a full scientific expression β€” trig, logs, powers, roots, factorials, memory β€” and get an instant, accurate result.

Type directly (keyboard works) or tap the keys below. Use pi or e for constants.
Result
0
 
DEG
Angle mode
0
Memory (M)
0
Last answer
0
Steps parsed
Tip: the calculator follows standard order of operations (parentheses, then powers, then Γ— Γ·, then + βˆ’), so 2+3*4 correctly returns 14, not 20.
Advertisement

A scientific calculator is a calculator built for algebra, trigonometry, and higher math β€” it goes far beyond the four basic operations of a standard pocket calculator by adding trigonometric functions, logarithms, exponents, roots, factorials, and a memory bank. This free tool gives you all of that in your browser, with no download, no login, and no ads blocking the keypad.

Whether you're a student checking homework, an engineer sanity-checking a formula, or just someone who needs sin, log, or a square root fast, this scientific calculator was built by Arb Digital to be accurate, fast, and completely free to use as many times as you like.

What This Scientific Calculator Does

This tool accepts a full mathematical expression β€” not just one operation at a time β€” and evaluates it in one pass, respecting standard mathematical order of operations. You can type something like 3*(4+5)^2-sqrt(49) and the calculator will parse the parentheses first, then the exponent, then the multiplication, then the subtraction, exactly the way a textbook would expect. It supports:

  • Basic arithmetic: addition, subtraction, multiplication, division
  • Parentheses for grouping, nested as deep as you need
  • Exponents (^) and roots (sqrt, cbrt)
  • Trigonometric functions sin, cos, tan and their inverses asin, acos, atan, switchable between degrees and radians
  • Logarithms: log (base 10) and ln (natural log, base e)
  • The constants pi (Ο€) and e
  • Factorials (!) and percent (%)
  • A one-slot memory bank with recall, add, subtract, store, and clear

Every result appears instantly, and the calculator remembers your last answer and your stored memory value so you can chain calculations without retyping numbers.

How to Use the Scientific Calculator

  1. Type or tap your expression. Click into the expression field and type directly on your keyboard, or build the expression by tapping the on-screen keys β€” both work identically and can be mixed freely.
  2. Set your angle mode. If your expression uses sin, cos, tan, or their inverses, check the Mode button above the keypad. It toggles between DEG (degrees) and RAD (radians) β€” this single setting changes how every trig function in the expression is interpreted.
  3. Use functions with parentheses. Functions always take their argument in parentheses, for example sin(45) or log(1000). The calculator will tell you if a parenthesis is missing rather than silently guessing.
  4. Press Calculate (or Enter). Click the = button or press the Enter key on your keyboard β€” both trigger the same calculation.
  5. Read the result and the memory panel. The big number is your answer. The four boxes below it track your current angle mode, stored memory value, last answer, and how many tokens the parser processed β€” handy for spotting a typo if a result looks wrong.
  6. Use memory to chain calculations. Tap MS to store the current result, M+/M- to add or subtract the current result from memory, and MR to insert the stored value back into your expression.

How the Calculator Works: Order of Operations

Behind the scenes, this scientific calculator does not use a shortcut like a browser's built-in expression evaluator. Instead it runs a small hand-written parser (a recursive-descent parser, if you want the technical term) that breaks your typed expression into tokens β€” numbers, operators, function names, and parentheses β€” and then builds those tokens into a tree that respects mathematical precedence. Parentheses are evaluated first, then exponents, then multiplication and division (left to right), then addition and subtraction (left to right). This is the same precedence order taught in algebra classes worldwide and formalized by organizations like the National Institute of Standards and Technology in its guidance on mathematical notation.

Trigonometric functions deserve special mention because they are the most common source of "wrong answer" complaints with any calculator. When you compute sin(30), the result depends entirely on whether 30 is being treated as 30 degrees or 30 radians β€” and those two interpretations give wildly different answers (0.5 versus roughly -0.988). This calculator's mode toggle makes that choice explicit and visible at all times, and it automatically converts your input to radians internally before applying JavaScript's trigonometric math functions, then converts inverse-trig results back to degrees if you're in degree mode. That round-trip conversion is exactly what a classroom scientific calculator does, and it is the detail most free online calculators get wrong or hide.

Advertisement

Why This Tool Doesn't Use JavaScript's eval()

Many quick-and-dirty calculator scripts online simply pass your typed text straight into JavaScript's built-in eval() function and let the browser's own interpreter compute the answer. That approach is fast to build, but it is fragile and unsafe: eval() executes arbitrary code, which means a malformed or malicious input can crash the page or, worse, run something it shouldn't. It also doesn't understand calculator-specific notation like sin, log, or a bare percent sign, so it constantly needs patched-together string replacement hacks that break in edge cases.

This scientific calculator instead tokenizes your expression character by character, builds a small syntax tree, and walks that tree to compute the answer β€” the same general technique real calculator firmware and graphing calculator operating systems use. The benefit to you is predictable, correct behavior every time: a missing parenthesis produces a clear error message instead of a silent wrong answer, dividing by zero is caught before it happens, and factorials are checked to make sure you didn't ask for the factorial of a negative number or a fraction (which is undefined for a simple factorial).

Understanding Logarithms, Roots, and Factorials

A few of the functions on this keypad trip people up, so here's a quick plain-language refresher. log(x) answers "10 raised to what power gives x?" β€” it is the base-10 logarithm, and log(1000) equals 3 because 10Β³ = 1000. ln(x) answers the same question but with the base being Euler's number e (about 2.71828) instead of 10 β€” it's called the natural logarithm and shows up constantly in growth, decay, and compound-interest problems. Both logarithms are only defined for positive numbers, so this calculator will flag an error rather than return a meaningless value if you try to take the log of zero or a negative number.

Square root (sqrt) and cube root (cbrt) undo squaring and cubing respectively. A square root is only a real number for non-negative inputs (you can't take the real square root of a negative number without introducing imaginary numbers), while a cube root is perfectly well defined for negative numbers too β€” the cube root of -8 is -2. Factorial (!) multiplies a whole number by every positive whole number smaller than it, so 5! equals 5Γ—4Γ—3Γ—2Γ—1 = 120; factorials are only meaningful for non-negative integers, which is why this calculator rejects factorials of negative numbers or decimals with a clear message rather than a wrong number.

Degrees vs. Radians: Which Should You Use?

If you were taught trigonometry in a typical high school class, you almost certainly worked in degrees, where a full circle is 360Β°. Radians measure angles by arc length instead, where a full circle is 2Ο€ radians (about 6.283). Most real-world geometry problems β€” construction angles, navigation bearings, everyday triangle problems β€” use degrees, so this calculator defaults to DEG mode. Physics, engineering, and calculus, on the other hand, almost always use radians because the calculus of trigonometric functions (their derivatives and integrals) is far cleaner in radians. If a homework problem or textbook doesn't specify, degrees is the safer default for geometry and radians is the safer default for calculus β€” and this calculator lets you flip between the two with a single tap so you never have to do the Ο€/180 conversion by hand.

Reading the Result Panel and Memory Bank

Every time you press Calculate, four figures update alongside the main answer: your current angle mode, your stored memory value, your last computed answer, and the number of tokens the parser broke your expression into β€” a quick way to spot a stray character if a result looks off.

The memory bank works like the "M" keys on a physical scientific calculator. Press MS to store the current result, even after clearing the display. MR inserts that stored value into your expression, handy when a multi-part problem reuses an earlier answer. M+ and M- accumulate a running total across several calculations, and MC resets memory to zero for a fresh problem.

Working With Percentages and Powers

The % key is a postfix operator, meaning it applies to whatever number sits directly in front of it and converts that number by dividing it by 100 β€” so 25% evaluates to 0.25 before any surrounding arithmetic happens. This mirrors how percent works on most physical calculators and lets you write natural expressions like 200*15% to find 15 percent of 200 in one line, without manually converting the percentage to a decimal first.

The caret ^ key raises a number to a power, and this calculator's parser treats exponentiation as right-associative, which is the mathematically correct convention: an expression like 2^3^2 is evaluated as 2 raised to the power of (3 raised to the power of 2), or 2^9 = 512, not (2^3)^2 = 64. This distinction rarely matters for simple homework but becomes important the moment you start chaining exponents, and it's one more example of the parser following the same rules a graphing calculator or algebra textbook would use rather than taking a shortcut.

Need more than a calculator?

Arb Digital builds fast, high-converting websites, content, and free tools like this one for businesses that want to be found online. If your site could use the same care we put into this calculator, let's talk.

Contact Arb Digital All Free Tools

Common Mistakes to Avoid

  • Forgetting to check the angle mode. The single biggest source of "wrong" trig answers is having the calculator in degrees when you meant radians, or vice versa. Always glance at the mode button before reading a trig result.
  • Leaving off a closing parenthesis. Every function call and every grouping needs a matching close-parenthesis; the calculator will report an error rather than guess what you meant.
  • Confusing log and ln. They give different answers for the same input unless the input is 1 (both are 0) β€” double-check which one your problem actually calls for.
  • Trying to take the factorial of a negative number or a decimal. Ordinary factorials are only defined for non-negative whole numbers.
  • Dividing by an expression that can evaluate to zero. The calculator will catch a literal divide-by-zero and tell you, but it's worth checking your own inputs too.

Related Free Tools From Arb Digital

If you're working through algebra or geometry problems, pair this calculator with our Quadratic Equation Solver for factoring and root-finding, the Slope Calculator for line equations, and the Pythagorean Theorem Calculator for right-triangle problems. For everyday arithmetic, try our Fraction Calculator and Ratio Calculator. You can browse everything we've built in our free online tools hub.

Frequently Asked Questions

Is this scientific calculator really free to use?

Yes. It runs entirely in your browser with no sign-up, no download, and no usage limit, and it will remain free.

Does it work in degrees or radians?

Both. Tap the Mode button to switch between DEG and RAD before running any expression that includes sin, cos, tan, or their inverse functions.

Can I use parentheses and nested functions?

Yes, you can nest parentheses as deeply as you need, for example sqrt(sin(30)^2+cos(30)^2), and the calculator will resolve the innermost parentheses first.

Why do I get an error instead of a number sometimes?

The calculator deliberately returns a clear error message for invalid math, such as dividing by zero, taking the log of a negative number, the factorial of a non-integer, or a missing parenthesis, instead of silently returning a wrong value.

How does the memory (M) feature work?

MS stores the current result into memory, M+ and M- add or subtract the current result from the stored value, MR inserts the stored value into your expression, and MC clears memory back to zero.

Is my data or expression sent anywhere?

No. Every calculation runs locally in your own browser using JavaScript; nothing you type is transmitted to a server.

This tool runs entirely in your browser using built-in JavaScript. Nothing you enter is uploaded, stored, or sent to any server.

Advertisement

πŸ‘‹ Hey! Want to grow your business? Ask me anything β€” a free marketing proposal is on the table!