Maths & numbers

Interval arithmetic calculator with exact lower and upper bounds

Add, subtract, multiply or divide intervals with exact rational endpoints and explicit rejection of zero-crossing divisors.

Your numbers

Use an integer, a decimal with up to six places, or a fraction such as 3/2. Endpoint magnitude and fraction components are limited to 1,000,000.
Use an integer, a decimal with up to six places, or a fraction such as 3/2. Endpoint magnitude and fraction components are limited to 1,000,000.
Use an integer, a decimal with up to six places, or a fraction such as 3/2. Endpoint magnitude and fraction components are limited to 1,000,000.
Use an integer, a decimal with up to six places, or a fraction such as 3/2. Endpoint magnitude and fraction components are limited to 1,000,000.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

An interval represents every value between its lower and upper endpoints. Interval arithmetic produces bounds containing all possible operation results when the operands vary independently over their intervals. This calculator keeps endpoint fractions exact rather than calculating decimal endpoints and pretending they were rounded outward. It supports addition, subtraction, multiplication and division, with divisor intervals containing zero rejected explicitly because a single finite result interval may not describe that domain.

THE FORMULAFor multiplication, take min and max of all four endpoint products; division first reciprocates an interval that excludes zero.

A worked example

Multiply A = [−2,3] by B = [−4,5]. The four corner products are 8, −10, −12 and 15, so the tight independent-operand result is [−12,15]. Multiplying only the lower endpoints and only the upper endpoints would incorrectly give [8,15]. For [1,1] divided by [3,3], the exact result is [1/3,1/3], not a rounded decimal interval.

Good to know

Endpoints use integers, decimals with up to six places or fractions under the shared magnitude and component bounds of 1,000,000. Each lower endpoint must not exceed its upper endpoint. Exact intermediate fractions have a size limit. This page handles one independent binary operation, not arbitrary expression evaluation with dependency tracking, unions of unbounded intervals, transcendental interval functions or probabilistic confidence intervals.

Sign changes make all four endpoint products necessary

The minimum product need not involve both lower endpoints. In the default example, positive three times negative four produces the smallest value, while positive three times positive five produces the largest. Evaluating all four endpoint combinations handles positive, negative and zero-crossing intervals without assuming a sign pattern. The result table retains the exact input and output bounds.

Subtraction has a different monotonic rule: [a,b] − [c,d] = [a−d,b−c]. Subtracting the larger second operand gives the lower result. Division uses the reciprocal interval [1/d,1/c] when the second interval stays strictly on one side of zero, then applies multiplication. The reciprocal rule works for a wholly negative interval too, with the endpoint order preserved correctly.

All four endpoint products determine the interval from minus twelve to fifteen8-10-1215−1215
Products for [−2,3] times [−4,5] are 8, −10, −12 and 15. The minimum and maximum give [−12,15]; multiplying just corresponding endpoints is insufficient.

The fraction calculator can independently check individual endpoint operations. Interval arithmetic additionally determines which endpoint combinations produce extrema.

Interval bounds are not probabilities or dependence models

A = [0,1] says that an unknown value is somewhere in that range; it does not assign a uniform distribution or any other probability law. If the same unknown x appears twice, interval evaluation may overestimate because it treats occurrences independently. For example, x − x is exactly zero, while [0,1] − [0,1] gives [−1,1]. This page deliberately evaluates independent interval operands rather than simplifying a shared-variable expression.

A divisor that includes zero is not silently replaced by a small nonzero number. Its quotient set can be undefined or split into unbounded components, which the finite single-interval interface does not represent. Exact rational endpoints avoid floating-point enclosure errors for the four implemented operations, but they do not validate the original input bounds as measurements. Fraction arithmetic can check individual endpoint operations; interval arithmetic adds the range-extrema logic.

A few questions, answered

Are single-value intervals allowed?

Yes. Equal endpoints represent one exact value, such as [1/3,1/3]. The same endpoint rules remain valid.

Why does exact arithmetic matter for an interval?

A rounded endpoint can accidentally exclude a true result. Exact rational endpoint output avoids that rounding problem for the supported rational operations.

Find your calculator

Start typing to explore the library.