Skip to content
FiftyCalc Free calculators for all 50 states

Ceiling Function Calculator

Test cases replayed : 4 of 4 match · Methodology · No outside source listed

Enter a number, and a multiple if you want to round up to steps other than 1.

Result

Sample figures

Ceiling ⌈x⌉—

Floor ⌊x⌋ (for comparison) —

  • x rounded up to the multiple—
  • Fractional part x − ⌊x⌋—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Ceiling Function Calculator

Number x: enter a number. Prefilled example: 7.3.

Round up to a multiple of (positive): enter 0 or more. Prefilled example: 0.5.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Number x: enter a number.
  2. Round up to a multiple of (positive): enter 0 or more.
  3. Read the result: Ceiling ⌈x⌉; the panel also shows Floor ⌊x⌋ (for comparison), x rounded up to the multiple and Fractional part x − ⌊x⌋.

How this calculator works

⌈x⌉ is the smallest integer greater than or equal to x; ⌊x⌋ is the largest integer less than or equal to x. For negative numbers the ceiling moves toward zero: ⌈−2.4⌉ = −2.

Rounding up to a multiple m is ⌈x ÷ m⌉ × m, the same as Excel's CEILING(x, m) for positive m.

The formula

  1. C=ceil⁡(x)+0
Symbols used in the formula
SymbolMeaning
xNumber x
CCeiling ⌈x⌉
ceil(x)the smallest whole number not below x.

Worked example

Number x7.3
Round up to a multiple of (positive)0.5
Floor ⌊x⌋ (for comparison)7
x rounded up to the multiple7.5
Fractional part x − ⌊x⌋0.3
  1. C=ceil⁡(7.3)+0=8

Ceiling ⌈x⌉ 8

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What is the ceiling of 7.3?

8. Rounded up to a multiple of 0.5 it is 7.5.

What is the ceiling of −2.4?

−2, while its floor is −3.

What is the ceiling of a whole number?

The number itself: ⌈5⌉ = 5.

Related calculators