ForHosting KIT · Developer Utilities

Fiber total loss calculator

This fiber total loss calculator computes the distributed attenuation of an optical fiber link in decibels.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

Enter the fiber attenuation coefficient in decibels per kilometer and the installed or planned link length in kilometers. The result is their product: the signal loss attributable to propagation through that fiber span. It is a quick, transparent calculation for early link-budget work, specification checks, classroom exercises, and field documentation. Connector, splice, bend, splitter, and engineering-margin losses are deliberately not added unless you calculate and combine them separately.

How attenuation and distance determine fiber loss

An optical signal loses power as it travels through fiber, and a fiber specification commonly expresses that distributed loss as an attenuation coefficient in decibels per kilometer. When the coefficient is treated as constant over the span, total propagation loss is attenuation_db_per_km multiplied by length_km. A 0.35 dB/km fiber over 12.5 km therefore produces 4.375 dB of fiber loss. Decibels make this multiplication convenient because equal distances contribute equal additive losses to a link budget. The returned total_loss_db is a positive loss magnitude: subtract it from a launch power stated in dBm when no other gains or losses are present. For example, a launch level of 0 dBm followed by 4.375 dB of propagation loss would ideally arrive at -4.375 dBm before connectors, splices, and other components are considered. This calculator does not convert decibels into an optical power ratio because its purpose is the direct link-budget term engineers usually need. It echoes both inputs and includes the formula in the response, making the calculation easy to audit, store, and reproduce in a worksheet or automated design process.

Choose compatible attenuation and length values

Enter attenuation_db_per_km as a finite, nonnegative number in dB/km and length_km as a finite, nonnegative number in kilometers. The units must match: if a data sheet gives attenuation per meter, convert it to per kilometer before using this input, and if your route length is in meters, divide it by 1,000. Use the attenuation value specified for the wavelength and operating conditions of the planned link. Fiber attenuation varies with wavelength, fiber type, manufacturing tolerance, temperature, aging assumptions, and sometimes installation conditions, so a coefficient quoted at 1550 nm should not automatically be used for an 850 nm design. For a route containing fiber segments with different coefficients, calculate each segment separately and add their decibel losses. Zero is accepted for either field and yields zero distributed loss, which is useful for boundary tests even though a real nonzero fiber span is not perfectly lossless. Numeric strings are rejected rather than silently converted, preventing unit-bearing text or malformed form data from looking valid. The result is rounded to twelve decimal places only to keep serialized responses stable; the underlying operation is a direct multiplication without iterative or intermediate rounding.

Use the result inside a complete optical link budget

The calculated value covers only distance-dependent attenuation in the stated fiber. A complete optical link budget normally includes transmitter launch power, receiver sensitivity, connector insertion losses, splice losses, passive splitters or couplers, wavelength-dependent components, bends, patch panels, and a design margin for repair, aging, measurement uncertainty, and future changes. Add those individual loss magnitudes in decibels to this propagation result, then compare the total loss with the available power budget. Route length also deserves care: installed cable length can exceed map distance because of vertical runs, service loops, slack storage, routing around obstacles, and restoration reserves. This simple calculator is particularly useful early in design because it isolates one assumption and makes sensitivity obvious; doubling the distance doubles this loss term, as does doubling the attenuation coefficient. It is equally useful for checking a supplier claim or documenting why two wavelength plans produce different reach estimates. The calculation does not determine maximum reach, diagnose an OTDR trace, infer attenuation from power measurements, or certify that a link will operate. Those tasks require additional device specifications or measurements. The browser calculation is free, while an automated API calculation costs $0.002 per successful request.

Estimate a planned fiber span

Multiply the specified attenuation at the operating wavelength by the proposed route length before adding component losses and margin.

Check a link-budget worksheet

Independently verify the propagation-loss term used in a design spreadsheet or equipment proposal.

Compare fiber or wavelength options

Calculate the distance-dependent loss for alternative attenuation coefficients while keeping the route length constant.

What formula does the calculator use?

It uses total loss in dB = attenuation in dB/km × length in km.

Does the result include connector and splice loss?

No. It includes only distributed fiber attenuation. Add connectors, splices, splitters, bends, and margin separately for a complete link budget.

Which attenuation coefficient should I enter?

Use the coefficient specified for your fiber type, wavelength, and relevant operating conditions. Do not mix a value from one wavelength with a link operating at another.

Can I enter length in meters?

The input is in kilometers. Convert meters to kilometers by dividing by 1,000 before calculating.

How much does an API calculation cost?

Each successful API request costs $0.002. The same deterministic calculation is free to run in the browser.

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/fiber-total-loss

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/fiber-total-loss \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"attenuation_db_per_km":0.35,"length_km":12.5}'
{
  "attenuation_db_per_km": 0.35,
  "length_km": 12.5
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "optics.fiber_total_loss",
  "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 →