The formula
Size in bits = width × height × channels × bits per channel
Estimate a tightly packed uncompressed raster size.
Variables and input conventions
width- Image width (pixels)
height- Image height (pixels)
channels- Channels (channels)
depth- Bits per channel (bits)
Understanding the relationship
Every pixel contains the stated channel count, each with a fixed number of bits. Multiply sample count by sample depth, then convert bits to bytes.
Interpreting the result
Dimensions, channels and bit depth are positive integers. The bit product is exact within the supported result range. The model assumes tightly packed samples without row alignment, file headers or compression; it is not a universal camera RAW file-size estimator.
Assumptions and valid inputs
All four inputs positive integers. Excludes headers, row padding, metadata and compression. RGB uses 3 channels; RGBA uses 4. Camera RAW files may use a different sample layout.
Rounding and numerical precision
Conversions, transport, cooking and digital calculations use a private 640-significant-digit decimal context. Numeric inputs accept a decimal point or comma and scientific notation, up to 100 characters, with nonzero magnitude from 10⁻¹⁰⁰ to 10¹⁰⁰. Transport, cooking and digital tools additionally reject computed reference-unit results above 10¹⁰⁰. Integer products and combination counts are exact within that supported range; non-integer divisions may require rounding. This protects arithmetic, not input measurements, charging behaviour, cooking outcomes or network performance. Choose 0–8 decimal places for display and copying. Trailing zeros are omitted; very small values may round to zero. Display rounding does not change the underlying calculation. Finite-precision arithmetic is not symbolic exact arithmetic.
Accuracy of input data
Extra displayed decimals do not improve input accuracy. Measurement uncertainty, product variability and uncertain chosen rates are separate from rounding. This tool does not propagate measurement uncertainty. Check that its stated assumptions describe your situation.
Units and dimensions
Input-unit changes reinterpret the entered number. A compatible result unit follows where possible; choose another output unit to convert the answer. Length, area, volume and mass are distinct dimensions. Fixed compound units printed on a field remain part of its definition.
References for unit conventions, not endorsements of every calculator’s model.