Online scientific calculator: functions, order of operations and precision
What the scientific calculator does and when to use it in the laboratory
The scientific calculator solves operations that do not fit a ready-made formula: logarithms, powers, roots, trigonometric functions and chained calculations. In the laboratory, it is useful for converting hydrogen ion concentration to pH, checking serial dilution factors, working with counts in scientific notation and redoing a report calculation by hand.
The available keys are:
- Operations: addition, subtraction, multiplication, division and power (xʸ), with parentheses.
- Functions and postfix operators: square root (√), log (base 10), ln (base e), sin, cos, tan, factorial (x!), percentage (%), reciprocal (1/x) and sign change (±).
- Memory: MS stores, MR recalls, MC clears, M+ adds to and M− subtracts from the stored value; AC also clears the memory.
- Angle mode: Rad (default) or Deg.
When a dedicated calculator already exists, prefer it, because the formula and units are built in. To prepare a solution, use the C1·V1 = C2·V2 dilution calculator; for MCV, MCH and MCHC, the red cell indices calculator.
How to do a calculation, step by step
A calculation is typed the way it is written: numbers, operators and parentheses, with the equals key at the end. The tool has no form fields: everything is entered on the on-screen keypad, and the display shows the expression as it is built.
- Type the expression, for example 2 + 3 × 4. Use the point key (.) for the decimal part.
- Use ( and ) to group. Open parentheses are closed automatically at =.
- For a function, press the key and type the number (sin 3 0 =), or type the number and press the function right after it (1 0 0 log =).
- To write 2.4 × 10⁵, type 2.4, press EXP and then 5. For 10⁻³, type 1 EXP 3 and press ±.
- Press = to see the result. A number typed after = starts a new calculation; an operator continues from the result.
- AC or the Clear button erase everything, including the memory.
Before using sine, cosine or tangent, check the mode: the calculator opens in Rad. With the same number 30, sin gives −0.988031624093 in radians and 0.5 in degrees.
Order of operations: how the tool evaluates an expression
The calculator stores the whole expression and only evaluates it at =, with the usual precedence: first parentheses and functions, then factorial, percentage and reciprocal, then power, then multiplication and division and, finally, addition and subtraction.
| Keys pressed | Result | Why |
|---|---|---|
| 2 + 3 × 4 = | 14 | multiplication comes before addition |
| ( 2 + 3 ) × 4 = | 20 | parentheses group |
| 2 xʸ 3 xʸ 2 = | 512 | power associates to the right: 2^(3^2) |
| − 2 xʸ 2 = | −4 | the sign is applied after the power; for 4, use (−2) |
| 2 xʸ − 3 = | 0.125 | a − right after an operator is a sign: negative exponent |
| 200 + 10 % = | 220 | in addition and subtraction, b% means b% of the first term |
| 50 × 10 % = | 5 | otherwise, x% is x ÷ 100 |
| 2.5 x! | domain error | factorial only exists for integers from 0 to 170 |
Multiplication can also be implicit: 2 ( 3 + 1 ) = gives 8. An incomplete expression, such as 5 + followed by =, shows the incomplete expression message.
Worked example: pH from H⁺ concentration
The pH is the negative common logarithm of the hydrogen ion concentration in mol/L: pH = −log[H⁺]. Consider, as a teaching example, [H⁺] = 4 × 10⁻⁸ mol/L.
With a sign, a function and a negative exponent, the calculation fits in a single expression:
- Press − and then log. The display shows −log(.
- Type 4, press EXP, type 8 and press ±. The display shows −log(4e-8.
- Press =. The parenthesis closes on its own, and the display shows 7.39794000867.
- Round at the end: pH = 7.40.
A manual check agrees: log(4) ≈ 0.602, so log(4 × 10⁻⁸) = 0.602 − 8 = −7.398, and the pH is 7.398. The result is only a calculation exercise; a real blood gas is measured by electrode and interpreted by the professional. The anion gap, which is part of the same acid-base assessment, has its own calculator: the anion gap with and without potassium.
Precision, rounding and odd results on the display
The calculator works with double-precision floating-point numbers, the binary format defined by the IEEE 754 standard. That format represents most decimal fractions only approximately, as Goldberg explains in the classic review article on floating-point arithmetic.
To hide these residues, the result is rounded to 12 significant digits. In practice:
- 0.1 + 0.2 = shows 0.3, not 0.30000000000000004.
- sin(30) in degrees shows 0.5.
- 10 ÷ 3 = shows 3.33333333333.
- ln(2.71828) shows 0.999999327347, because 2.71828 is only an approximation of e.
- 1 ÷ 0 shows the division by zero message; the square root of a negative number and the log of zero show the out of domain message.
The display uses a decimal point. Round only at the end, with a number of digits consistent with the original measurement: a volume read on a 1 mL pipette does not justify eight decimal places. The NIST guide to units and expression of values (SP 811) gives rounding rules. The site's dedicated calculators, such as LDL cholesterol by Friedewald, already show the result with defined decimal places.
Common errors and verification checklist
Most errors with the scientific calculator come from the angle mode, the percentage and poorly grouped expressions. Use the list below before copying a result:
- Parentheses: is the grouping you typed the one you meant? Check the expression on the display before =.
- Sign and power: −2 xʸ 2 gives −4; to square −2, use ( − 2 ) xʸ 2.
- Percentage: 250 × 10 % gives 25, and 200 + 10 % gives 220. To simply divide by 100, use the percentage without an addition before it.
- Angle mode: Rad or Deg according to the input data.
- Decimal separator: the key is a point; the display also uses a point.
- After =: a typed number starts another calculation; an operator continues from the result.
- Memory: AC clears the memory; store again with MS if you need the value after clearing.
- Order of magnitude: does the result make sense? A mental estimate catches typing errors.
When the calculation is clinical, compare it with the specific calculator, such as the BMI calculator, which already validates the inputs.
Scientific calculator, algebraic calculator and dedicated calculators
Scientific calculators follow one of two input models: immediate execution, which solves each operation as soon as another operator is pressed, or algebraic entry, which stores the whole expression and applies conventional precedence with real parentheses. This calculator uses algebraic entry.
| Tool | How it evaluates | When to use |
|---|---|---|
| This calculator (algebraic entry) | Complete expression, with precedence and parentheses | Chained calculations, logarithms, powers, quick checks |
| Immediate execution calculator | Left to right, one operation at a time | Sums and short calculations; 2 + 3 × 4 would give 20 |
| Dedicated calculator on the site | Fixed formula, fields with units and validation | Recurring clinical calculations |
For laboratory estimates, the dedicated calculator reduces the risk of formula error. The glomerular filtration rate by CKD-EPI 2021, for example, involves powers and minimums that would be tedious to redo key by key.
Frequently asked questions about the online scientific calculator
What does 2 + 3 × 4 give on this calculator?
It gives 14. The calculator stores the whole expression and does the multiplication before the addition. To add first, use parentheses: (2 + 3) × 4 = 20.
How does the % key work?
It calculates a percentage. On its own or in a multiplication, x% means x ÷ 100: 250 × 10% = 25. In an addition or subtraction, b% is taken of the first term: 200 + 10% = 220.
How do I enter a number in scientific notation?
Type the mantissa, press EXP and type the exponent: 2.4 EXP 5 equals 2.4 × 10⁵. For a negative exponent, press ± after the exponent: 1 EXP 3 ± equals 10⁻³.
Why does 0.1 + 0.2 appear as 0.3?
The internal floating-point calculation (IEEE 754 standard) gives 0.30000000000000004, but the result is rounded to 12 significant digits to hide that residue.
Is the calculator's log natural or common?
The log key is the common logarithm (base 10), used to calculate pH. The ln key is the natural logarithm (base e).
Does AC clear the memory?
Yes. AC and the Clear button reset the expression, the last result and the memory. MC clears only the memory.
References
- IEEE Computer Society. IEEE Standard for Floating-Point Arithmetic. IEEE Std 754-2019. New York: IEEE; 2019. doi:10.1109/IEEESTD.2019.8766229. View
- Goldberg D. What every computer scientist should know about floating-point arithmetic. ACM Comput Surv. 1991;23(1):5-48. doi:10.1145/103162.103163. View
- Thompson A, Taylor BN. Guide for the Use of the International System of Units (SI). NIST Special Publication 811. Gaithersburg: National Institute of Standards and Technology; 2008. View
Updated . A support tool for educational purposes; it does not replace clinical assessment.