←
Utilities

Scientific Calculator

Loading the tool…

Ready when you are.Runs in this browser · nothing is uploaded

Exact fractions, trig, n!, nCr, memory

  • Free
  • No sign-up
  • No upload
  • Works offline

Tool facts

Price
Free, no sign-up, no watermark
Are files uploaded?
No. Everything is processed in this browser, on your device.
Offline use
Works without a connection once this page has loaded
Browser
A recent Chrome, Edge, Firefox or Safari, on computer or phone.
Limits
n! up to 5000!; exact results up to 131,072 bits (about 39,000 digits); history keeps the last 50 calculations.

Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.

About Scientific Calculator

This scientific calculator evaluates a whole expression such as 2^10 + sin(30) × 4! with the usual operator precedence and keeps the answer exact whenever it can. Typed decimals are stored as fractions with arbitrary-size integers, so 0.1 + 0.2 gives 0.3, 1/3 + 1/6 × 3/4 gives 11/24 and 25! prints all 26 digits. Only steps whose result is generally irrational, such as π, e, roots of non-squares, logarithms and most trigonometric values, switch to 64-bit floating point; those results carry a ≈ sign and are shown to 15 significant digits.

Angles can be in degrees, radians or grads. In degrees and grads, sin and cos of whole multiples of 30° and tan of multiples of 45° stay exact, so sin 30° is 1/2 rather than 0.49999999999999994. The keys cover ln, log, square and cube roots, powers, n! up to 5000!, nCr, nPr, mod, abs, Ans and a memory register; on a computer you can also type the expression and press Enter. The answer switches between fraction and decimal form without being recalculated, and your last 50 calculations stay in this browser.

Scientific Calculator runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.

How to use Scientific Calculator

  1. Type an expression into the display, for example 1/3 + 1/6 × 3/4, or build it with the keys; sin, ln and the other function keys open a bracket for you.
  2. Before using sin, cos, tan or their inverses, pick DEG, RAD or GRAD under Angle unit, or tap the unit shown on the display.
  3. Press = or Enter. Missing closing brackets are added for you and shown in grey while you type.
  4. Switch Show result as between Fraction and Decimal, and press Copy to put the result on the clipboard.
  5. Use MS, M+, M− and MR for a running total and Ans for the last result; click a History entry to put its expression back.

Frequently asked questions

How does the % key work?

a + b% and a − b% change a by b percent: 200 + 15% = 200 × 1.15 = 230 and 200 − 15% = 170, as on most phone calculators. This only happens when b% is the whole right-hand side of a plus or minus. Anywhere else b% simply means b/100, so 50 × 10% = 5, 15% on its own is 0.15 and 200 + 15% × 2 is 200.3. Chains apply one step at a time: 100 + 10% + 10% = 121. To add the number 0.15 itself, write 200 + (15%).

Why is -3^2 equal to -9?

Powers are evaluated before the minus sign, as in maths textbooks and Python, so -3^2 = -(3²) = -9; Excel's =-3^2 returns 9 instead. Powers group from the right, so 2^3^2 = 2^9 = 512. You may leave out the × sign (2π, 3(4+5), 2√2); it ranks the same as × and ÷, so 1/2π means (1/2) × π, and you should write 1/(2π) for the other reading. A function written without brackets takes only the next number: sin 30 + 1 = 1.5. Note that 2e3 and 2e+3 are scientific notation for 2000; to multiply by e and then add 3, write 2e + 3 with spaces. mod follows Python: the result has the sign of the divisor, so 7 mod -3 = -2.

Which results are exact and which are approximate?

Addition, subtraction, multiplication, division, mod, %, whole-number powers, n!, nCr and nPr on exact numbers stay exact. So do roots of perfect squares and cubes (√(9/16) = 3/4, 8^(2/3) = 4, (-8)^(1/3) = -2), log of exact powers of ten, and the trigonometric values mentioned above. An exact number may have up to 131,072 bits (about 39,000 digits); a power that would be larger falls back to floating point, and anything beyond about 1.8 × 10^308 is reported as too large. Results that pass through π, e or another irrational step are shown with ≈ and rounded to 15 significant digits, which hides floating-point tails such as 0.5000000000000001.

What are the limits for n!, nCr and nPr?

n! accepts whole numbers from 0 to 5000 and prints every digit; 5000! has 16,326 of them. Very long results are folded on the display with a button that shows them in full, and Copy always takes the complete number without thousands separators. nCr and nPr need whole numbers with n ≥ 0 and r ≥ 0 and return 0 when r is greater than n, as Python's math.comb and math.perm do. They stop with a message instead of freezing when the answer would pass the size limit, for example nPr(100000, 100000).

How was it checked, and where are history and memory kept?

The engine was compared with Python 3 (fractions, math and decimal) on 1,920 expressions covering fractions, decimals, all three angle units, factorial edge cases, nCr, nPr, percent and mod, and every decimal it displays was checked against Python's Decimal rounded to 15 digits. All calculation happens in your browser. The last 50 calculations, the memory value, Ans and your settings are saved in this browser's local storage and never leave the device; Clear history empties the list, and MC clears the memory.

· Free · Runs in this browser · nothing is uploaded

Drop any file here
Drop it to see which tools can open it