LoRa & Meshtastic Range, Airtime and Battery Calculator
Model a LoRa packet, the link it travels on and the solar or battery power it takes to keep the node running.
Results
Preset estimateHourly traffic estimate
- Hourly TX duty
- 0.3181 %
- Usable battery
- 13.824 Wh
- No-sun runtime
- 11.02 days
US915 rules depend on the authorized radio mode. Select the FHSS option for the 902–928 MHz hopping occupancy screen.
Modem timing
- Symbol duration
- 8.192 ms
- Preamble time
- 165.888 ms
- Payload time
- 311.296 ms
- Payload symbols
- 38
- Low data rate optimization
- Off
Regional airtime screen
- Local TX time
- 11.452 s / h
- Hourly TX duty
- 0.3181 %
- Nominal occupied channel
- Inside selected band
Path & sensitivity
- Receiver sensitivity
- -131.52 dBm
- Friis path loss
- 105.58 dB
- Friis received level
- -83.28 dBm
- Friis available margin
- 48.24 dB
- Friis margin after target
- 33.24 dB
- Friis range at target margin
- 229.66 km
Battery & solar
- Daily consumption
- 1.254 Wh
- Daily solar harvest
- 2.6 Wh
- Daily net energy
- 1.346 Wh
- Usable stored energy
- 13.824 Wh
- No-sun days
- 11.02 days
- Solar-assisted runtime
- Energy balanced
- Break-even panel rating
- 0.96 W
Driver-neutral C and Python settings
C99
/* Semtech SX1262 PHY values. Map them to your radio driver and match the peer. */
#include <stdbool.h>
#include <stdint.h>
static const struct {
uint32_t frequency_hz, bandwidth_hz;
uint16_t preamble_symbols;
uint8_t spreading_factor, coding_rate_denominator, payload_bytes;
bool implicit_header, crc_enabled, low_data_rate_optimize;
} lora_config = {
.frequency_hz = 906875000,
.bandwidth_hz = 250000,
.preamble_symbols = 16,
.spreading_factor = 11,
.coding_rate_denominator = 5,
.payload_bytes = 32,
.implicit_header = false,
.crc_enabled = true,
.low_data_rate_optimize = false,
};
Python
# Semtech SX1262 PHY values. Map them to your radio driver and match the peer.
lora_config = {
"frequency_hz": 906875000,
"bandwidth_hz": 250000,
"preamble_symbols": 16,
"spreading_factor": 11,
"coding_rate_denominator": 5,
"payload_bytes": 32,
"implicit_header": False,
"crc_enabled": True,
"low_data_rate_optimize": False,
}
Worked example
Model a LoRa packet, the link it travels on and the solar or battery power it takes to keep the node running.
- Packet time on air
- 477.184 ms
- Hourly TX duty
- 0.3181 %
- Usable battery
- 13.824 Wh
- No-sun runtime
- 11.02 days
Formulas & assumptions
- Tsymbol = 2^SF / BW. BW is in Hz for seconds per symbol.
- Npayload = 8 + CRden × max(ceil((8PL − 4SF + 28 + 16CRC − 20IH) / (4(SF − 2DE))), 0). PL is the radio payload bytes, CRC is 1 when enabled, IH is 1 for implicit header and DE is 1 for LDRO.
- Tpacket = (Npreamble + 4.25 + Npayload) × Tsymbol. SX1262 and SX1276 use the same symbol count for SF7–SF12 with identical settings.
- Duty = local transmissions per hour × Tpacket / 3,600. In the US FHSS screen, occupancy is Tpacket times the busiest-channel packet count in the listed window.
- Load (Wh/day) = V × Σ(state current in A × state hours). Harvest = panel W × peak sun hours × yield. No-sun runtime = usable Wh / daily load.
- Friis loss = 20 log₁₀(4πd/λ). Hata uses an environment-specific intercept plus (44.9 − 6.55 log₁₀(hbase)) log₁₀(dkm).
Use the actual radio payload, header and CRC setting. Confirm the radio’s LDRO register when matching captures. Host-to-radio delay and channel access time are outside time on air.
EU profiles screen nominal occupied band edges and the chosen duty budget. The US FHSS option checks the selected dwell and channel-count criteria only. Equipment approval, actual spectral occupancy, power and local rules need their own checks.
Hata is available for 150–1,500 MHz, a 30–200 m base, a 1–10 m mobile and 1–20 km. Friis range is an unobstructed algebraic estimate. Receiver sensitivity depends on the hardware and packet error criterion.
Enter currents measured at the same battery-side voltage, including MCU and regulator load. Use winter peak sun hours and check the pack’s permitted charging temperature.
References
- Semtech SX1262 and datasheet
- Semtech SX126x airtime reference
- Semtech SX1276 airtime reference
- Meshtastic radio settings
- Meshtastic packet format and preamble
- CEPT ERC Recommendation 70-03, Annex 1
- 47 CFR §15.247, US 902–928 MHz
- Hata’s original land-mobile propagation model
- ITU-R P.525 free-space attenuation
Questions & answers
Does this LoRa calculator count headers and CRC?
Yes. Select the PHY header and CRC options. Include any Meshtastic or application header in the radio payload field so the bytes are counted once.
Why can changing payload by one byte increase LoRa airtime abruptly?
Payload bits occupy an integer number of coding blocks. Crossing a block boundary adds the full number of symbols for your selected coding rate.
What does energy-balanced mean for a solar node?
The entered average daily harvest meets the daily load. Use the no-sun runtime to size storage for consecutive cloudy days.