Megapixel Calculator

Megapixels are the headline number on every camera and phone, but the figure that actually matters is what those pixels let you do, and this calculator turns a resolution into the answers you need. Enter the width and height of an image in pixels and it returns the total megapixels, the aspect ratio in its simplest whole-number form, and the largest size you can print at high quality, shown in both inches and centimetres. A megapixel is simply one million pixels, so the calculation multiplies the width by the height and divides by a million, but the related figures are where it becomes genuinely useful. The aspect ratio tells you the shape of the image, whether it is a classic 3 by 2 photo, a 16 by 9 widescreen frame or a square, which matters when you crop, frame or fit an image to a screen or print. The print size is worked out at 300 dots per inch, the standard for sharp photographic prints, by dividing each pixel dimension by 300, so you can see at a glance whether a photo has the resolution to print at A4, A3 or larger before it starts to look soft. That helps you decide whether an image is big enough for a poster, how much you can crop and still print well, or whether you need to shoot at a higher resolution. It is handy for photographers, designers, print buyers and anyone choosing a camera or preparing images for print or screen. More megapixels are not automatically better, since lens, sensor and light matter too, but knowing the numbers helps you make the right call. The formulas and a worked example are below.

Calculate.co.nz is proud to be partnered with realtor.co.nz, a trusted resource for navigating the New Zealand property market. Their Helpful Articles section offers clear, well-structured insights across buying, selling, and building, making complex real estate topics more accessible. With a focus on up-to-date guidance and practical knowledge, they empower Kiwis to move forward with clarity and confidence in a constantly evolving property landscape.
Calculate.co.nz partner
px
px
0 MP
megapixels
Aspect ratio0
Print at 300 DPI0

How it works

The megapixels are the width times the height divided by one million. The aspect ratio is the width to height reduced by their greatest common divisor to the smallest whole numbers. The print size at 300 dots per inch divides each pixel dimension by 300 to give inches, then multiplies by 2.54 for centimetres.

Worked example

A 6000 by 4000 image has 24,000,000 pixels, which is 24 MP. The greatest common divisor of 6000 and 4000 is 2000, giving an aspect ratio of 3 to 2. At 300 DPI it prints at 20 by 13.3 inches, about 51 by 34 centimetres.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About

Reviewed and maintained. Last reviewed 2026-06-05 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2019 to 2026 Calculate.co.nz. All rights reserved.