By Ahsan Khowaja (CEO) · Updated 10 November 2026
On this page
- How to use the image size calculator
- How to calculate image size from pixels
- Image file size calculator: compressed estimates
- Image size calculator in pixels: scaling an image
- Pixel size calculator: from pixels to physical size
- Why the stored file is smaller than width × height × 3
- Questions and answers
- Related calculators
How to use the image size calculator
- Choose File size of an image from its pixels or New pixel size when scaling an image.
- Enter the width and height in pixels. Windows lists them under Properties › Details, a Mac in Preview's inspector, and a phone in the photo's info panel. If you only know the megapixels, the megapixel calculator lists common camera and screen sizes.
- For a file size, pick the color depth: 24-bit (3 bytes per pixel) for JPEGs and ordinary PNGs, 32-bit (4 bytes) for PNGs with transparency, 8-bit for greyscale, and 48- or 64-bit for 16-bit-per-channel files.
- For scaling, enter a percentage. 50% halves both sides and 200% doubles them.
Results are in decimal units, where 1 MB = 1,000,000 bytes. Windows counts in binary units (1 MiB = 1,048,576 bytes) and still labels them "MB", so the "as a computer may show it" row gives that reading as well.
How to calculate image size from pixels
An uncompressed image stores a fixed number of bytes for every pixel, so the sum is short:
Uncompressed size (bytes) = width × height × bytes per pixel
The bytes per pixel come from the color depth. 24-bit color uses 8 bits (1 byte) each for red, green and blue, which makes 3 bytes. 32-bit adds an 8-bit alpha channel for transparency, which makes 4. To calculate image size in megabytes, divide the bytes by 1,000,000. MDN's image file type guide explains color depth for each format.
| Color depth | Channels | Bytes per pixel | Where you meet it |
|---|---|---|---|
| 1-bit | black or white | 1/8 | Fax, scanned text |
| 8-bit | greyscale, or 256 indexed colors | 1 | GIF, PNG-8, greyscale scans |
| 16-bit | greyscale | 2 | Medical and scientific images |
| 24-bit | RGB, 8 bits each | 3 | JPEG, PNG-24, most photos |
| 32-bit | RGB + alpha | 4 | PNG with transparency, app icons, screen buffers |
| 48-bit | RGB, 16 bits each | 6 | 16-bit TIFF, high-end editing |
| 64-bit | RGBA, 16 bits each | 8 | 16-bit layered editing files |
Worked examples
| Image | Sum | Uncompressed size |
|---|---|---|
| 1920 × 1080 (Full HD), 24-bit | 2,073,600 pixels × 3 | 6,220,800 bytes: 6.22 MB, or 5.93 MiB |
| Same frame, 32-bit (with transparency) | 2,073,600 × 4 | 8.29 MB |
| 4032 × 3024 (12 MP phone photo), 24-bit | 12,192,768 × 3 | 36,578,304 bytes: 36.58 MB |
| 1000 × 1000 square PNG with transparency, 32-bit | 1,000,000 × 4 | 4 MB |
| 6000 × 4000 (24 MP), 48-bit | 24,000,000 × 6 | 144,000,000 bytes: 144 MB |
| 800 × 600 greyscale, 8-bit | 480,000 × 1 | 480 kB |
That 144 MB row is why 16-bit TIFFs from a camera are so large. Doubling both sides gives four times the pixels, and four times the size.
Choose 32-bit only if the picture needs transparency. Otherwise you pay a third more for an alpha channel that holds nothing.
This uncompressed figure is exact. It's what the picture takes in memory while it's open, and what a BMP or an uncompressed TIFF would take on disk. Photoshop reports the same number: for a flattened 8-bit RGB image, the "Image Size" line in the Image › Image Size dialog is width × height × 3 bytes, shown in binary megabytes, so a 1920 × 1080 document reads 5.93M. Want an image size calculator Photoshop agrees with? Compare that row.
Image file size calculator: compressed estimates
A file you store is almost always compressed, and much smaller than the figure above. How much smaller depends on the picture, so the calculator can only estimate. It gives two estimates, each with its assumption in the label.
For JPEG it assumes 10:1. JPEG throws away detail the eye doesn't notice, and photographs usually shrink 10:1 or more. Our own sample files show how wide the spread is. A 3024 × 2016 portrait (18.29 MB uncompressed) is 1,645,283 bytes as a JPEG, about 11:1. A 3000 × 2000 flower photo (18 MB uncompressed) is 984,536 bytes, about 18:1. A 4032 × 2623 landscape with large smooth areas (31.73 MB uncompressed) is 389,561 bytes, more than 80:1. Same format, same camera class, a sevenfold difference. So treat 10:1 as a conservative, upper-end estimate for a photo at a high quality setting.
For PNG it assumes 2:1. PNG is lossless, so it can only remove repetition, and photos have little of that. Our 1366 × 900 screenshot (3.69 MB uncompressed) is 2,375,634 bytes as a PNG, about 1.55:1. Photos saved as PNG barely shrink at all. Flat graphics with few colors, such as logos and diagrams, are the opposite case and can shrink 10:1 or better.
Read both as order-of-magnitude answers, because the scene, the quality setting and the encoder all move the real size. If a form or site sets a hard limit, don't trust any estimate: compress the actual file and read the actual number. Our image compressor shows the before and after size in the browser, and the reduce image size in KB tool hits a set target such as 100 KB or 200 KB. The guide to how image compression works explains where the savings come from.
Some sites give you no number to aim for. Reddit's help center doesn't publish one table of image file-size limits or accepted formats, so the safest choice there is a JPG, PNG or GIF. Our guide to posting images on Reddit covers the rest.
Image size calculator in pixels: scaling an image
The second mode is an image dimensions calculator for resizing by a percentage:
New width = width × scale ÷ 100 and New height = height × scale ÷ 100, both rounded to whole pixels.
The pixel count changes by the square of the scale, which catches people out. Scaling to 50% leaves a quarter of the pixels, and 25% leaves one sixteenth.
- A 4032 × 3024 photo at 25% becomes 1008 × 756 px. That is 6.25% of the original pixels, and 2.29 MB uncompressed instead of 36.58 MB.
- A 1920 × 1080 frame at 50% becomes 960 × 540 px, 25% of the pixels.
- A 1200 × 800 image at 150% becomes 1800 × 1200 px. Enlarging adds pixels but no detail, so the result looks softer.
If you need a smaller copy, scale down from the original, not from a copy you already shrank, because every JPEG save loses a little more detail. And don't scale up to rescue a small photo. It won't get sharper, only bigger, unless you use a tool built to invent detail, which isn't the same picture any more.
If you have a target width or height instead of a percentage, the aspect ratio calculator works as an image ratio calculator and finds the matching other side. Neither page changes your file. Our image resizer does that in the browser, and the guide to image resolution explains what the pixel count means for sharpness.
Pixel size calculator: from pixels to physical size
Pixels have no physical size until you print or display them. One 1920 × 1080 image is 6.4 × 3.6 inches at 300 DPI and 26.67 × 15 inches at 72 DPI. A pixel size calculator is one division: inches = pixels ÷ DPI. The pixels to inches converter and the DPI calculator do it for you, and the print size calculator tells you how large a print your pixel count supports.
Why the stored file is smaller than width × height × 3
Compression does most of it: a 12 MP JPEG is typically 2–5 MB, not 36 MB. Before compression even starts, most JPEGs also store the two color channels at quarter resolution (4:2:0), which halves the raw data. Metadata adds a little back. EXIF data, embedded thumbnails and color profiles can add tens of kilobytes, and our EXIF remover strips them, though on a 3 MB photo that saving is small.
Some files go the other way. A 16-bit TIFF stores 6 bytes per pixel, a layered editing file stores every layer, and a RAW file stores the sensor data at 12 or 14 bits per pixel before any color processing. The photo storage calculator uses typical stored sizes to work out how many photos fit on a card.
