Bleed calculator
Add bleed and a safe margin to any trim size and get the document size in mm, inches, points and pixels, plus MediaBox, BleedBox, TrimBox and ArtBox values.
Runs entirely in your browser
Start from the finished page size, add the bleed your printer asks for, and this calculator gives the document size you must set up, the safe area to keep text inside, and the five PDF page boxes expressed in points so the file carries the same information.
The arithmetic#
Bleed extends the page on every side, so the document grows by twice the bleed in each direction. The safe margin shrinks the usable area by twice the margin.
- Document width
- trim width + 2 × bleed
- Document height
- trim height + 2 × bleed
- Safe area
- trim width − 2 × margin by trim height − 2 × margin
- Points
- mm ÷ 25.4 × 72; 3 mm is 8.504 pt, 0.125 in is exactly 9 pt
A4 with 3 mm bleed. The trim is 210 × 297 mm, so the document is 216 × 303 mm, which is 612.28 × 858.90 pt or, at 300 PPI, 2551 × 3579 px. The TrimBox sits 8.50 pt in from every edge: [8.50 8.50 603.78 850.39].
US Letter with 0.125 in bleed. The trim is 8.5 × 11 in, so the document is 8.75 × 11.25 in, which is 630 × 810 pt or 2625 × 3375 px at 300 PPI. Because the bleed is 9 pt exactly, the TrimBox is [9 9 621 801].
Reading the page boxes#
A PDF page can carry five rectangles, all in points with the origin at the bottom-left corner. The calculator writes them as [x1 y1 x2 y2] arrays, which is the form that appears in the page dictionary.
- MediaBox is the whole document including bleed. It is the only box a page must have.
- BleedBox is the area to be printed before trimming. For a file prepared this way it equals the MediaBox.
- TrimBox is the finished page after cutting. Print workflows and PDF/X preflight read this box to know the real page size.
- ArtBox is set here to the safe area. Its meaning in the standard is "the extent of the page's meaningful content", and using it for the safe zone is a common convention rather than a rule.
- CropBox is not written: it only controls what a viewer displays and defaults to the MediaBox.
The page boxes page explains defaults, inheritance and how to inspect or set the boxes with qpdf, pdfcpu and pdf-lib. PDF/X requires a TrimBox or ArtBox together with the MediaBox, so a file with these values set is already most of the way to a print-ready submission.
Setting the values in software#
- InDesign and Affinity Publisher take bleed as a document setting; enter the bleed, not the document size, and tick "Use document bleed settings" when exporting the PDF. The exported file gets the same boxes as the calculator shows.
- Illustrator and Photoshop have no bleed setting on the canvas, so create the artboard or image at the document size with bleed and draw guides at the bleed and safe distances. In Photoshop the guide positions are the bleed and margin in pixels that the calculator reports.
- HTML to PDF renderers take the document size from CSS:
@page { size: 216mm 303mm; margin: 0 }for the A4 example. Chromium cannot write a TrimBox; add it afterwards with pdfcpu or a library, as shown on the page boxes page. - Canva and similar tools export with bleed as an option; check the exported file with the PDF inspector rather than trusting the dialog.
Edge cases#
- A safe margin larger than half the trim size is rejected, since the safe area would vanish.
- Bleed values are per side. Printers quote them that way; if a spec says "6 mm bleed total", enter 3.
- Custom sizes in points are useful when you already have the MediaBox of an existing file and need to know what trim it implies: enter the MediaBox size, the bleed, and read the TrimBox.
- Orientation applies to the named sizes; for a custom size, type the width and height in the orientation you need.
For the terms themselves, including crop marks and why the tolerances exist, see bleed, trim and safe area. For a named sheet at a given resolution without the box details, the paper size to pixels calculator is quicker.