Crop PDF says the margins do not fit on the page when the left and right margins together reach the page width, or the top and bottom margins reach its height, so nothing would be left.
The check uses the page as you see it after rotation and measures from its current crop box. So an already cropped page leaves less room than its paper size suggests.
Crop PDFWhy Crop PDF Margins Do Not Fit the Page
Add the left and right values together and compare the sum with the page width in points.
US Letter paper measures 8.5 by 11 inches, and A4 measures 210 by 297 mm. Letter paper size (Wikipedia)
Multiply a page width in inches by 72 to get points, such as 612 for Letter and about 595 for A4.
Margins that leave even a sliver of page pass the check. Margins that use up the full width or height fail.

Other Crop PDF Errors and What They Mean
"Crop margins extend outside the page" is a different error. It shows up when the area left after cropping would reach past the media box of the page.
The media box of a PDF page marks the boundaries of the physical medium it is printed or shown on. PDFPage reference (pdf-lib docs)
A margin below 0, above 1000 or left empty stops the crop with an error that names it, such as "Invalid left margin".
One page that fails the check stops the whole file. No page gets cropped until the margins fit every page.
Margins on a PDF With Mixed Page Sizes
In our October 2026 run on a two page file with one A4 and one A6 page, left and right margins of 150 points each failed, though the A4 page alone had room for them.
The A6 page is 297.64 points wide, so 148.82 on each side still failed while 148.8 passed.
That passing run left the A6 page 0.04 points wide, which is a page too thin to see.
The message doesn't say which page failed, so in a mixed file check the smallest page first.
Reduce the left and right margins, then the top and bottom ones, until each pair stays well below the smallest page size.
Try the default 36 on every side first to confirm the file itself crops.
Continue with Crop Multiple PDF Files at Once With a Merge and Split Workflow or PDF Watermark Text Too Long? Limits and Fixes.
Frequently Asked Questions about Crop PDF Margins Do Not Fit on Page: Causes and Fixes
What does "Margins do not fit on page" mean?
Two opposite margins add up to the full width or height of the page, which leaves no area to keep.
Why do my margins fit one page but not the whole PDF?
Crop PDF checks every page with the same values, so a smaller page in the file can fail where bigger ones pass.
Can a single margin be larger than 1000?
Keep each margin at 1000 or below, since larger values fail with an invalid margin error.
Does the error change anything in my file?
No. The cropped file only gets written after every page passes, so a failed check produces no output.