ForHosting KIT · Developer Utilities

Extension Tube Magnification Calculator for Close-Up Photography

An extension tube moves a lens farther from the camera sensor, allowing the lens to focus closer and project a larger image of a small subject.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

This calculator estimates how much magnification the added extension contributes from the tube length and the lens focal length. You can also enter the lens's native close-focus magnification to estimate the combined reproduction ratio. The result is a practical planning figure for comparing tube and lens combinations before you pack equipment or arrange a close-up setup.

Enter focal length and total extension

Use the focal length marked on the lens, in millimetres, and add together the lengths of every extension tube in the stack. A 12 mm tube plus a 20 mm tube should therefore be entered as 32 mm of extension. For a zoom lens, enter the focal length selected for the photograph, not merely the shortest or longest value printed on the barrel. The calculator divides extension by focal length, so both measurements must use millimetres. If the lens specification gives a native maximum magnification, you may enter that dimensionless value as well: 0.25 means one-quarter life size, commonly written 1:4. Leave it at zero when you want only the idealized magnification added by the tube from an infinity-focus starting point. The result reports the added magnification, an estimated total, and a reproduction ratio. This makes it easy to compare, for example, why the same tube produces a stronger close-up effect on a shorter lens than on a longer lens.

Understand the estimate and its formula

The calculation uses the standard thin-lens approximation: added magnification equals extension length divided by focal length. A 25 mm tube on a 50 mm lens therefore adds 0.5× magnification. When native magnification is supplied, the calculator adds that figure to the extension contribution to provide an estimated total. This simple relationship is most directly applicable to a lens focused near infinity and modeled as a thin lens. Real photographic lenses are compound optical systems. Internal focusing can change effective focal length at close distances, and the physical extension relevant to the optical calculation may not exactly match the tube label once the lens itself changes focus. For those reasons, treat the answer as a planning estimate rather than a laboratory measurement. It is especially useful for ranking combinations and anticipating framing. For exact reproduction, photograph a ruler or calibrated target at the intended focus setting and compare the captured subject width with the sensor width.

Plan a workable close-up setup

More extension increases magnification, but it also changes the practical behavior of the camera system. The lens loses infinity focus, the working distance can become short, and effective exposure at the subject may fall as magnification rises. Autofocus may slow or hunt, particularly with low-contrast subjects, so manual focus and moving the camera gently toward or away from the subject are often more predictable. Start with the smallest tube that reaches the framing you need, then check whether there is enough room for lighting and whether the subject can remain still. Longer focal lengths generally preserve more working distance but receive less added magnification from the same extension, while shorter focal lengths gain more magnification and may place the front of the lens uncomfortably close to the subject. The estimate does not predict depth of field, exposure compensation, image quality, or working distance. Those depend on aperture, lens design, focus setting, sensor format, and the exact tube-and-lens combination.

Choose between tube sizes

Compare available extension tubes for one lens and select the smallest stack likely to deliver the desired close-up framing.

Compare lenses for macro work

Estimate how one tube changes magnification on several focal lengths before deciding which lens to carry or mount.

Estimate a combined reproduction ratio

Add the lens's published native magnification to the tube contribution for a practical starting estimate of total magnification.

What does the calculator cost to use through the API?

Each API request costs $0.002. The browser version runs locally for free.

What formula does the calculator use?

It estimates added magnification as extension length divided by focal length, with both lengths expressed in millimetres.

What does 0.5× magnification mean?

It means the image projected on the sensor is half the subject's actual linear size, which is also written as a 1:2 reproduction ratio.

Can I add multiple extension tubes?

Yes. Add their marked lengths and enter the sum as extension_length_mm.

Why might the measured magnification differ from the result?

Internal focusing, effective focal-length changes, lens construction, and the chosen focus position make a real lens differ from the thin-lens approximation.

Does an extension tube preserve infinity focus?

No. Adding extension shifts the available focus range toward nearby subjects, so infinity focus is normally lost while the tube is fitted.

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/hobby/photo-extension-tube-magnification

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/hobby/photo-extension-tube-magnification \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"focal_length_mm":50,"extension_length_mm":25}'
{
  "focal_length_mm": 50,
  "extension_length_mm": 25
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "hobby.photo_extension_tube_magnification",
  "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 →