Minecraft Comparator Signal Strength Calculator

Plan item sorters, counters and storage alarms from container fullness.

Choose a container and an item stack limit to calculate its comparator output. You can also work backwards from a signal to an item threshold, or enter different stack limits for a mixed inventory.

Calculation direction
Container type
Maximum items per stack

Furnaces and brewing stands restrict which items fit each slot. Use the advanced view for a real mixed inventory; the total-count mode assumes one stack size in every slot.

Comparator output

2 / 15

Filled container command

This command places a container at your position with the minimum items for the selected target strength. It replaces the block there. Works in Java Edition 1.20.5 and later and needs command permission.

Items for each signal strength

Chest · 27 slots · Maximum items per stack: 64
Target signal strengthMinimum item thresholdResulting signal strength
111
21242
32473
43714
54945
66186
77417
88648
99889
101,11110
111,23511
121,35812
131,48213
141,60514
151,72815

An asterisk marks a strength that cannot be produced exactly with the selected stack size. An empty container outputs 0.

Set an item threshold for your circuit

Read the table from left to right: choose a target signal, find the minimum item count, then check the output that count actually produces. The highlighted row follows your current result or selected target.

  1. Choose a container card. Its slot count sets the capacity; a double chest has 54 slots.
  2. Select the item's maximum stack size: 64, 16 or 1. Enter the total item count to read the signal (0–15).
  3. For mixed items, enable the advanced view and enter each slot's count and stack limit. Empty slots still count towards the container's capacity.
  4. Switch to Signal to items to choose a target strength. The table lists the minimum threshold and the actual output for every strength.

two stacks in a chest

A chest has 27 slots. Two full stacks of stone are 128 items and produce signal 2. With a stack limit of 64, signal 2 starts at 124 items; 123 items still give signal 1.

Use that threshold to plan a storage alarm. Leave room for items arriving between the comparator reading the container and your circuit responding.

Read the fullness behind the signal

Each slot contributes its item count divided by that item's stack limit. Add those fractions, then divide by the container's total slot count. An empty container gives 0. Otherwise, multiply fullness by 14, round down to a whole number, and add 1.

Moving the same items between slots does not change the output, as long as the items and their stack limits stay the same. One unstackable item fills a whole slot; one item with a stack limit of 16 fills four times as much space as one with a limit of 64.

Check for skipped signal strengths

The reverse calculation rounds the required item count up to a whole item. Unstackable items can jump over strengths: a hopper with one diamond sword gives 3, and two give 6. An asterisk in the table means the minimum threshold produces a higher signal than the target.

Build around the container’s limits

A furnace has three slots and a brewing stand has five, but their slots accept different items. The calculator measures the inventory you enter; it does not check recipes or slot permissions. Use per-slot stack limits for bottles, fuel and ingredients.

A chest or trapped chest with a solid block or a sitting cat on top gives no comparator signal. A barrel still gives a signal with a solid block or a sitting cat on top.

Comparator subtract mode and signal loss along redstone dust are outside this calculation.

Special block outputs

Cake

Each remaining slice adds 2 signal strength.

Remaining slicesComparator output
714
612
510
48
36
24
12

Composter

The output equals the compost level, from 0 to 8. Level 7 lasts about one second, then the composter turns ready at level 8.

Compost levelComparator output
00
11
22
33
44
55
66
77
88

Empty cauldron

An empty cauldron outputs 0.

Fill levelComparator output
00

Cauldron with water

The output equals the water level, from 1 to 3.

Fill levelComparator output
11
22
33

Cauldron with powder snow

The output equals the powder snow level, from 1 to 3.

Fill levelComparator output
11
22
33

Cauldron with lava

A lava cauldron outputs 3.

Fill levelComparator output
13

Respawn Anchor

Zero to four charges give outputs 0, 3, 7, 11 and 15.

ChargesComparator output
00
13
27
311
415

End Portal Frame

An empty frame outputs 0. A frame with an eye of ender outputs 15.

Eye present: 0 = no, 1 = yesComparator output
00
115

Beehive

The output equals the honey level, from 0 to 5.

Honey levelComparator output
00
11
22
33
44
55

Bee Nest

The output equals the honey level, from 0 to 5.

Honey levelComparator output
00
11
22
33
44
55

Chiseled Bookshelf

The output is the last slot used, from 1 to 6. It is not the number of books.

Last slot used: 0 = noneComparator output
00
11
22
33
44
55
66

Crafter

Each occupied or disabled slot adds 1, up to 9. Count each slot once.

Occupied or disabled slotsComparator output
00
11
22
33
44
55
66
77
88
99

Decorated Pot

An empty pot outputs 0. Stored items use the fullness formula for one slot.

Stored items (stack limit 64)Comparator output
00
11
41
328
6415

Jukebox

The output depends on the inserted music disc. These values come from the built-in song data for Java 26.3.

Music disc IDComparator output
1111
131
515
blocks3
bounce8
cat2
chirp4
creator12
creator_music_box11
far5
lava_chicken9
mall6
mellohi7
otherside14
pigstep13
precipice13
relic14
stal8
strad9
tears10
wait12
ward10

Comparator questions

Why does one item already give signal 1?

The formula adds 1 whenever the container is not empty. In a chest, one stone is enough for signal 1, although it fills only a small fraction of one slot.

Why do 16-stack items count four times as much?

Fullness uses the item's own stack limit. One ender pearl is 1/16 of a slot, while one stone is 1/64. Four stone contribute the same fullness as one ender pearl.

Does a double chest need twice as many items?

For strengths 2–15, doubling the slot count doubles the fullness requirement before rounding. The final whole-item threshold can be one item below twice the single-chest threshold. Both chest sizes need only one item for signal 1.

Can every container produce all 15 strengths?

Not with every stack size. Five unstackable items fill a hopper, so its outputs are 0, 3, 6, 9, 12 and 15. Choose a smaller fullness contribution per item to reach more intermediate strengths.