API & MCP

Everything a person can do on Ohmforge RF Calculator: Antenna, Link Budget & VSWR, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Ohmforge RF Calculator: Antenna, Link Budget & VSWR

Three everyday radio calculations in one place: antenna element lengths for a frequency (half-wave dipole, quarter-wave monopole, coax stubs), a Friis link budget with free-space path loss, received power, margin and the maximum range for the fade margin you want, and the conversions between VSWR, return loss, reflection coefficient and mismatch loss — also straight from a load impedance.

Inputs of Ohmforge RF Calculator: Antenna, Link Budget & VSWR
FieldTypeDefaultDescription
modeselect (link, antenna, mismatch)"link"Calculation
frequencyMHznumber2400Frequency. Antenna lengths and link budget.
distanceMnumber100Distance. Link budget: distance between the antennas.
txPowerDbmnumber20Transmit power. 20 dBm = 100 mW, 30 dBm = 1 W.
txGainDbinumber2Transmit antenna gain
rxGainDbinumber2Receive antenna gain
txCableLossDbnumber0Transmit cable and connector loss
rxCableLossDbnumber0Receive cable and connector loss
otherLossDbnumber0Other losses. Walls, bodies, foliage, polarisation mismatch, rain — whatever free space does not include.
sensitivityDbmnumber-90Receiver sensitivity. Weakest signal the receiver decodes at the data rate you use (datasheet).
fadeMarginDbnumber10Fade margin you want. Reserve for fading and obstacles; the maximum range is computed for it.
endEffectnumber0.95End-effect factor (antenna). Shortening of a thin wire element because of the end capacitance; 0.95 is the usual approximation (thicker elements need less).
velocityFactornumber1Velocity factor of the element (antenna). 1 for bare wire in air; insulated wire about 0.95–0.98.
cableVelocityFactornumber0.66Velocity factor of the coax (stubs). Solid PE coax (RG-58, RG-213) 0.66, foam PE about 0.80–0.85.
mismatchFromselect (vswr, returnLoss, gamma, impedance)"vswr"You know (mismatch)
valuenumber2Value (VSWR, return loss or |Γ|). VSWR ≥ 1, return loss in dB as a positive number, or |Γ| from 0 to 1.
loadRnumber75Load resistance R. Mismatch from a load impedance.
loadXnumber0Load reactance X. Positive = inductive, negative = capacitive.
z0number50Reference impedance Z0

Example request

Wi-Fi link: 2.4 GHz over 100 m

curl -X POST https://ohmforgerfcalculator.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"mode":"link","frequencyMHz":2400,"distanceM":100,"txPowerDbm":20,"txGainDbi":2,"rxGainDbi":2,"txCableLossDb":1,"rxCableLossDb":1,"sensitivityDbm":-90,"fadeMarginDb":10}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "ohmforge-rf-calculator": { "type": "http", "url": "https://ohmforgerfcalculator.usefulweb.app/mcp" }
  }
}