Link Budget: A calculation that sums all gains and subtracts all losses in a radio link to determine the received signal power and link margin
Link Margin: The difference between received signal power and receiver sensitivity; positive margin means the link works, higher margin means more headroom
Receiver Sensitivity: The minimum signal power (in dBm) at which a receiver can correctly decode a packet at a specified error rate
Antenna Gain: The increase in radiated power in the antenna’s preferred direction relative to an isotropic radiator, measured in dBi
Cable Loss: Attenuation in coaxial cable and connectors between the radio and antenna; often 0.5–3 dB per metre for coax at 2.4 GHz
Fade Margin: Extra link margin reserved to absorb temporary signal level drops due to multipath, rain, or obstruction
System Operating Margin: Total link margin after accounting for all losses and including the required fade margin; must be positive for reliable operation
45.1 In 60 Seconds
A link budget determines whether a wireless link will work by summing all gains (transmit power, antenna gains) and subtracting all losses (path loss, cable loss, obstacle attenuation, fade margin). If the received power exceeds the receiver sensitivity, the link succeeds. This calculation is essential for planning BLE beacon spacing, LoRa gateway placement, and Wi-Fi access point coverage in IoT deployments.
45.2 Learning Objectives
By the end of this chapter, you will be able to:
Calculate complete link budgets including all gains and losses
Apply the link success criterion to determine if wireless links will work
Compare protocol ranges for indoor, urban, and rural environments
Design BLE beacon deployments with proper coverage overlap
Plan LoRa gateway placement for urban and rural scenarios
For Beginners: Link Budget
A link budget is like a financial budget, but for signal strength instead of money. You start with how much signal power your transmitter sends out, then subtract losses (distance, obstacles, cable connections) and add gains (antenna boosts). If the signal that arrives is strong enough for the receiver to understand, your link works.
Sensor Squad: The Signal Budget!
“Time to plan our link budget!” announced Max the Microcontroller. “Think of it like counting your pocket money. We start with what we have and subtract what we spend.”
“I start with 14 dBm of transmit power – that is my pocket money,” said Sammy the Sensor. “Then the antenna boosts it by 2 dBi – like finding extra coins! But then I lose signal to the cable, the distance through the air, walls in the building, and we need a safety margin too.”
Lila the LED did the math. “So we add up all the gains and subtract all the losses. If the signal that arrives at the gateway is stronger than its receiver sensitivity – the minimum it can detect – then our link works! If not, we need to move closer, use a better antenna, or remove obstacles.”
“I love link budgets because they prevent surprises,” said Bella the Battery. “Instead of installing 200 sensors and discovering 40% cannot reach the gateway, we calculate BEFORE we deploy. It is like checking if you have enough money BEFORE you go shopping. A good link budget saves time, money, and my precious energy!”
45.3 Introduction
Deploying IoT devices without a link budget is like wiring a building without checking voltage ratings – you might get lucky, or you might waste weeks troubleshooting failed connections. A link budget systematically accounts for every gain and loss between transmitter and receiver, giving you a clear yes-or-no answer before a single device is installed. This chapter walks through the formula, worked examples for LoRa and BLE, and a real-world case study that shows what happens when link budgets are skipped.
Time: ~20 min | Difficulty: Intermediate | P07.C15.U05c
45.4 Link Budget Formula
The link budget sums all gains and subtracts all losses to predict received power:
where \(d_{km}\) is the distance in kilometres and \(f_{MHz}\) is the frequency in MHz.
Link Success Criterion:
\[P_{RX} > P_{sensitivity}\]
If received power exceeds receiver sensitivity, the link works. The difference \(P_{RX} - P_{sensitivity}\) is the link margin – extra headroom that absorbs real-world fading, rain, and seasonal vegetation changes.
45.5 Worked Example: Long-Range LoRaWAN Link Budget
Scenario: Agricultural sensor 5 km from gateway. Will the link work?
For 5 km in moderate rain (0.2 dB/km): \(5 \times 0.2 = 1\) dB. Foliage loss is roughly 0.3-0.4 dB/metre through dense vegetation. If the path crosses 20 metres of trees: \(20 \times 0.35 = 7\) dB. Combined: 1 + 7 = 8 dB loss still leaves over 25 dB margin for seasonal variations, meaning the link remains reliable year-round.
Try It: Link Budget Calculator
Adjust the parameters below to explore how transmit power, antenna gains, distance, and frequency affect the link budget.
45.6.3 Rural Open Field (n=2.2, minimal obstacles)
Protocol
Frequency
TX Power
Sensitivity
Maximum Range
Application
LoRaWAN
868/915 MHz
14 dBm
-137 dBm
10-15 km
Farm sensors
Sigfox
868/915 MHz
14 dBm
-142 dBm
15-30 km
Remote monitoring
NB-IoT
700-2100 MHz
23 dBm
-141 dBm
10-35 km
Agricultural IoT
45.7 BLE Beacon Placement Example
Scenario: Retail store wants to deploy BLE beacons for customer proximity detection. Store is 50 m x 30 m with concrete walls, metal shelving, and merchandise.
Requirements:
Detect customers within 3-5 metre radius of beacon
Coverage for entire store
Minimise beacon count (cost)
Link Budget Analysis:
Beacon specifications:
- TX power: 0 dBm (1 mW - typical iBeacon)
- Antenna: 0 dBi (chip antenna)
- Frequency: 2.4 GHz
Smartphone receiver:
- Sensitivity: -95 dBm (typical)
- Antenna: 0 dBi
Environment: Indoor retail (n = 3.5, metal shelving)
Required detection distance: 5 metres
FSPL at 5 m, 2.4 GHz:
L_FSPL = 20 log(0.005) + 20 log(2400) + 32.45
= -46.02 + 67.60 + 32.45
= 54.03 dB
Environmental excess loss (n=3.5 vs n=2.0):
L_env = 10(3.5 - 2.0) log(5) = 10.5 dB
Total path loss: 54.03 + 10.5 = 64.53 dB
Received power: 0 dBm - 64.53 dB = -64.53 dBm
Sensitivity: -95 dBm
Margin: -64.53 - (-95) = 30.47 dB ✓ (good!)
The 30 dB margin accounts for metal shelving attenuation, customer body blocking, and smartphone orientation variability – all significant in a retail environment.
Beacon Placement Grid:
Figure 45.1: Retail store BLE beacon placement with six 5-metre coverage zones
Beacon Spacing Calculation:
Coverage radius per beacon: 5 metres (conservative, accounting for obstacles)
Coverage area per beacon: pi x 5^2 = 78.5 sq m
Store area: 50 x 30 = 1500 sq m
Minimum beacons needed: 1500 / 78.5 = 19.1 -> 20 beacons
With 30% overlap for handoff: 20 x 1.3 = 26 beacons
Recommended deployment: 24-26 beacons in grid pattern with 8-10 metre spacing.
Try It: BLE Beacon Coverage Estimator
Estimate how many BLE beacons you need for a given store area and detection radius.
Gateway location: Rooftop, 30 m height
Sensor location: Street level, 2 m height
Frequency: 915 MHz
TX power: 14 dBm
RX sensitivity: -137 dBm (SF12)
Urban log-distance path loss model:
L(d) = L_0 + 10(4.0) log(d/d_0) + 15 dB (building penetration)
At 2 km distance (d_0 = 1 m, L_0 = 31.7 dB at 915 MHz):
L = 31.7 + 40 log(2000) + 15 = 31.7 + 132.0 + 15 = 178.7 dB
Link budget:
TX: 14 dBm
Path loss: -178.7 dB
RX: 14 - 178.7 = -164.7 dBm
Sensitivity: -137 dBm
Margin: -164.7 - (-137) = -27.7 dB ✗ LINK FAILS!
Urban realistic range: 1-2 km
45.8.2 Rural Deployment (Open Field, n=2.2)
Gateway location: 10 m mast
Sensor location: Ground level
Frequency: 915 MHz
TX power: 14 dBm
RX sensitivity: -137 dBm (SF12)
Rural log-distance path loss model:
L(d) = L_0 + 10(2.2) log(d/d_0) + 5 dB (foliage/ground reflection)
At 10 km distance (d_0 = 1 m, L_0 = 31.7 dB):
L = 31.7 + 22 log(10000) + 5 = 31.7 + 88.0 + 5 = 124.7 dB
Link budget:
TX: 14 dBm
Path loss: -124.7 dB
RX: 14 - 124.7 = -110.7 dBm
Sensitivity: -137 dBm
Margin: -110.7 - (-137) = 26.3 dB ✓ Link works
Rural realistic range: 10-15 km
45.8.3 Coverage Comparison Visualization
Figure 45.2: LoRaWAN urban vs rural coverage showing 5-10x range difference
Key Insight: Same hardware, 5-10x range difference based purely on propagation environment!
Alternative View: Link Budget Waterfall
This variant shows the same propagation concepts as a link budget waterfall diagram – how signal strength diminishes step-by-step from transmitter to receiver.
Figure 45.3: Link budget waterfall showing how signal power changes from transmitter through path losses to receiver
Reading the Waterfall: Start at +14 dBm TX power, add antenna gains (green), subtract all losses (orange), and check if received signal exceeds sensitivity. Positive link margin means a reliable link.
45.9 Real-World Case Study: LoRaWAN Gateway Placement for Smart Agriculture
A precision agriculture company needed to cover 2,000 acres (8.1 km2) of mixed terrain – flat cropland, rolling hills, and a tree-lined river corridor – with LoRaWAN soil sensors reporting every 15 minutes.
Initial Design (Desktop Calculation Only)
The engineering team used free-space path loss to estimate that two gateways at 10-metre mast height would cover the entire area (5 km radius each at SF12). They deployed 800 sensors and two gateways.
Result After 3 Months
68% of sensors connected reliably (544 of 800)
22% had intermittent connectivity, losing 30-50% of readings
10% never connected at all (80 sensors in the river corridor)
Root Cause: Terrain and Vegetation Effects Not Modelled
Desktop calculation (free space, n=2.0):
Gateway TX: 27 dBm (500 mW, with antenna)
FSPL at 4 km: 20*log(4) + 20*log(915) + 32.45 = 103.7 dB
Received: 27 - 103.7 = -76.7 dBm
Sensitivity: -137 dBm
Margin: 60.3 dB (looks excellent!)
Actual conditions (rural with vegetation, n=2.8):
Additional loss: 10*(2.8-2.0)*log(4000) = 28.8 dB
Tree corridor loss: 15 dB (dense deciduous canopy in summer)
Hill diffraction loss: 8 dB (for 12% of sensors behind ridgeline)
Actual received: -76.7 - 28.8 - 15 - 8 = -128.5 dBm
Margin: -128.5 - (-137) = 8.5 dB (marginal!)
Worst-case with summer foliage: fails for riverside sensors
Corrected Design (Field-Validated)
The team added three more gateways at strategic locations – one on a grain elevator near the river, one on an existing barn, and one on a hilltop utility pole. They also raised mast heights from 10 m to 15 m.
Metric
Original (2 GW)
Corrected (5 GW)
Sensor connectivity
68%
99.2%
Average link margin
12 dB
22 dB
Message delivery rate
71%
98.5%
Infrastructure cost
$4,000
$10,000
Lost crop data (annual cost)
$45,000
$2,000
Lesson: Never rely solely on free-space path loss. Field surveys with a test transmitter at multiple locations take one day but prevent months of troubleshooting. The additional $6,000 in gateway infrastructure saved $43,000 annually in lost data value. For every $1 spent on proper link budget analysis, this deployment saved $7 in remediation costs.
Common Pitfalls
1. Omitting Cable and Connector Losses From the Link Budget
A 5 m run of LMR-400 coax at 2.4 GHz loses about 1.5 dB. Multiple connectors add another 0.5 dB. Ignoring these losses overestimates received power by 2 dB. Fix: measure or calculate all cable and connector losses and include them explicitly in the link budget.
2. Not Adding a Fade Margin
A link budget that gives exactly 0 dB margin will fail whenever the channel fades slightly. Fix: add 10–20 dB fade margin depending on the link criticality and environment; more for outdoor LOS links in rain-prone areas.
3. Using Antenna Gain Figures From the Wrong Plane
A directional antenna may have 10 dBi in the boresight direction but 0 dBi off-axis. If the antenna is not perfectly aligned, the actual gain could be much lower than the datasheet maximum. Fix: use the antenna’s gain at the expected pointing error angle, not the maximum boresight gain.
🏷️ Label the Diagram
Code Challenge
45.10 Summary
Link budget calculation accounts for all gains (antennas) and losses (path, cables, obstacles) to predict if a link works
FSPL formula: \(L = 20\log_{10}(d_{km}) + 20\log_{10}(f_{MHz}) + 32.45\) – always verify whether distance is in km or metres before applying
Link success criterion: Received power must exceed receiver sensitivity; the difference is your link margin
Urban vs rural coverage differs by 5-10x for the same LoRa hardware due to path loss exponent differences
BLE beacon deployments require 20-30% coverage overlap for reliable handoffs
Always validate with field measurements – desktop calculations can overestimate range by 2-5x if terrain and vegetation are not modelled