Reconstructing uncompressed sample storage
Raw sample storage is a product of three counts: how many sample times, how many channels, and how many bits per value. This guide builds the figure from a short stream, converts bits to bytes last, and scales the same steps to larger recordings.
Three factors, one product
Fixed-width uncompressed data has a simple structure. At each sample time the device records one value per channel, and each value occupies the same number of bits. The total number of bits is therefore the number of sample times, times the number of channels, times the bits per value. Nothing else enters this subtotal. There is no frequency to guess and no duration to convert if you already have the count of sample times, which is what many data loggers and software tools report directly. This guide uses a hypothetical stream of 1,000 sample times with two channels and 16 bits per value. It is an abstract example, with no format or device in mind, and it is meant to show the order of operations that the basic calculator and the data converter carry out.
Counting values before counting bits
The first multiplication gives the number of stored values: 1,000 sample times times 2 channels is 2,000 values. Treating this as its own step helps because the number of values is a quantity people check independently. A file with a known row count and column count should hold that many numbers. The basic calculator returns 2,000 for 1,000 multiplied by 2. A common slip at this stage is to forget a channel or to count a time stamp column as data. If the stream carries a time value alongside the samples, it is a separate stored field with its own width, and it must be added to the total on its own terms. The worksheet leaves such extras out and models only the sample values.
From values to bits
Next multiply the number of values by the bits per value. The 2,000 values at 16 bits each give 32,000 bits. The basic calculator confirms this with 2,000 times 16. Sixteen bits per value is a common width for integer samples, but any fixed width works the same way: 8 bits would give 16,000 bits for the same 2,000 values, and 24 bits would give 48,000. Because the bit depth applies to every channel value in this model, a stream where channels differ in width needs one product per group of channels, added together. The worksheet assumes one width throughout. Keeping the bit count as a separate result is useful, since the choice of byte or other storage unit comes afterward and changes only the final conversion.
Converting bits to bytes
A byte is 8 bits, so the final step divides the bit count by 8. The data converter performs this when asked to convert 32,000 from bit to byte, and it returns 4,000. The conversion is exact for any bit count that is a multiple of 8, which is the case whenever the bits per value are a multiple of 8. If the width is not a multiple of 8, as with 12-bit samples, the bit total may not divide evenly, and the stored size depends on how the format packs the values. Converting last has a benefit. If a mistake in the width is discovered later, only the bit product has to be redone, and the unit conversion stays the same. The final 4,000 bytes can then be restated in larger units as needed.
Scaling up with a sampling rate
Sample counts often come from a rate multiplied by a duration. Illustrative numbers: a two-channel stream at 48,000 sample times per second has 96,000 values per second. At 16 bits each, that is 1,536,000 bits per second. Converting from bit to byte gives 192,000 bytes per second. The same chain of multiplications and one conversion applies, only with larger inputs. For ten seconds the total would be 1,920,000 bytes. Notice that the rate enters as sample times per second, so it plays the part of the count in the original example. If a device reports a rate per channel, the channels multiply it, and if it reports an aggregate rate across channels, the channel count is already included. Reading the device specification carefully avoids double counting.
A data-acquisition case with many channels
Consider an illustrative logger that records 8 channels at 1,000 sample times per second with 16 bits per value for one hour. One hour is 3,600 seconds, so there are 3,600,000 sample times. Multiplying by 8 channels gives 28,800,000 values. At 16 bits each the total is 460,800,000 bits, and converting to bytes yields 57,600,000. In larger units that is 57.6 megabytes using decimal prefixes. The same recording at 24 bits per value would take 86.4 megabytes, a 50 percent increase, which is simply the ratio 24 to 16. Working through the chain this way shows which input drives the size. Doubling the channels doubles the total, as does doubling the rate, while the bit depth scales it in proportion to its value.
Padding and container width
Bit depth in a format name is not always the width of the stored container. Some systems store a 12-bit sample in a 16-bit field, leaving the extra bits empty, and some store 24-bit samples in 32-bit containers. The raw payload then follows the container width, not the nominal depth. For storage planning, use the bits that are actually written per value. The example in this guide uses 16 bits as both the sample depth and the stored width. If your format pads or packs, apply the product with the stored width, and say so when you report the result. Reconciling a computed size with a real file often comes down to this one assumption, which is why it deserves a line in your notes. A quick way to catch the mismatch is to divide the byte total of a real file by the number of frames you expect. A result of 2 bytes per value points to 16-bit storage, 3 points to packed 24-bit and 4 points to a 32-bit container, whatever the label in the software says.
Bytes per sample frame
Another way to organize the arithmetic is to compute the size of one frame, meaning one sample time across all channels. Two channels at 16 bits each make a frame of 32 bits, which is 4 bytes. The stream of 1,000 sample times then holds 1,000 frames of 4 bytes, or 4,000 bytes, the same answer as before. Frame size is a handy constant because it does not change with duration: every additional sample time adds exactly one frame. It also exposes mistakes quickly. If a computed total is not an exact multiple of the frame size, something is off, such as a partial frame at the end of a file or a wrong channel count. Format documentation often states a frame size explicitly, sometimes under the name block alignment.
Bits, bytes and network rates
Mixing bits and bytes is the most common source of an eightfold error. A width of 16 bits is 2 bytes, and a rate quoted in megabits per second is not a rate in megabytes per second. A link rated at 100 megabits per second can carry at most 12.5 megabytes per second, since 100 divided by 8 is 12.5, before any protocol overhead. Lowercase b conventionally stands for bit and uppercase B for byte, though labels are not always consistent, so read the unit name itself when it matters. In this guide the conversion happens exactly once, at the end, from bits to bytes, using the data converter. Keeping that single conversion visible makes it easy to find if a total looks eight times too large or too small.
Working backward from a byte budget
Often the question runs the other way: how many sample times fit into a given amount of storage? Take an illustrative budget of 1,000,000 bytes. Converting to bits gives 8,000,000. Dividing by 16 bits per value yields 500,000 values, and dividing by 2 channels yields 250,000 sample times. Check by running the forward calculation: 250,000 times 2 times 16 is 8,000,000 bits, which is 1,000,000 bytes. Because the budget may not divide evenly, round the final count down to whole frames, since a partial frame holds no complete sample. Remember also that headers, metadata and file system overhead take some of the budget, so the usable number of sample times is somewhat lower than the raw payload calculation suggests.
Why a file is larger than the payload
The subtotal describes sample values only. Real files wrap those values in headers that describe the format, may add metadata such as time stamps or channel names, and may align data to block boundaries. Storage systems also allocate space in blocks, so a small file occupies more disk space than its byte count. Compression, when used, changes the size in a way that depends on the data. The worksheet makes no claim about any specific file format, and the 4,000 bytes in the default case are the payload of an unwrapped stream. The payload still serves as a baseline: a file much smaller than the baseline is probably compressed, and a file slightly larger is likely carrying overhead.
Decimal and binary multiples
Large byte totals are often restated in kilobytes, megabytes or gigabytes, and two systems of prefixes are in use. Decimal prefixes use powers of 1,000, so 57,600,000 bytes is 57.6 megabytes. Binary prefixes, which use powers of 1,024 and are written kibibyte, mebibyte and gibibyte, give about 54.9 mebibytes for the same count, since 57,600,000 divided by 1,048,576 is roughly 54.93. The IEC introduced the binary names to remove the ambiguity. Whenever you quote a size, state which convention you used. The byte count itself is unambiguous, which is why the worksheet keeps the byte total as the primary result and treats any larger unit as a presentation step. Rounding should happen only at this last presentation step. If you round the bit total or the byte total early, a later conversion inherits the error, and a long recording can end up off by a visible amount.
Reproduce the checks
Values across channels
Open the Basic calculator and enter:
- First number
1000- Operation
multiply- Second number
2
Expected output:
Result
2000Count each channel at every sample time.
Raw bit total
Open the Basic calculator and enter:
- First number
2000- Operation
multiply- Second number
16
Expected output:
Result
32000The supplied bit depth applies to each channel value.
Raw byte total
Open the Data size converter and enter:
- Value
32000- From
bit- To
byte
Expected output:
Converted value
4000Convert the stated bit quantity to byte before using it in the comparison.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- NIST: NIST Guide to the SI: conversion factors ↗ · 2026-10-07