Frequently Asked Questions
Are the TB figures decimal or binary units?
It uses decimal units. Ingress is bytes per second divided by a million to give MB/s, daily volume is divided by a further thousand for GB, and the total is divided by a thousand again for TB. The 1024 in the default is the message size in bytes, not a unit conversion. Disk vendors also sell in decimal TB, so the figures compare directly.
How many brokers do I need for 53.42 TB?
The calculator does not decide that. Divide the cluster total by the usable disk per broker you plan to buy, after your free-space target. Then check that the result also works for network, partition count and the loss of one broker. Storage alone often allows fewer brokers than throughput or fault tolerance would accept.
Should I enter the compressed or uncompressed message size?
The compressed size, as stored on disk. The field is labelled compressed payload and the engine applies no compression itself. If you only know the uncompressed size, produce a sample batch with your real compression codec and measure the stored size, or read it from an existing topic: bytes on disk for one replica divided by records retained.
Why is replication traffic only twice the ingress with three replicas?
The leader already received the first copy from the producer. Only the followers need to fetch data from the leader, and with a replication factor of 3 there are two followers. That is why the default shows 51.2 MB/s, which is 25.6 MB/s times two. With RF 2 it would match ingress, and with RF 1 it is zero.
Does the result include consumer read traffic?
No. Neither network line counts consumers. Each consumer group reading the whole stream adds roughly the ingress rate in egress, so three groups at the default add about 76.8 MB/s. Consumers that lag behind may also read from disk instead of memory, which adds disk read load the calculator does not estimate.
Does this work for Redpanda or other Kafka-compatible brokers?
The core arithmetic does, because every log-based broker stores roughly bytes times retention times replicas. The fixed 15% overhead may not match a different storage engine, and features such as tiered storage move older data off local disk. Compare the estimate with a measured cluster if you can, and adjust the overhead accordingly.
What if my topics have different retention settings?
Run the calculator once per group of topics with the same retention and replication, using that group's message rate and size, then add the totals. A single blended retention figure can mislead badly when one large topic keeps data for weeks and many small ones keep it for hours.
Why does the page show an error when I enter a replication factor of 2.5?
Replicas are whole copies of a partition, so the field only accepts whole numbers of 1 or more. Message rate, payload bytes and retention must also be above zero. Retention is the one input where a fraction makes sense, so half a day is accepted while half a replica is not. Fix the flagged value and the result returns.
Can I enter retention in hours?
Enter it as a fraction of a day. Twelve hours is 0.5 days and six hours is 0.25 days. The engine multiplies by the value you type, so fractional days work exactly. One full day at the default traffic needs 7.63 TB, and twelve hours needs 3.82 TB across the cluster, exactly half.
How much headroom should I add on top of the result?
That is an operational choice the calculator leaves to you. Consider space to absorb a failed broker's partitions, room for reassignments, expected growth over the hardware's life and your alerting threshold. Express it as a maximum fill percentage and divide the per-broker figure by it to get the disk to buy.
Why does doubling the message rate exactly double the disk figure?
Every input in the storage formula is a plain multiplier, with no fixed costs or thresholds. Message rate, payload size, retention days and replication factor each scale the result in direct proportion. That is why the lower preset at 15,000 messages per second gives 32.05 TB, which is three fifths of the default 53.42 TB, matching three fifths of the traffic.
Tracing 25,000 messages a second to 53.42 TB of disk
The default describes a fairly busy topic set: 25,000 messages per second, each averaging 1024 bytes after compression, kept for 7 days with a replication factor of 3.
Multiply the first two and you get 25.6 million bytes per second. The calculator uses decimal units throughout, so that is 25.6 MB/s of producer ingress. Over a day, with 86,400 seconds in it, the leaders take in 2,211.84 GB. That is the "Daily Primary Data Volume (1x)" line, meaning one copy of the data before replication.
Seven days of retention gives roughly 15.5 TB of primary data. Three replicas triple it to about 46.4 TB. The engine then adds a fixed 15% for segment overhead, which brings the cluster total to 53.42 TB. Written as one formula: msg/s x bytes x 86,400 x retention days x replication factor x 1.15, divided by a trillion to get TB.
Every input is a straight multiplier. Double any one of them and the disk figure doubles. That is useful, because it means you can scale the answer in your head when someone asks what happens if traffic grows by half: the higher preset at 37,500 messages per second lands at 80.12 TB, exactly one and a half times the default.
Dividing the cluster total across brokers
The result is a cluster-wide number. There is no broker count field, so the calculator never tells you how much disk each machine needs. You do that step yourself.
Divide 53.42 TB by the number of brokers. With six brokers it is about 8.9 TB each. With nine it is about 5.9 TB. This assumes partitions and leaders are spread evenly, which is rarely perfect. Hot partitions, uneven key distribution or a recent broker addition that has not been rebalanced all leave some brokers fuller than others.
Then decide how full you are willing to let a disk get. The 15% in the engine is a segment and index allowance, not a free-space target. Operators usually want room for a broker to absorb partitions from a failed peer, for a reassignment in progress, and for a traffic spike that arrives before retention catches up. If your rule is to keep disks no more than 70% full, divide the per-broker figure by 0.7. On six brokers that turns 8.9 TB into about 12.7 TB of raw disk per machine.
Remember that losing a broker moves its share onto the others. With six brokers, the remaining five must hold the same data, so each one rises by a fifth until the failed node returns or is replaced.
What the payload byte field should contain
The field is labelled average compressed payload bytes, and the engine applies no compression of its own. Enter the size of a message as it sits on the broker, after the producer has compressed its batches.
This is the most common way to get the answer badly wrong. If you enter the size of the JSON object your application builds, before compression, the result can be several times too high. If you enter only the value and forget the key and headers, it can be too low. Kafka also stores per-record and per-batch framing, which is small for large messages and proportionally larger for tiny ones.
The most reliable figure comes from an existing topic: total bytes on disk for one replica divided by the number of records retained. If you do not have a topic yet, produce a realistic sample with your real compression setting and measure it.
Halving the payload halves the disk. At half the default message size the cluster total drops to 26.71 TB, and at a quarter of it to 13.35 TB. Compression and smaller schemas are often cheaper ways to save storage than buying disks.
Retention days and replication factor
Retention is the input most teams can actually negotiate. One day of retention at the default traffic needs 7.63 TB across the cluster. Three days needs 22.89 TB. Seven days is the default 53.42 TB, and fourteen days roughly doubles it again.
Ask what the retention is for. If consumers only need to survive a weekend outage, three days may be plenty. If the topic is the system of record and new services replay it from the start, time-based retention may not be the right model at all, and tiered storage or compacted topics change the maths in ways this page does not attempt.
Replication factor works the same way. RF 3 is common because it tolerates the loss of a broker while still keeping two in-sync copies. RF 2 gives 35.61 TB for the default and RF 1 gives 17.81 TB, but RF 1 means a single disk failure loses data. Lowering replication to save disk is rarely a good trade for anything except scratch topics.
The replication factor has to be a whole number of 1 or more. A zero, a negative value or something like 2.5 returns an input error instead of a result, since a partition cannot have half a replica. The same check applies to message rate, payload size and retention, which must all be above zero.
The two network lines and what is missing between them
Producer ingress is the 25.6 MB/s arriving at partition leaders. Broker replication traffic is ingress times one less than the replication factor, because each follower fetches a copy from the leader. With RF 3 that is 51.2 MB/s moving between brokers.
Neither line includes consumers. Every consumer group that reads the full stream pulls another 25.6 MB/s out of the cluster. Three consumer groups add about 76.8 MB/s of egress on top of the replication traffic. If consumers fall behind and read from disk rather than the page cache, that egress also becomes disk read load.
Convert to network units before comparing with a NIC. MB/s here means megabytes, so 25.6 MB/s is roughly 0.2 Gbit/s in bits. Add ingress, replication and consumer egress per broker, then divide by the broker count, to see whether a link is anywhere near busy.
The lines are averages. Traffic that peaks at three times the daily average during business hours needs network capacity for the peak, even though disk only cares about the daily total.
Average rate versus peak rate when sizing disk
Disk usage depends on how many bytes are retained, which is the average rate over the retention window. Network and request handling depend on the peak. Mixing the two is a frequent sizing error.
If your monitoring shows 25,000 messages per second as a busy-hour peak, the true daily average may be well below that, and the disk figure of 53.42 TB overstates what you need. If 25,000 is the daily average, the peak could be far higher, and the network lines understate what the brokers will see at the busiest minute.
The safest approach is to run the calculator twice. Use the average rate for storage and the peak rate for bandwidth, and note which is which in the capacity plan.
Growth belongs in the storage figure. If traffic is expected to rise by half within a year, size with the higher preset of 37,500 messages per second, which needs 80.12 TB, rather than buying disk twice.
A worked capacity plan from the lower preset
Take the lower preset as a smaller team's starting point: 15,000 messages per second at 1024 bytes, 7 days, RF 3. The calculator gives 15.36 MB/s of ingress, 1,327.1 GB per day of primary data and 32.05 TB across the cluster, with 30.72 MB/s of replication traffic.
Suppose the plan is three brokers, the minimum that still keeps RF 3 with one copy per machine. Each broker holds about 10.7 TB. Now think about losing one broker. Kafka will not place two replicas of one partition on the same broker, so the two survivors cannot rebuild the third copy. A three-broker RF 3 cluster simply runs under-replicated until the failed node comes back or is replaced, and the disk on the survivors does not grow, but neither does your safety margin. That is a reason many teams start at more brokers than the disk maths alone suggests.
Now apply a fill target. If disks should stay below 70% full, 10.7 TB becomes about 15.3 TB of raw disk per broker. Add a year of growth, say a rise to the default 25,000 messages per second, and the per-broker figure on three brokers becomes 53.42 TB divided by three, about 17.8 TB, before the fill target is applied.
Writing the plan out like this, with each assumption on its own line, makes it easy for a reviewer to challenge the right number. Usually the argument is about retention days or the payload size, not the arithmetic.
Checking the 15% overhead against your own brokers
The 1.15 multiplier is fixed in the engine and is described as segment overhead. It is a reasonable placeholder for index files, the active segment that has not yet rolled, and the delay between a segment expiring and being deleted.
Real overhead depends on segment size and on how retention is enforced. Kafka deletes whole segments, so a partition can hold data slightly older than the retention setting until its oldest segment fully expires. Low-traffic partitions with large segments can hold noticeably more than the nominal window. High-traffic partitions roll segments quickly and stay close to it.
If you run an existing cluster, compare its measured disk use with this calculator using the same inputs. If the real figure is higher, scale the answer by the ratio you observe rather than trusting 15%.
Compacted topics follow different rules entirely. Their size depends on the number of distinct keys, not on time, so do not run them through this calculator.