Skip to content
Documentation sections

RF Link Margin Calculator

POSThttps://rftools.io/api/py/v1/calculate

Slug link-margin. Calculate RF link margin from TX power, antenna gains, path loss, and receiver sensitivity. Determine max range and fade margin for wireless links. Free, instant results.

Inputs

Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.

Inputs of link-margin
NameUnitRangeDefaultDescription
txPowernumberdBm−30 … 6020Transmitter output power
txGainnumberdBi−10 … 503Transmit antenna gain in dBi
rxGainnumberdBi−10 … 503Receive antenna gain in dBi
distancenumberkmat least 0.0011Distance between transmitter and receiver
frequencynumberGHzat least 0.0012.4Operating frequency in GHz
sensitivitynumberdBm−150 … 0-90Receiver minimum sensitivity from datasheet
cableLossnumberdBat least 01Total cable and connector losses on TX and RX sides combined
extraLossCountnumbernone0 … 40How many extra loss terms the budget includes, such as polarisation mismatch, body loss or foliage
extraLoss1numberdB0 … 500An extra loss in the path, such as polarisation mismatch, body loss, foliage or a wall
extraLoss2numberdB0 … 500An extra loss in the path, such as polarisation mismatch, body loss, foliage or a wall
extraLoss3numberdB0 … 500An extra loss in the path, such as polarisation mismatch, body loss, foliage or a wall
extraLoss4numberdB0 … 500An extra loss in the path, such as polarisation mismatch, body loss, foliage or a wall
targetMarginnumberdB0 … 6010The fade margin the link must keep above the receiver sensitivity. The status passes at or above it and fails below 0 dB.

Outputs

Returned in values, by key. A value that is unbounded or undefined is null.

Outputs of link-margin
FieldUnitDescription
fspldBFree-space path loss at specified frequency and distance
receivedPowerdBmReceived signal power level at receiver input
linkMarginheadlinedBMargin above receiver sensitivity. Positive = link will work. >10 dB recommended.
maxRangekmMaximum range where link still has positive margin

Calling it

  • Calculate: one call, the request and response in full, and its errors.
  • Batch: this calculator with others, or a sweep, in one request.
  • Solve for a target: the value of one input that brings an output to a target.