Ceiling calculator

Type an x. Ceiling is the least integer that is not smaller than x. ⌈3.2⌉ = 4. ⌈−1.2⌉ = −1. ⌈5⌉ = 5.

The calculator rounds x up to the next integer. Negatives go toward +∞: −1.2 gives −1, not −2. A whole x stays itself.

Input data

Results

Enter data and click Calculate.

How it works

Ceiling (round up) is the least integer that is not smaller than x. School writes ⌈3.2⌉ = 4, because 4 is the first integer above 3.2. The calculator rounds up and shows 4.

A negative x does not run further into minus. Ceil walks toward +∞. ⌈−1.2⌉ = −1, because −1 is larger than −1.2 and −2 is smaller. Floor of that same −1.2 is −2.

The field is x. A comma and a dot are the same decimal. 3.2 and 3,2 both give 4. Whole 5 stays 5.

Floor goes the other way. Rounding to n places keeps a fraction. Here the result is always an integer.

The fractional part is not ceil. Absolute value drops the sign. Here you stay with ceil alone.

⌈3.2⌉ = 4. ⌈−1.2⌉ = −1. ⌈5⌉ = 5. 0.1 gives 1. −0.1 gives 0.

Formula

⌈x⌉ = Math.ceil(x)

How to use

  1. Type x, for example 3.2.
  2. Click Calculate. Ceiling gives 4.
  3. −1.2 gives −1, not −2. Ceil goes toward +∞.
  4. 5 stays 5. A whole number does not change.
  5. Floor of the same x lives on the neighbouring card.

⌈3.2⌉ = 4

Ceil is the least integer ≥ x. ⌈3.2⌉ = 4. ⌈−1.2⌉ = −1. ⌈5⌉ = 5. Negatives go toward +∞.

ceil
Ceiling on the page. 3.2 gives 4. −1.2 gives −1. 5 stays 5.
round
Toward +∞, not “away from zero”. −1.2 goes to −1, not to −2.
integer
The result has no fraction. 3.2 jumps to 4. 5 stays 5.

Examples

Example 1

  • x = 3.2

4

What is ⌈3.2⌉? 4. The first integer above 3.2.

Example 2

  • x = -1.2

-1

What is ⌈−1.2⌉? −1, not −2. Ceil goes toward plus infinity.

Example 3

  • x = 5

5

What is ⌈5⌉? 5. A whole number stays itself.

Related calculators

Common questions

What is ⌈3.2⌉?

4. The least integer that is not smaller than 3.2.

What does ceiling (round up) mean?

The least integer ≥ x. The calculator rounds x up to the next integer.

What is ⌈−1.2⌉?

−1, not −2. Ceil goes toward +∞. −2 is already smaller than −1.2.

What is ⌈5⌉?

5. When x is already an integer, the result is that same x.

Does a negative x work?

Yes. −0.1 gives 0. −3 gives −3.

How is ceil different from floor?

Ceil steps toward +∞. Floor steps toward −∞. For −1.2, ceil is −1 and floor is −2.

Does a comma in 3.2 work?

Yes. 3.2 and 3,2 both give 4.

Does 0.1 give 1?

Yes. 1 is the first integer above 0.1.

Where is floor?

On the floor page. Here you stay with ceil alone.

Do header units change ceil?

No. 3.2 stays 4 under every label.

Knowledge sources

The calculator computes the same formula as the definition below.

Page updated in 2026.