What this Raw File Size Calculator does
The Raw File Size Calculator estimates how much space an image's pixel data would occupy when stored without compression. It multiplies image width by image height to find the number of pixels, then multiplies by the bits used to represent each pixel. Dividing by eight converts bits to bytes, and dividing by one million expresses the estimate in decimal megabytes (MB).
Enter the image's pixel dimensions and its bit depth per pixel. The result is an estimate of the image data alone. It does not inspect a photo or read a camera file. It also does not predict the exact size of a RAW file saved by a camera, because camera formats can include compression, metadata, previews, and format-specific structures.
The calculator's description states its assumptions directly: it estimates uncompressed image data, uses decimal megabytes, and excludes headers, metadata, and compression. This makes the result useful for comparing image dimensions or understanding how bit depth affects data volume. Treat it as a simple model rather than a promise about the size shown in a file manager.
How to use the Raw File Size Calculator
Use the dimensions of the image you want to estimate, rather than the physical size of a print or screen. Width and height should be measured in pixels. For a 6000 by 4000 image, enter 6000 as the width and 4000 as the height. Then enter bits per pixel, based on the representation you want to model.
- Image width: the number of pixels across the image.
- Image height: the number of pixels from top to bottom.
- Bits per pixel: the total number of bits used for one pixel in the model.
For a worked example, use a 6000 × 4000 image at 36 bits per pixel. The formula is 6000 × 4000 × 36 ÷ 8 ÷ 1,000,000. That equals 108 MB of uncompressed pixel data. The displayed result is 108.00 MB. This calculation uses the exact input units and decimal MB convention stated above.
If you are comparing two formats or settings, keep the dimensions the same and change only the bit-depth assumption. If you are comparing image resolutions, use the appropriate width and height for each image. This helps show which input drives the difference.
How the Raw File Size Calculator formula works
The formula is width_pixels × height_pixels × bits_per_pixel ÷ 8 ÷ 1,000,000. Width multiplied by height gives the total pixel count. Multiplying by bits per pixel estimates the total number of bits. There are eight bits in a byte, so division by eight gives bytes. The final division converts bytes to decimal megabytes.
For example, a 24-megapixel image at 24 bits per pixel contains 24,000,000 × 24 bits under this model. Dividing by eight yields 72,000,000 bytes, or 72 MB. Raising the bit depth to 36 bits per pixel while keeping the same pixel count yields 108 MB. The estimate increases in direct proportion to either pixel count or bits per pixel.
Some software and operating systems use mebibytes (MiB), where one MiB equals 1,048,576 bytes, while others label decimal megabytes as MB. This calculator uses decimal MB. As a result, its displayed value may differ slightly from a tool that reports the same byte count using MiB or a different unit convention.
Use cases for the Raw File Size Calculator
A photographer can use the estimate to understand the relative data volume of images from different resolutions or bit-depth settings. It can also help when planning a rough workflow for transferring or temporarily storing uncompressed image data. For instance, doubling the width and height multiplies pixel count by four, so the estimated data volume also becomes four times as large if bit depth stays constant.
The calculation is useful for learning how image properties interact. It can support comparisons such as:
- Estimating the uncompressed data for two image resolutions.
- Seeing how a change in bits per pixel changes the result.
- Comparing still-image dimensions for a photography or scanning workflow.
- Understanding why larger pixel counts call for more data before compression.
Use the estimate as a baseline for pixel data, not as a storage guarantee. Actual camera files may be smaller or larger than a simple uncompressed estimate for reasons the arithmetic does not model.
Other factors to consider when calculating raw file size
The word “RAW” describes camera or sensor data workflows, but camera makers and software can use different encodings. Some cameras compress RAW data, either losslessly or with some data discarded. Other formats store additional information alongside image values. The calculator does not know a camera model, file format, or compression setting, so it cannot reproduce those details.
Bit depth also needs careful interpretation. The input is bits per pixel, meaning the total bits assigned to one pixel in the estimate. A camera specification might instead state bits per channel, such as separate values for red, green, and blue. Multiplying a per-channel number by three may be a reasonable model for a simple RGB image, but camera sensor layouts and RAW encoding can differ. Use a bit-per-pixel value that matches the specific model you intend to estimate.
Other contributors to a saved file can include metadata, embedded previews, thumbnails, and headers. Dimensions may also be cropped or padded during processing. These components are outside the formula. When practical storage capacity matters, check sample files from the camera and settings you plan to use, and allow room for variation.
Frequently asked questions
Does this calculate the exact size of a camera RAW file?
No. It calculates an uncompressed pixel-data estimate from the dimensions and bits per pixel you provide. Compression, metadata, previews, and format-specific data can change the actual file size.
What does bits per pixel mean?
It is the number of bits assigned to each pixel in this model. It is a total per pixel, rather than bits per color channel. Check the specification or workflow you are modeling to choose a suitable value.
Why does my file manager show a different number?
The file contains more than the modeled pixel data, and the camera may compress or encode that data differently. The displayed size can also vary because some systems use decimal MB while others use binary MiB conventions.
How much larger is an image with more pixels?
With bit depth held constant, estimated size changes in direct proportion to pixel count. Doubling just the width doubles the pixel count. Doubling both width and height makes four times as many pixels.
Can I use the estimate to choose a memory card?
It can illustrate how resolution and bit depth affect uncompressed data volume, but it does not predict how many camera files fit on a card. Actual RAW sizes vary with camera, compression, image content, and file structure. Use measured sample file sizes for a dependable capacity estimate.