ForHosting KIT · Science

Compound microscope magnification calculator

Multiplies the two stages of a microscope: a 16 cm tube with a 0.5 cm objective gives 32×, a 2.5 cm eyepiece adds 10×, so the view is enlarged 320 times. Each stage is shown separately. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Tube length
16
Objective focal length
0.5
Eyepiece focal length
2.5
You get
Near point
25
Objective magnification
32
Eyepiece magnification
10
Magnification
320

Total magnification of a compound microscope multiplies how much the objective enlarges a nearby specimen by how much the eyepiece enlarges that intermediate image for the eye. In normal adjustment the classical school and lab formula is M equals tube length over objective focal length times near-point distance over eyepiece focal length. Students checking textbook drills, teachers building answer keys, lab technicians verifying marked objective and ocular powers, and software that needs a stable numeric contract all hit the same three-length problem.

Two lenses, two enlargements

A compound microscope enlarges in two stages. The objective, close to the specimen, forms an enlarged intermediate image; its magnification is the tube length divided by the objective focal length. The eyepiece then works like a magnifying glass on that image; its magnification is the near-point distance, 25 cm in the classic formula, divided by the eyepiece focal length. The total is the product of the two. With a 16 cm tube, a 0.5 cm objective and a 2.5 cm eyepiece, that is 32 times 10, or 320×. Shorter objective focal lengths and longer tubes raise the power.

When to use it and what it does not tell you

Students check textbook exercises with it, teachers build answer keys, and lab staff compare the power marked on an objective and eyepiece with measured focal lengths. Keep all lengths in the same unit and never enter zero or a negative value, which the calculator rejects. Remember that the figure is a geometric product only: numerical aperture, specimen contrast and diffraction decide whether a 320× image actually shows fine detail or is simply a larger, empty picture.

Practical use, limits, pricing, and delivery channels

Use the browser tool when you want an immediate total-power check while pairing a 4x, 10x, or 40x objective with a 10x eyepiece, verifying a school compound-microscope lab, estimating labelled magnification against measured focal lengths, or teaching why shorter objectives and longer tubes raise power. Remember that useful magnification is also limited by numerical aperture, specimen contrast, and diffraction—this calculator reports the geometric product only, not whether the view will be sharp or empty of detail. Results are fully deterministic: the same lengths always yield the same magnification.

There is no language model, no external optics service, and no randomness, so the capacity is safe to pin in continuous-integration checks and reproducible lesson materials.

Lab homework and answer keys

Students and graders confirm total M for given tube length and focal lengths, with clear rejection when any length is zero or negative.

Objective and eyepiece power tables

Teachers and retailers build total-magnification charts for fixed L and D while swapping marked objectives and oculars without spreadsheet formulas.

Which formula does the compound microscope magnification calculator use?

All lengths must use the same units; D defaults to 25.

What happens if tube length or a focal length is zero?

Non-positive lengths are rejected by contract and those calls are not charged.

Is the compound microscope magnification calculator free?

The browser tool runs free on your device.

Does this include numerical aperture or resolution limits?

No. This capacity returns only the geometric total magnification from tube length and the two focal lengths. NA, Abbe limit, and empty magnification are separate calculations.

How do the objective and eyepiece magnifications combine?

They multiply. The objective gives tube length over its focal length, 16 / 0.5 = 32×, and the eyepiece gives the near point over its focal length, 25 / 2.5 = 10×, so the total is 320×.

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/optics/compound-microscope-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/optics/compound-microscope-magnification \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tube_length":16,"objective_focal_length":0.5,"eyepiece_focal_length":2.5}'
{
  "tube_length": 16,
  "objective_focal_length": 0.5,
  "eyepiece_focal_length": 2.5
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "optics.compound_microscope_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.

This capacity accepts finite positive tube length, objective focal length, and eyepiece focal length in matching units, optionally overrides the near point (default twenty-five), rejects zero or negative lengths with a clear invalid_input error, and returns total magnification plus the objective and eyepiece factors as deterministic JSON.

What compound microscope total magnification returns and which lengths you need

A compound microscope forms a real intermediate image with a short-focus objective and then magnifies that image with an eyepiece so the eye sees a larger virtual image. People want a numeric M they can write on a lab sheet, compare against marked 10x or 40x objectives, or embed in a pipeline—not only a reminder that powers multiply. For the standard normal-adjustment model—final image at infinity, relaxed eye—the lateral magnification of the objective is approximately L over f_o, where L is the optical tube length between the second focal plane of the objective and the first focal plane of the eyepiece, and f_o is the objective focal length. The angular magnification of the eyepiece is D over f_e, where D is the least distance of distinct vision (near point) and f_e is the eyepiece focal length. Total magnifying power is therefore M equals (L over f_o) times (D over f_e). Search intent clusters around phrases such as compound microscope magnification calculator, total magnification from tube length, objective and eyepiece power, microscope M equals L over f_o times D over f_e, and how much magnification is my compound microscope. Delivering tube_length, objective_focal_length, eyepiece_focal_length, near_point, objective_magnification, eyepiece_magnification, magnification, formula, and method as JSON makes the result easy to paste into notes, diff in automated tests, or reuse across languages without reimplementing the product. Keep all lengths in the same unit: centimetres with centimetres (D equals 25 by default) or millimetres with millimetres (pass near_point 250), because the engine does not convert units and only the dimensionless ratio product matters for M.

How this calculator validates input and applies M = (L/f_o)×(D/f_e)

Numeric strings that parse to finite numbers are accepted so forms and CSV-style pipelines can pass values without an extra cast. There is no immersion-oil model, no numerical aperture, no working-distance table, and no manufacturer power-stamp parser; this is ideal two-stage total magnification from the known tube length and the two focal lengths with a documented near-point convention. Send a JSON body with required tube_length, objective_focal_length, and eyepiece_focal_length. Aliases L, tube, and optical_tube_length map to the tube length; aliases f_objective, fo, f_o, and objective map to the objective; aliases f_eyepiece, fe, f_e, and eyepiece map to the eyepiece. Optional near_point (aliases D, least_distance, near_point_distance) defaults to twenty-five when omitted so textbook centimetre examples work without an extra field. Every provided field must be finite and strictly positive: missing fields, empty strings, non-numeric text, NaN, Infinity, zero, and negative values all fail immediately with invalid_input before any result is returned, and failed validation is not charged. After validation, objective_magnification is L divided by f_o, eyepiece_magnification is D divided by f_e, and magnification is their product. Results are rounded to a stable decimal precision so the same input always yields the same JSON across JavaScript engines. If your course uses the near-point final-image form M equals (L over f_o) times (one plus D over f_e), this endpoint does not apply that variant—use the normal-adjustment product documented here.

Practical use, limits, pricing, and delivery channels

Each successful request is one billable item at $0.002; failed validation does not consume balance. Wire the endpoint into equipment planners, contest answer checkers, biology lab portals, or preprocessing steps where you already prefer explicit domain errors—such as rejecting a zero objective focal length—over opaque black-box widgets that cannot explain why a bad input was refused.

Deterministic fixtures for optics apps

Pipelines that seed unit tests or interactive microscope demos call a pure M=(L/f_o)*(D/f_e) oracle instead of reimplementing the product in every language.

How do I compute compound microscope total magnification with this API?

Send a JSON body with tube_length, objective_focal_length, and eyepiece_focal_length to optics.compound_microscope_magnification. Optionally set near_point (default 25). The response returns magnification, objective_magnification, eyepiece_magnification, formula, and method.

Read the full KIT documentation →