How many bytes does a picture need if nothing is compressed? An uncompressed image stores a fixed number of bits for every pixel, so its size is width × height × bits per pixel ÷ 8. A 1920 × 1080 image at 24 bits per pixel comes to exactly 6,220,800 bytes, about 6.22 MB.
This guide walks through that calculation one step at a time, converts the result into decimal and binary units, shows how the answer changes with bit depth, and scales it up to a whole photo library. The result is a baseline: the number every compressed version is measured against.
The four ingredients of the formula
| Part | What it is | Where it comes from |
|---|---|---|
| Width | Pixels across | The image dimensions |
| Height | Pixels down | The image dimensions |
| Bits per pixel | Total bits stored for each pixel | Bits per channel times the number of channels |
| ÷ 8 | Converts bits to bytes | One byte is 8 bits |
The bits-per-pixel part is the one that trips people up. The federal digitization guide explains that a color image with 8 bits per channel is often called a 24-bit image, because 8 bits times 3 channels is 24. The PNG specification gives the allowed depths per color type: truecolor uses 8 or 16 bits per sample, so a pixel takes 24 or 48 bits. Color depth explained covers the counting rules in detail.
The result describes the pixel data only. A real file adds a header and metadata around it. Uncompressed raster files exist on the web: the most common form of the BMP format stores an uncompressed raster image, and the format guide notes this gives large file sizes compared with PNG or JPEG.
Worked example: 1920 × 1080 at 24 bits, step by step
Worked example. Example: one 1920 × 1080 image with 8 bits for each of red, green and blue.
- Pixels: 1,920 × 1,080 = 2,073,600.
- Bits per pixel: 8 × 3 = 24.
- Total bits: 2,073,600 × 24 = 49,766,400 bits.
- Bytes: 49,766,400 ÷ 8 = 6,220,800 bytes.
- Decimal units (powers of 1,000): 6,220,800 bytes = 6,220.8 KB = 6.2208 MB.
- Binary units (powers of 1,024): 6,220,800 ÷ 1,024 = 6,075 KiB, and 6,075 ÷ 1,024 = 5.93 MiB.
Check the result with the image file size calculator: it multiplies the same numbers and also reports 2.0736 megapixels. Both unit families describe the same 6,220,800 bytes. NIST defines the SI prefix mega as 10^6 and the binary prefix mebi as 2^20, so MB and MiB differ by about 4.9% at this scale. The article on GB vs. GiB explains the two unit families.
Size scales with area, not with width alone. Example: a 3840 × 2160 image has 8,294,400 pixels, exactly four times the 2,073,600 of 1920 × 1080, so its raw size at 24 bits is 4 × 6,220,800 = 24,883,200 bytes.
The same pixels at different depths
Bits per pixel is the only input that changes below. Example: a 4000 × 3000 image, which has 12,000,000 pixels.
| Bits per pixel | Calculation | Bytes | Decimal | Binary |
|---|---|---|---|---|
| 8 (grayscale or palette) | 12,000,000 × 8 ÷ 8 | 12,000,000 | 12 MB | 11.44 MiB |
| 24 (RGB) | 12,000,000 × 24 ÷ 8 | 36,000,000 | 36 MB | 34.33 MiB |
| 32 (RGB plus alpha) | 12,000,000 × 32 ÷ 8 | 48,000,000 | 48 MB | 45.78 MiB |
| 48 (RGB, 16 bits per channel) | 12,000,000 × 48 ÷ 8 | 72,000,000 | 72 MB | 68.66 MiB |
A shortcut helps at 24 bits: the size in MB equals the megapixels times 3, as in 12 MP × 3 = 36 MB. You can compute megapixels from any dimensions with the steps in what is a megapixel.
Scaling up to a library
Raw sizes add up linearly. Example: 100 images of 4000 × 3000 at 24 bits, each 36,000,000 bytes.
- 100 × 36,000,000 = 3,600,000,000 bytes, which is 3.6 GB in decimal units or 3.35 GiB in binary units.
- 1,000 such images need 36,000,000,000 bytes: 36 GB decimal, or 33.53 GiB binary.
Pictures saved as JPEG, PNG and similar formats are compressed, so these figures are a baseline for the pixel data, not a prediction of the file sizes. Planning storage for photo, music and video libraries turns this kind of estimate into a plan.
The formula also runs backward. Example: a budget of 10,000,000 bytes of raw 24-bit pixel data holds 10,000,000 × 8 ÷ 24 = 3,333,333 pixels, about 3.33 MP. That is more than the 2.0736 MP of a 1920 × 1080 image and less than the 12 MP of a 4000 × 3000 image.
From raw size to a saved file
A saved JPEG or PNG is compressed, so it can be far smaller than the raw figure, and the compression ratio tells you by how much: ratio = original size ÷ compressed size.
Example: suppose the 4000 × 3000 image above is saved as a 3,000,000-byte file. This size is assumed for the exercise. The ratio is 36,000,000 ÷ 3,000,000 = 12, written 12:1, and the space saved is 33,000,000 bytes, or 91.7%. The compression ratio calculator does the same arithmetic for your own pair of sizes.
The JPEG standard states that the amount of compression depends on the characteristics of the particular image and on the quality asked of the encoder. Two images with identical dimensions have identical raw sizes but can produce very different saved files. The raw figure is predictable, and the saved file is not.
The two kinds of format also differ in what comes back. A lossless format such as PNG decodes to exactly the 36,000,000 bytes of pixel data that went in, while a lossy format such as JPEG decodes to a close approximation of them. Either way the decoded picture has the same width and height, which is why the raw size makes a useful reference point. JPEG vs. PNG shows how the two common formats differ.
Common mistakes
- Forgetting to divide by 8. Without the division you get bits, not bytes. For the example above that is 49,766,400, eight times too large.
- Mixing MB and MiB. 6,220,800 bytes is 6.22 MB but 5.93 MiB. Keep one unit family through the whole calculation.
- Using the wrong bits per pixel. Counting 8 bits for an RGB image gives one third of the real figure. Count channels as well as bits per channel.
- Forgetting the alpha channel. An extra 8-bit transparency channel adds a third to the raw size of a 24-bit image.
- Putting pixels per inch in the formula. Print density does not change the pixel count, so it does not change the raw size.
- Expecting a file on disk to match the formula. A saved file is compressed and also carries headers and metadata, so it rarely matches the formula.
FAQ
How big is a 1920 × 1080 image uncompressed?
At 24 bits per pixel it is 6,220,800 bytes, about 6.22 MB or 5.93 MiB.
How do I find the uncompressed size of any image?
Multiply the width by the height, multiply by the bits per pixel, then divide by 8. The result is in bytes.
Why is my photo file so much smaller than the formula result?
Because the file is compressed. The formula gives the size of the raw pixel data, and JPEG and PNG store the picture with compression, so the file can be far smaller.
Does the number of colors change the raw size?
Only through the bits per pixel. A format that stores 8 bits per pixel through a palette takes about one third of the space of 24-bit RGB before compression.
Sources
- W3C, Portable Network Graphics (PNG) Specification (Third Edition). Accessed November 6, 2026.
- Federal Agencies Digital Guidelines Initiative (FADGI), Technical Guidelines for Digitizing Cultural Heritage Materials: Third Edition. Accessed November 6, 2026.
- Mozilla (MDN Web Docs), Image file type and format guide. Accessed November 6, 2026.
- NIST, Definitions of the SI units: The binary prefixes. Accessed November 6, 2026.
- NIST, Metric (SI) Prefixes. Accessed November 6, 2026.
- ITU-T, Information technology - Digital compression and coding of continuous-tone still images - Requirements and guidelines (Recommendation T.81). Accessed November 6, 2026.



