Checking the pixel share retained after a crop
After a crop, the share of pixels kept is the new width times the new height divided by the original pixel count. This guide works the 4,000 by 3,000 example and shows why a width percentage alone gives the wrong answer.
The question a crop raises
Cropping removes pixels from the edges of an image. People often want to know how much of the original data survives, either to judge whether the result is still large enough for a print or a screen, or to explain why a file shrank. The tempting shortcut is to compare one dimension, such as saying the crop kept 75 percent of the width. That figure describes a line, not the picture. The picture is a grid, and its pixel count is width times height. A crop that trims both dimensions removes a strip from the sides and another from the top and bottom, and the pixels lost are the union of both. The retained fraction therefore multiplies the two dimension fractions together, which is why you need both dimensions to answer the question. The same arithmetic applies to a screenshot or a scanned page, but file size will not shrink in the same proportion, because compressed size depends on how much detail the remaining pixels contain.
The default crop worked out
A 4,000 by 3,000 image has 12,000,000 pixels, or 12 megapixels. The Megapixel Calculator computes this as width times height divided by 1,000,000. Cropping to 3,000 by 2,000 leaves 6,000,000 pixels, or 6 megapixels. The retained share is 6 divided by 12, which is 50 percent, and the What Percent Calculator confirms it with part 6 and whole 12. Looking at the dimensions separately, the width kept 3,000 of 4,000, which is 75 percent, and the height kept 2,000 of 3,000, which is about 66.7 percent. Multiplying 0.75 by 0.6667 gives 0.5, matching the pixel count. If you had reported the width alone, you would have said 75 percent, overstating the retained area by half again.
Why the shares multiply
An image of W by H pixels contains W times H pixels. After cropping to w by h, it contains w times h pixels. The ratio is (w times h) divided by (W times H), which rearranges to (w divided by W) times (h divided by H). That is the product of the width fraction and the height fraction, and it is the reason a modest trim in both directions removes more than people expect. Cropping 10 percent from each dimension keeps 90 percent of the width and 90 percent of the height, so the pixel share is 0.9 times 0.9, which is 81 percent. Trimming 30 percent from each dimension leaves 0.7 times 0.7, which is 49 percent, less than half of the original pixels. The lost area grows faster than the trimmed lengths.
Cropping to a new aspect ratio
Many crops change the shape of the image. Starting from the 4,000 by 3,000 original, a 3:2 crop that keeps the full width has a height of 4,000 times 2 divided by 3, which is about 2,667 pixels, giving 4,000 times 2,667, or 10,668,000 pixels. That is 10.668 megapixels and 88.9 percent of the original. A 16:9 crop with full width has a height of 2,250, giving exactly 9,000,000 pixels, or 75 percent. Here only one dimension changed, so the retained share equals that dimension fraction, and it equals 2,250 divided by 3,000. The case where you cannot use a single fraction is when both dimensions change, as in the default example. Specifying the crop by its final pixel dimensions and computing the product always works.
Digital zoom and the quarter rule
A digital zoom of 2 times is a crop to the central half of the width and the central half of the height. From the same 4,000 by 3,000 original, that is 2,000 by 1,500, or 3,000,000 pixels, 3 megapixels. The retained share is 25 percent. A zoom factor z leaves 1 divided by z squared of the pixels, so 3 times digital zoom retains one ninth, and 4 times retains one sixteenth. This is why heavy digital zoom produces soft images. The sensor data available for the final frame shrinks quickly, even though the output may be resampled back up to a larger pixel size. The retained share describes the genuine source pixels in the crop, before any enlargement by the software. A smaller zoom of 1.5 times keeps about 2,667 by 2,000 pixels, roughly 5.33 megapixels, or 44.4 percent, which is one divided by 2.25.
Cropping and resizing are separate steps
The calculation assumes that the cropped dimensions are the stored dimensions. Many workflows crop and then resize in the same export, and the final file may have a different pixel count than the crop did. If you crop the 12 megapixel original to 6 megapixels and then export at 1,920 by 1,080, the output has 2,073,600 pixels, about 2.07 megapixels, which tells you about the delivery size and nothing about how much of the original was kept. Report the crop share before resizing if you want to describe how much source image remains. If you want to describe the final file, use the final dimensions. Mixing the two gives numbers that look contradictory, such as an image that kept 50 percent of its pixels and yet has far fewer than half.
Pixels versus content
The pixel share is a count of grid cells, and it says nothing about what those pixels show. A crop that removes empty sky and keeps the subject can reduce the pixel count by half and lose almost no useful content. A crop that removes a narrow strip containing a face might drop only a few percent of the pixels and lose the main subject. The percentage also treats every part of the image as equally dense with detail, which is rarely true. Use the retained share to answer a technical question, such as whether the remaining resolution suits a given output size. Use your eye, not the arithmetic, to decide whether the composition is better. The two questions are independent, and a high retained share does not guarantee a good crop. A portrait crop that keeps the head and shoulders may discard 80 percent of the pixels and still be the right picture.
Using the share for output size
The retained pixel count feeds directly into print planning. At 300 pixels per inch, a 3,000 by 2,000 crop covers 10 by 6.67 inches. At 150 pixels per inch it covers 20 by 13.3 inches. Those are rules of thumb about print density, and acceptable values depend on the viewing distance and the printer. The Megapixel Calculator shows the total count, and the dimensions themselves give the print size at any chosen density. If the retained pixel count is too low for the target, you must either print smaller, accept lower density, or enlarge the image with resampling, which does not recover detail. Checking the numbers before cropping is easier than discovering the problem at the lab.
Edge cases and rounding
The calculation assumes a clean crop that keeps whole pixels and excludes any rotation. If you rotate the image before cropping, the canvas grows to hold the rotated image or fills the corners, and the pixel counts change in ways the formula does not cover. Cropping with a ratio can also produce fractional dimensions. A 3:2 crop of a 4,000 pixel width needs 2,666.67 pixels in height, so software rounds to 2,667 or 2,666, which changes the retained share in the sixth decimal place. A crop that exceeds the original in either dimension is not a crop, and the formula would give a share above 100 percent. The megapixel figure itself is a decimal count in millions, where one megapixel means 1,000,000 pixels and not 1,048,576. Lossless JPEG cropping tools also have to align the crop to the 8 or 16 pixel blocks the format is built from, so the delivered size can differ slightly from the box you drew.
Trimming equal margins from every side
Cropping often means removing the same margin from each edge. If you remove m pixels from every side, the new dimensions are the width minus 2m and the height minus 2m. The default example is exactly this: removing 500 pixels from each edge turns 4,000 by 3,000 into 3,000 by 2,000. A smaller margin of 250 pixels gives 3,500 by 2,500, which is 8,750,000 pixels, or 8.75 megapixels, and 72.9 percent of the original. A margin of 750 pixels gives 2,500 by 1,500, which is 3.75 megapixels, or 31.25 percent. The pixel margin looks small compared with the full image, but because it is taken from both sides of both dimensions, the loss is larger than a single percentage suggests. Equal margins also change the aspect ratio unless the original is square.
Cropping to a square
A square crop is another common case. Starting from 4,000 by 3,000, the largest square has a side of 3,000 pixels, since it cannot be taller than the original. That gives 9,000,000 pixels, 9 megapixels, and a retained share of 75 percent. Only the width is trimmed, by 1,000 pixels in total, and the height is untouched. A smaller square of 2,000 by 2,000 keeps 4 megapixels, which is one third of the original. Square crops are often the first step before resizing for a profile picture or a thumbnail, and the retained share tells you how much source data is available. If the final size is 1,000 by 1,000, there are more than enough pixels in either square, and the export can reduce the size without enlargement. The calculation applies to any choice of position, because only the dimensions matter.
Reproduce the checks
Original pixel count
Open the Megapixel Calculator and enter:
- Image width
4000- Image height
3000
Expected output:
Megapixels
12The original is twelve million pixels.
Cropped pixel count
Open the Megapixel Calculator and enter:
- Image width
3000- Image height
2000
Expected output:
Megapixels
6The crop retains six million pixels.
Retained share
Open the What percent calculator and enter:
- Part
6- Whole
12
Expected output:
Percentage of the whole
50The share uses pixel areas rather than one side.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- Primary reference ↗ · 2026-10-08