Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Math & Science
  3. Scientific Calculator
Add to favorites

Scientific Calculator

Exact arithmetic on rationals, with both evaluation conventions named and the precedence table the parser runs on printed on the page.

Calculated locally in your browserMore math & scienceJump to full guide

Initializing in your browser…

You might also like

Fraction Calculator

Add, subtract, multiply, divide, compare and simplify fractions of any size, exactly. Reads mixed numbers and repeating decimals, and gives the decimal expansion with its repeating cycle.

Aspect Ratio Calculator

Aspect ratios reduced exactly by the greatest common divisor, with the reduction multiplied back as a check, resizes that say whether they are exact, and named ratios that carry a note where the name is not the ratio.

Date & Age Calculator

Exact ages and date differences worked out on the calendar itself, with no arithmetic on milliseconds, so the answer is the same in every time zone. Shows which days are not 86,400 seconds long.

A worked calculation

You press 2 + 3 × 4 = and want to know why two calculators give you two different answers.

Keys

2  +  3  ×  4  =
What Scientific Calculator produces

Both answers

Algebraic (precedence): 14
Chain (desk calculator): 20
2 → 5 → 20, because × applies the pending +

A four-function calculator applies whatever operation is pending the moment you press the next operator key, so it computes 2 + 3 = 5 and then 5 × 4 = 20. Algebraic notation waits, because × binds more tightly than +. Neither is a bug; the fault is not saying which. This page implements both, names them, and prints the precedence table its parser actually runs on.

What this calculator does

A scientific calculator that says which evaluation convention it is using, and computes exactly wherever exact arithmetic exists. 2 + 3 x 4 is 14 under operator precedence and 20 on a four-function desk calculator, and both are right for what they are; this one lets you pick and prints the precedence table it runs on.

How it works

Two faults sit in almost every calculator on the web, and both were in this one. The first is that a chain calculator applies the pending operation the moment you press the next operator, so 2 + 3 x 4 comes out as 20 and 1 + 2 ^ 3 as 27. That is not a bug in a desk calculator, it is what one does, and anybody who has used one relies on it. It is wrong for something labelled scientific, and the shipped version did it with nothing on the page saying which convention was in force. Here both are implemented, both are named, and switching between them on the same expression shows the difference. The precedence and associativity table is a value in the source that the parser climbs, so it cannot drift from what the calculator actually does, and it is printed on the page with the places conventions genuinely differ marked (the power is right associative and binds tighter than a unary minus, so 2^3^2 is 512 and -2^2 is -4). The second fault is the raw double: 0.1 + 0.2 showed as 0.30000000000000004 and every factorial from 23! up was approximate with nothing saying so. Here every operation that can be exact is done on rational numbers over arbitrary-precision integers, so 0.1 + 0.2 is exactly 0.3, 1/3 is a third rather than 0.333333, and 100! is all 158 digits. Where a value genuinely is irrational the answer falls back to the nearest double and the page says which operation made it inexact.

How to use

  1. 1Type an expression, or use the keypad
  2. 2Pick the evaluation convention: algebraic (precedence) or chain (desk calculator)
  3. 3Set the angle mode: radians, degrees or gradians
  4. 4Read the line under the answer: it says whether the result is exact and why not, if not
  5. 5Open the precedence table to see exactly how your expression was grouped

Key features

  • Both evaluation conventions, named, with the chain answer shown alongside the algebraic one
  • A precedence and associativity table printed from the same data the parser runs on
  • Exact rational arithmetic: 0.1 + 0.2 is exactly 0.3 and 1/3 is a third
  • Whole answers at any size: 100! is all 158 digits rather than 9.33262154439441e+157
  • Every inexact answer marked, with the operation that made it inexact named
  • A repeating decimal shown with its cycle, and a rational answer as a fraction
  • 30 functions and 4 constants, with radians, degrees and gradians
  • Exact roots where they exist: sqrt(16) is 4 and 8^(1/3) is 2
  • gcd, lcm, nCr and nPr on whole numbers of any size
  • The answer in binary, octal and hexadecimal when it is a whole number
  • Division by zero, an unclosed bracket and a factorial of a fraction all refused by name, with the position marked
  • A history of the answers, each one clickable to put the expression back

When this is useful

  • Everyday arithmetic

    Percentages, powers and roots with the answer exact rather than the nearest double to it.

  • Checking a spreadsheet

    Spreadsheets differ on whether the power is right associative and on how a unary minus binds; the table here says what this calculator does.

  • Combinatorics

    nCr, nPr and factorials of any size, computed on big integers so every digit is there.

  • Understanding a calculator

    Running the same keys under both conventions makes visible why the desk calculator on your phone and the one in a programming language disagree.

  • Exact fractions

    A third stays a third through the whole calculation, and the answer is shown as a fraction and as a repeating decimal.

Frequently asked questions

Why is 2 + 3 x 4 sometimes 14 and sometimes 20?

Because there are two conventions. Algebraic notation gives multiplication a higher precedence than addition, so it is 14. A four-function desk calculator applies the pending operation as soon as you press the next operator key, so it computes 2 + 3 first and gets 20. Both are used by real machines; this page names which one is in force.

Why is 2^3^2 512 and not 64?

Because the power operator is right associative, so it means 2^(3^2). That is the convention in mathematics, Python and every computer algebra system. Some spreadsheets group it the other way, which is one of the reasons the precedence table is on the page.

Why is -2^2 negative?

Because the power binds more tightly than a unary minus, so it reads as -(2^2) = -4. If you want (-2)^2 = 4, put the brackets in.

Why is 0.1 + 0.2 exactly 0.3 here?

Because the arithmetic is done on rational numbers over arbitrary-precision integers rather than on floating-point doubles. The answer says whether it is exact, and where a value really is irrational (a logarithm, a sine, pi) it says so and falls back to a double.

Why does it refuse 1e3?

Because e is a constant on this calculator, and one string cannot mean both a thousand and the exponent of Euler's number. It is refused by name rather than guessed at. Write 1000 or 1 * 10^3.

What does % do?

It divides by a hundred, so 50% is 0.5, which is what a desk calculator's % key does. The remainder is written mod, because a % b for a remainder and a% for a percentage cannot both be true. The remainder uses truncated division, so -7 mod 3 is -1; Python gives 2 because it floors instead.

How large a factorial can it compute?

20000!, and every digit is real, because the arithmetic is on big integers. A double loses precision from 23! onwards and overflows completely at 171!.

Private by design

Every calculation runs locally in your browser. Your numbers and expressions are not transmitted or stored.