Machine Epsilon Calculator
Estimate machine epsilon for a simulated floating-point precision. This educational calculator shows the formula, result, and step-by-step interpretation.
Calculator
What this calculator teaches
Machine epsilon measures spacing near 1 and helps explain floating-point roundoff.
Use the result as a learning aid. For classwork, still show the formula and intermediate reasoning so the final answer is not just a black-box number.
What Machine Epsilon Measures Near 1
Machine epsilon is the spacing from 1 to the next larger representable floating-point number under a common definition. For a normalized binary format with p bits of significand precision, that gap is ε=21-p. The precision count p includes the leading significand bit when the format represents it implicitly.
This value is about relative resolution near 1, not the smallest positive floating-point number. Very small magnitudes involve exponent limits and subnormal numbers, which are different properties of a format. Also note that some numerical-analysis texts use "machine epsilon" for unit roundoff, often half the spacing used here. Always check the convention.
| Precision p | ε=21-p | Common interpretation |
|---|---|---|
| 11 | 2-10=0.0009765625 | Binary16 spacing near 1 |
| 24 | 2-23≈1.19209×10-7 | Binary32 spacing near 1 |
| 53 | 2-52≈2.22045×10-16 | Binary64 spacing near 1 |
Floating-point spacing scales with exponent. Numbers around 2 have a larger absolute gap than numbers around 1, while the relative precision remains roughly comparable within the normalized range. That is why ε is most useful as a reference for relative rounding behavior rather than as one universal absolute error bound.
One practical experiment is to compare 1+ε with 1. Under the spacing convention used here, 1+ε is the next representable value above 1. A smaller increment may round back to 1 depending on the rounding mode, which demonstrates why tiny arithmetic changes can disappear in finite precision.
Formula & Symbols
| Concept | Formula or rule |
|---|---|
| Machine epsilon | ε = 2^(1-p) for p precision bits |
Worked example
Common mistakes
Keep lists comma separated, matrices as rows separated by semicolons, and modular inputs as integers.
Some methods require positive probabilities, valid moduli, independent trials, or small educational input sizes.
Epsilon describes spacing near 1. Minimum positive normal or subnormal values are controlled by the exponent range and are much smaller quantities.
The formula uses binary significand bits p. A format advertised with a certain number of decimal significant digits cannot be inserted directly as p.
FAQ
Related calculators
These links will work after the calculators are registered in the final Math layout update.
Formula Explorer connections
Interpretation: This relationship converts, summarizes or checks numerical quantities using standard arithmetic and measurement rules. Assumption: Use consistent units, preserve enough significant digits, and round only the final result unless the method states otherwise.