Megapixels Calculator
Enter the pixel width and height of an image and get its resolution in megapixels — and see how everyday resolutions like 1080p and 4K compare.
Pixels to megapixels
Enter the width and height in pixels and the calculator multiplies them and divides by one million to give the resolution in MP.
Use whole pixels
Width and height must be whole numbers of pixels — there is no such thing as half a pixel in an image's dimensions.
What is a megapixel?
One million pixels
The megapixels calculator turns the pixel dimensions of an image into its resolution in megapixels, where one megapixel is one million pixels. Every digital photo is a grid of tiny coloured squares called pixels, and the total count — the width in pixels multiplied by the height — is what camera makers quote as the megapixel rating. Enter a width and a height and the calculator returns the figure you would see on a spec sheet, the same number behind "12 MP phone camera" or "24 MP full-frame sensor". It is the headline measure of how much detail an image can hold and how large it can be printed or cropped.
Enter the width and height of your image in pixels to get its resolution in megapixels instantly.
Megapixels are the total pixel count divided by one million — multiply the width by the height, then divide by 1,000,000.
MP = (width × height) / 1,000,000Because the formula is just a count of pixels, doubling either dimension doubles the megapixels, and doubling both quadruples them. The result is rounded to two decimals, so resolutions that don't land on a whole million — like 1920 × 1080 — show as values such as 2.07 MP.
Suppose you have a photo measuring 4000 pixels wide and 3000 pixels tall.
Multiply width by height
4000 × 3000 = 12,000,000 — the total number of pixels in the image.
Divide by one million
12,000,000 / 1,000,000 = 12 — converting the pixel count into megapixels.
Read the result
The photo is a 12 MP image — the same rating a camera maker would print on the box.
The megapixel figure tells you how much raw detail an image carries, and it lines up with the resolutions you meet every day. A 1080p (Full HD) video frame is 1920 × 1080, which works out to about 2.07 MP, and a 4K frame (3840 × 2160) is roughly 8.3 MP — far less than a modern phone or camera, which is why a still photo can usually be cropped harder than a single video frame. More megapixels mean a larger image: you can print it bigger before it looks soft, and you can crop in further while keeping enough pixels for a sharp result. As a rough printing guide at 300 pixels per inch, a 2 MP image fills a 4 × 6 print, 6–8 MP covers 8 × 10, and 24 MP is enough for a large poster. The number climbs quickly because both dimensions grow together, so a jump from 12 to 24 MP is only a 41 % increase in each side, not a doubling of the width.
The calculation is exact, but a couple of practical points are worth keeping in mind.
Megapixels are not image quality
Megapixels count pixels and nothing more. They do not measure sharpness, colour, or noise, all of which depend on the sensor size, the lens, and the processing. A small sensor crammed with many pixels can look worse than a larger sensor with fewer, bigger pixels, so more megapixels do not automatically mean a better photo. Enter whole pixel dimensions — fractional pixels are not valid image sizes.