Formulas and sources
Each formula this calculator uses, where it comes from, and what it leaves out. "How it works" shows the same formula with your own numbers.
Ratio from width and height
Size → Ratio, DPI / Print and Batch modes
- Ratio
- the simplified ratio
- W
- width
- H
- height
- GCD
- the greatest common divisor of W and H, found by Euclid's algorithm
Both sides are divided by their greatest common divisor, so 1920 × 1080 becomes 16:9. A size close to a standard shape but not on it does not reduce to it: 1366 × 768 is 683:384, which Size → Ratio places as 16:9, 0.05% wider. In DPI / Print the ratio comes from the print size (millimeters for ISO paper), not the rounded pixels.
Source: Standard formula; no single publisher. HD and UHD picture sizes reduce to the 16:9 their standards give: 1920 × 1080 in ITU-R BT.709-6 [1], and 3840 × 2160 and 7680 × 4320 in BT.2020-2 [2].
Nearest common ratio
Size → Ratio and Batch modes
- W
- width
- H
- height
- a ÷ b
- the nearest of 1:1, 5:4, 4:3, 3:2, 16:10, 16:9, 1.91:1, 2:1 and 21:9, or its portrait twin
- Off
- above 0, wider than that ratio; below 0, narrower
The nearest is the one the size is the fewest times wider or narrower than. 941 × 1672 is 0.563:1, nearest 9:16 and 0.05% wider; 2100 × 900 is 7:3, exactly 21:9. Past 2% the page says no listed ratio is within 2%: a phone at 1080 × 2340 is 7.7% from 9:21.
Source: Standard formula; no single publisher.
Height from a ratio
Ratio → Size mode, with the width typed
W:H is the ratio. The side you did not type is worked out to two decimals, and the headline rounds it to a whole pixel: 16:9 at 1366 wide is 768.38 high, shown as 1366 × 768. A size keeps a ratio a:b in lowest terms exactly only at k × a by k × b. So the nearest exact 16:9 sizes are 1360 × 765 and 1376 × 774; with both sides even, as video encoders need, 1344 × 756 and 1376 × 774.
Source: Standard formula; no single publisher.
Width from a ratio
Ratio → Size mode, with the height typed
W:H is the ratio: 4:3 at 1080 high is 1440 wide.
Source: Standard formula; no single publisher.
Heights at one width
Compare mode
- Height
- the height for one compared ratio
- Base Width
- the width every compared ratio shares
- (Ratio Height ÷ Ratio Width)
- the ratio as height over width: 9 ÷ 16 for 16:9
A blank or zero base width is 1,920.
Source: Standard formula; no single publisher.
Fit: the whole picture
Fit / Fill mode
- Frame W
- the frame’s width
- W
- the picture’s width
- Frame H
- the frame’s height
- H
- the picture’s height
The smaller of the two, so both sides fit; each side of the result is rounded to a whole pixel. The rest of the frame is the bars, half on each side, the odd pixel on the right or at the bottom. 1440 × 1080 (4:3) in a 1920 × 1080 frame stays at 100%, with 240 px bars left and right. Above 100% the picture is enlarged past its own pixels.
Source: Standard formula; no single publisher. YouTube asks for no padding or black bars in the file, and its player sizes itself to the video [6].
Fill: the frame covered
Fit / Fill mode
- Frame W
- the frame’s width
- W
- the picture’s width
- Frame H
- the frame’s height
- H
- the picture’s height
The larger of the two, so the picture covers the frame and the overflow is cut off, half on each side. In the picture’s own pixels the frame keeps Frame W ÷ Fill scale by Frame H ÷ Fill scale. The same 4:3 picture becomes 1920 × 1440, loses 180 px at the top and the bottom, and keeps 1440 × 810 of itself, 75%.
Source: Standard formula; no single publisher.
Pixels for a print size
DPI / Print mode
- Pixels
- the width or height in pixels
- Inches
- the print width or height
- DPI
- pixels per inch; a blank field is 300
Each side is rounded to a whole pixel. Centimeters are divided by 2.54 and millimeters by 25.4 first, and an ISO paper size is taken in millimeters, so A4 at 300 DPI is 2480 × 3508. With a ratio and one side, the other side is that side × H ÷ W first: 16:9 at 24 in wide is 13.5 in tall, 7200 × 4050. From an image's pixels it runs the other way, Inches = Pixels ÷ DPI: 3000 × 2000 px at 300 DPI is 10 × 6.667 in. At a print width the DPI is Pixels ÷ Inches, 250 at 12 in. DPI here means pixels per inch, not a printer's dots.
Source: Standard formula; no single publisher. An inch is exactly 25.4 millimeters, NIST SP 811 [3].
Safe area
Ratio → Size, Size → Ratio and DPI / Print modes
- Width
- the frame width
- Height
- the frame height
- Margin
- the percentage you choose, taken off every edge, at most 45%
A 10% margin keeps 1536 × 864 of a 1920 × 1080 frame. Platforms crop unequal parts. Pinterest lists Pin safe zones of 270 pixels at the top and 790 at the bottom, and X says 60 pixels at the top and bottom of a header may be cropped.
Source: CalcTrail's own measure; no publisher. It is one equal margin, not a platform's own safe zone (Pinterest [4], X [5]).
Platform presets
Ratio → Size and Size → Ratio modes
- YouTube Video (16:9)
- 1920 × 1080
- Instagram Feed (1:1)
- 1080 × 1080, inside the 1.91:1 to 3:4 Instagram keeps at full resolution
- Instagram Story/Reel (9:16)
- 1080 × 1920, the narrowest shape a reel may be
- TikTok Video (9:16)
- 9:16 from an ad specification (at least 540 × 960); the preset fills 1080 × 1920
- LinkedIn Link Post (1.91:1)
- 400:209, 1200 × 627
- LinkedIn Cover Photo (4:1)
- 1584 × 396, a profile cover; a Page cover is 1512 × 256
- X Header (3:1)
- 1500 × 500
- Facebook Page cover file (851 × 315)
- 851 × 315, shown at 16:9 on a computer and 2.4:1 on a phone
- Pinterest Pin (2:3)
- 1000 × 1500, from an ad specification
- Ultrawide (21:9)
- 2520 × 1080, which is 7:3
- Presentation Slide (16:10)
- 1920 × 1200
- A4 Print, 300 DPI (2480 × 3508)
- 620:877, as DPI / Print gives A4
- US Letter Print (8.5:11)
- 17:22, 2550 × 3300
Platform figures as of October 2026; platforms change them. Each preset fills the ratio and a target width in Ratio → Size, and the width and height in Size → Ratio.
Source: Each platform's own help page: YouTube [6], Instagram [7] [8], LinkedIn [9] [10], X [5] and Facebook [11]. TikTok's 9:16 [12] and Pinterest's 2:3 [13] are their ad specifications, and 16:10 is a Google Slides page size [14]. No standard sets 21:9: CTA-861-G specifies 64:27 and notes that it is near 21:9 [15].
Compared ratios
Compare mode
16:9 is the picture shape of HD and UHD television, and 4:3 of standard-definition television. 21:9, 1:1, 9:16, 3:2, 5:4 and 2:1 are shapes, not standard formats.
Source: 16:9 from ITU-R BT.709-6 [1] and BT.2020-2 [2]; 4:3 from BT.601-7 [16]. No standard sets 21:9 [15]. No primary source found for 3:2 as 35 mm film or 5:4 as a print format.
Paper sizes
DPI / Print mode
- US Letter
- 8.5 × 11 in
- US Legal
- 8.5 × 14 in
- Tabloid
- 11 × 17 in
- A3
- 297 × 420 mm
- A4
- 210 × 297 mm
- A5
- 148 × 210 mm
- Photo
- 4 × 6, 5 × 7 and 8 × 10 in
ISO sizes are worked in millimeters, so A4 is 70:99 and 2480 × 3508 pixels at 300 DPI.
Source: A4 and US Letter as 37 CFR 1.52 gives them [17]; US Legal as 12 CFR 1010.102 gives it, "approximately" [18]. A3 and A5 belong to the A series of ISO 216 [19]; no free primary source states their sizes. Tabloid and the photo sizes: no primary source found.
Other ratios in a 16:9 frame: the 16:9 Video Resize example
Sources
- International Telecommunication Union (ITU-R). Recommendation ITU-R BT.709-6, Parameter values for the HDTV standards for production and international programme exchange, section 2, Picture characteristics, items 2.1 to 2.5. June 2015.Our automated tests check this calculator against 1 case from it.
- International Telecommunication Union (ITU-R). Recommendation ITU-R BT.2020-2, Parameter values for ultra-high definition television systems for production and international programme exchange, Table 1, Picture spatial characteristics. October 2015.Our automated tests check this calculator against 2 cases from it.
- National Institute of Standards and Technology. NIST Guide to the SI, Appendix B.9: Factors for units listed by kind of quantity or field of science, length, the inch. Special Publication 811.
- Pinterest Help. Review Pin specs, safe zones. Undated page, read October 5, 2026.
- X Help Center. Help with uploading a profile photo, header images. Undated page, read October 5, 2026.
- Google, YouTube Help. Video resolution & aspect ratios. Undated page, read November 15, 2026.
- Instagram Help Center. Image resolution of photos you share on Instagram. Undated page, read November 15, 2026.
- Instagram Help Center. Reel size and aspect ratios on Instagram. Undated page, read November 15, 2026.
- LinkedIn Help. Image specifications for your LinkedIn Pages and Career Pages, Custom image specifications, and Page cover image. Undated page, read October 5, 2026.
- LinkedIn Help. Add or change the cover image on your profile. Undated page, read October 5, 2026.
- Facebook Help Center. Facebook Page profile picture and cover photo dimensions. Undated page, read October 5, 2026.
- TikTok, TikTok Ads Manager Help Center. TikTok Auction In-Feed Ads, video ad specifications. Last updated March 2026, read in the Internet Archive's capture of April 20, 2026.
- Pinterest Business Help. Review ad specs. Undated page, read October 5, 2026.
- Google, Google Docs Editors Help. Change slide size & measurement units in Google Slides. Undated page, read October 5, 2026.
- Consumer Technology Association (CTA). CTA-861-G, A DTV Profile for Uncompressed High Speed Digital Interfaces, definition of Picture Aspect Ratio, and Table 3, note 6. November 2016.Our automated tests check this calculator against 1 case from it.
- International Telecommunication Union (ITU-R). Recommendation ITU-R BT.601-7, Studio encoding parameters of digital television for standard 4:3 and wide-screen 16:9 aspect ratios. March 2011.
- US Patent and Trademark Office, Code of Federal Regulations. 37 CFR 1.52, Language, paper, writing, margins, read-only optical disc specifications, paragraph (a)(1)(ii). eCFR, current as of October 1, 2026.Our automated tests check this calculator against 2 cases from it.
- Consumer Financial Protection Bureau, Code of Federal Regulations. 12 CFR 1010.102, General instructions for completing the Statement of Record, paragraph (a). eCFR, current as of October 1, 2026.
- International Organization for Standardization (ISO). ISO 216:2007, Writing paper and certain classes of printed matter, Trimmed sizes, A and B series, and indication of machine direction. Edition 2, September 2007; under systematic review as of October 2026.
What this calculator does not cover
- Presets are the ratios and sizes platforms give on their own help pages as of October 2026, and platforms change them.
- The safe area is one equal margin on every edge, not a platform's own safe zone.
- It works out sizes and ratios; it does not crop or resample an image.
- Fit / Fill centers the picture in the frame; an editor or an app may place it, or its crop, elsewhere.
- DPI here is pixels per inch, the screen term, not the dots per inch of a printer.
Sources checked on
How we choose sources and test the calculators: How CalcTrail calculates