ForHosting KIT · Developer Utilities

Calculate screen diagonal from dimensions

This screen diagonal calculator connects the three physical measurements used to describe a display.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

Enter its width and height in inches to calculate the corner-to-corner diagonal, or enter a diagonal in inches with a width-to-height aspect ratio to recover the physical width and height. The calculation uses the Pythagorean theorem and returns stable rounded values suitable for comparing monitors, televisions, projectors, laptop panels, and replacement displays. Every dimension and each part of the aspect ratio must be greater than zero, so incomplete or physically impossible inputs produce a clear error instead of a misleading result.

Measure width and height before calculating the diagonal

Measure only the visible rectangular screen area unless your project explicitly needs the outer case. Place a ruler or tape horizontally across the active display for width, then vertically for height. Do not include a monitor bezel, television frame, laptop lid border, stand, or curved housing, because manufacturers normally advertise the diagonal of the viewable panel. Enter both measurements in inches. The calculator applies the Pythagorean theorem: the diagonal is the square root of width squared plus height squared. That relationship works because the width, height, and diagonal form a right triangle. Keep the tape straight and measure in the same plane, particularly on a curved screen where following the surface would exaggerate its size. A small measurement error can change the final diagonal, so use decimals rather than prematurely rounding each dimension. The result is rounded only after the full calculation, preserving useful precision for identifying a nominal screen class such as 24, 27, or 32 inches.

Reverse a diagonal using the correct aspect ratio

When you know the advertised diagonal but need physical width and height, also provide the display aspect ratio in width-to-height form. Common examples include 16:9 for televisions and mainstream monitors, 16:10 for some productivity displays, 4:3 for older panels, and 21:9 for ultrawide screens. The same diagonal does not imply the same width: a wider aspect ratio produces a wider, shorter rectangle, while a squarer ratio produces a narrower, taller one. Internally, the calculator finds the length of the ratio vector and scales both ratio components until its diagonal matches the supplied number of inches. Write the ratio with a colon, such as 16:9. Ratios that are mathematically equivalent, such as 32:18, produce the same dimensions, although the returned label preserves the numeric components after parsing. Confirm the panel specification rather than guessing from appearance. A 27-inch 16:9 monitor and a 27-inch 16:10 monitor need different desk space, mounts, enclosures, and protective packaging even though their advertised diagonal is identical.

Interpret results and avoid common sizing mistakes

All input and output lengths are physical inches, not pixel counts. Resolution describes how many pixels a panel contains, while diagonal, width, and height describe its physical size; a 4K display and a Full HD display can therefore have exactly the same dimensions. The result also does not include bezels or chassis tolerances, so use a manufacturer drawing when planning a tight cabinet, wall recess, flight case, or multi-monitor frame. For purchasing comparisons, the calculated values are excellent for understanding how much wider one aspect ratio is than another or estimating the active area of an unidentified panel. If your source measurements are in centimeters, convert them to inches before submitting them by dividing by 2.54, and do not mix units between width and height. The calculator rejects zero, negative, missing, infinite, and nonnumeric dimensions because none represents a valid physical screen. It likewise rejects a ratio with a zero or negative component. These checks prevent plausible-looking answers from malformed measurements and make automated workflows fail clearly when upstream data is incomplete.

Identify an unlabelled display

Measure the visible width and height of a monitor or replacement panel to estimate its standard advertised diagonal.

Plan desk and wall space

Turn a listed diagonal and aspect ratio into active-screen width and height before selecting a desk, mount, or wall position.

Compare display formats

Calculate the dimensions of equal-diagonal 16:9, 16:10, or ultrawide screens to understand their different footprints.

What does an API calculation cost?

Each API request costs $0.002. The browser calculator can be used free on this page.

Should width and height include the bezel?

No. Measure the visible panel area if you want the conventional advertised screen diagonal. Include the chassis only for a separate physical-fit calculation.

Can I enter centimeters?

Inputs are interpreted as inches. Divide centimeter measurements by 2.54 before calculating, and keep width and height in the same unit.

Why do two screens with the same diagonal have different widths?

Their aspect ratios differ. A wider ratio allocates more of the same diagonal to width and less to height.

Does resolution affect the calculation?

No. Pixel resolution and physical dimensions are independent; this calculation uses only physical lengths and aspect ratio.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/misc2/screen-size-diagonal-calc

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/misc2/screen-size-diagonal-calc \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"width":20.92,"height":11.77}'
{
  "width": 20.92,
  "height": 11.77
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "misc2.screen_size_diagonal_calc",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Read the full KIT documentation →