Interactive calculatorShows its work

Round to N Significant Figures

Enter your values below. You’ll get a precise result, the governing rule, and enough working to check every step.

Every rounding decision, shown

Round to N Significant Figures

Enter one decimal or scientific-notation number, choose the number of significant figures, and compare formal rounding methods without floating-point errors.

Rounded result 3.14 3 significant figures
3.14159 3.14

Rule applied

Round half up

The first discarded digit is 1, after the hundredths place. The discarded part is less than half a unit in the last retained place, so the last kept digit stays unchanged.

Decimal3.14
Scientific3.14 × 10^0
E-notation3.14e0

How to round to significant figures

Significant figures measure precision from the first nonzero digit, not from the decimal point. Leading zeros only locate the decimal and do not count. Zeros between significant digits count, and zeros written after a decimal can state measured precision. This is why rounding 0.004567 to three significant figures gives 0.00457: the first significant digit is 4, even though it appears several places after the decimal point.

For a nonzero value x and a target of N significant figures, first find m = floor(log10(|x|)), the power of ten occupied by the first significant digit. The final retained place is p = m - (N - 1). Round x to the nearest multiple of 10^p using the selected method. The calculator applies that rule with decimal strings and integer operations, so it does not inherit binary floating-point surprises such as 1.005 appearing slightly below its exact decimal value.

  1. Ignore the sign temporarily and locate the first nonzero digit.
  2. Count N digits from that point. The Nth digit is the last retained digit.
  3. Inspect the complete discarded part, not only a rounded intermediate value.
  4. Apply the chosen tie or directed-rounding rule, then restore the sign.
  5. Write enough digits, preferably in scientific notation, to make the precision visible.

Worked examples

3.14159 to 3 significant figures: 3.14. The first three digits are 3, 1, and 4. The next digit is 1, below halfway, so the 4 stays.

0.00456 to 2 significant figures: 0.0046. The leading zeros do not count. Keep 4 and 5; the discarded 6 increases the 5 to 6.

999.9 to 3 significant figures: 1000, best written 1.00e3. Rounding creates a carry through all three retained 9s. Scientific notation preserves the requested three-figure precision.

1.2 to 4 significant figures: 1.200. No numerical change is needed; two zeros are appended to state precision through the thousandths place.

1250 to 2 significant figures: 1.3e3 with half-up, but 1.2e3 with half-even. The discarded part is exactly halfway, and the retained 2 is already even.

Rounding method comparison

Most inputs give the same answer under the three nearest-value methods. They differ only on an exact tie: a discarded 5 followed entirely by zeros. Ceiling, floor, and truncation are directed methods; any nonzero discarded part can matter.

MethodDecision2.5 to 1 SF-2.5 to 1 SF
Half upNearest; exact ties away from zero3-3
Half evenNearest; exact ties make the retained digit even2-2
Half downNearest; exact ties toward zero2-2
CeilingAlways toward positive infinity3-2
FloorAlways toward negative infinity2-3
TruncateAlways toward zero2-2

Half-even is useful across large datasets because repeated exact ties do not always move in one direction. Half-up remains the common classroom default. ASTM conformance work can impose a specified practice, so use the method named by the governing standard instead of assuming a universal default.

Trailing zeros and scientific notation

An integer such as 1200 is visually ambiguous in ordinary notation: it may communicate two, three, or four significant figures depending on context. After rounding to three significant figures, write 1.20e3 or 1.20 x 10^3 when the precision matters. The zero after the 2 is then visibly part of the coefficient. The calculator shows decimal notation for familiarity and scientific and E notation for an unambiguous record.

Do not confuse significant figures with decimal places. Rounding 0.00456 to two significant figures produces 0.0046, which has four decimal places. Rounding the same value to two decimal places would produce 0.00. The target here always starts at the first significant digit.

Calculation method and limits

The server renderer parses the mantissa and exponent as strings, locates the retained and discarded digits, and performs carry propagation one decimal character at a time. The browser uses an exact BigInt rational implementation. Neither path sends the number through a binary JavaScript or PHP float. Inputs are limited to one numeric literal, 1,000 mantissa digits, an exponent from -1,000 to 1,000, and a target from 1 to 100 significant figures so a pasted value cannot request unbounded work.

This tool rounds a stated value; it does not decide how many figures an experiment justifies. Measurement uncertainty, instrument resolution, exact conversion factors, and course or laboratory rules determine the appropriate target. Carry guard digits through a calculation and round once at the end unless a governing method explicitly says otherwise.

Use the Significant Figures Calculator for arithmetic expressions and rule attribution, open the Sig Fig Counter to see which digits count, or compare this answer with the Round to N Decimal Places tool.

Methodology and sources

Method reviewed against exact decimal tie cases, negative directed rounding, carry across powers of ten, zero padding, and scientific-notation exponents. Automated fixtures compare the server conventions with the shared browser engine before deployment.

Changelog

- Initial release with six exact rounding methods, full server rendering, scientific notation, and explicit input limits.