NewAI Part GeneratorFree to get started
FREE TOOL

LoRa airtime calculator

Before you settle on a spreading factor, this LoRa airtime calculator shows how long a packet stays on air at your bandwidth, coding rate and payload. See how often you may send it under a duty-cycle limit, and how each spreading factor compares.

Examples
Coding rate
bytes

Whole radio payload, 1 to 255 bytes.

symbols

The register value. The radio adds 4.25 symbols on air.

Low data rate optimize

Auto turns it on when the symbol time exceeds 16 ms.

%

EU 868.0 to 868.6 MHz: 1 %. 863 to 865 MHz: 0.1 %.

Time on air

41.216 ms

Symbol time
1.024 ms
Preamble
12.54 ms 8 + 4.25 symbols
Payload symbols
28
Payload and header time
28.67 ms
Low data rate optimize
Off automatic
Nominal bit rate
5.469 kbit/s
Packets per hour at 1 %
873
Shortest interval at 1 %
4.122 s start to start
Packets per day, 30 s allowance
727 TTN fair use

PL counts every byte of the radio payload. On LoRaWAN that includes the MAC header and message integrity code as well as your application data.

Time on air against payload size, by spreading factor
100m110050100150200250Payload (bytes)Time on air (s)10 bytes
SF7SF8SF9SF10SF11SF12

Every spreading factor at 125 kHz, 10 bytes

SFSymbolTime on airPer hour at 1 %Interval
SF71.02 ms41.22 ms8734.122 s
SF82.05 ms72.19 ms4987.219 s
SF94.1 ms144.4 ms24914.44 s
SF108.19 ms288.8 ms12428.88 s
SF1116.4 ms577.5 ms6257.75 s
SF1232.8 ms991.2 ms361 min 39 s

How do you calculate LoRa airtime?

Time on air is (npreamble + 4.25 + npayload) × 2^SF ÷ BW. A 10 byte packet at SF7, 125 kHz and coding rate 4/5 has 28 payload symbols of 1.024 ms each and an 8 symbol programmed preamble, so it takes 41.22 ms. The same packet at SF12 takes 991.2 ms. At a 1 % duty-cycle limit you can send the SF7 packet 873 times an hour.

LoRa airtime formula (time on air)

Semtech’s SX1276 datasheet splits a packet into a preamble and a payload section, both counted in symbols of the same length.

Ts = 2^SF ÷ BW     Tpreamble = (npreamble + 4.25) × Ts
Ts
symbol time in s
SF
spreading factor, 6 to 12
BW
bandwidth in Hz
npreamble
programmed preamble length (register value)

The payload section, including the header when there is one, takes this many symbols:

npayload = 8 + max( ceil( (8·PL − 4·SF + 28 + 16·CRC − 20·IH) ÷ (4·(SF − 2·DE)) ) × (CR + 4), 0 )
PL
payload bytes, 1 to 255
CRC
1 with a payload CRC, 0 without
IH
0 with an explicit header, 1 in implicit mode
DE
1 with low data rate optimize, 0 without
CR
1 for 4/5 up to 4 for 4/8
Tpacket = Tpreamble + npayload × Ts

A duty-cycle limit D (as a fraction) then sets the fastest repeat rate:

shortest interval = Tpacket ÷ D     packets per hour = floor(3600 × D ÷ Tpacket)

Worked examples

Example 1: 10 bytes at SF7, 125 kHz, CR 4/5

Ts = 128 ÷ 125,000 = 1.024 ms. The preamble is 12.25 symbols, 12.54 ms. The ceiling term is ceil((80 − 28 + 28 + 16) ÷ 28) = 4, so npayload = 8 + 4 × 5 = 28 symbols, or 28.67 ms. Total: 41.22 ms.

Example 2: 51 bytes at SF12, 125 kHz, CR 4/5

Ts = 32.77 ms, above 16 ms, so low data rate optimize is on and DE = 1. The packet has 63 payload symbols and takes 2.466 s. At 1 % that is 14 packets an hour, one every 4 min 7 s.

Example 3: 20 bytes at SF9 in a 0.1 % band

Time on air is 185.3 ms. A 0.1 % limit allows 3.6 s of airtime per hour, so only 19 of these packets fit, one every 3 min 5 s.

LoRa time on air by spreading factor and payload

125 kHz, coding rate 4/5, programmed preamble 8, explicit header, CRC on, low data rate optimize automatic.

SF10 bytes20 bytes51 bytes100 bytes222 bytes
SF741.22 ms56.58 ms102.7 ms174.3 ms348.4 ms
SF872.19 ms102.9 ms184.8 ms307.7 ms614.9 ms
SF9144.4 ms185.3 ms328.7 ms554 ms1.107 s
SF10288.8 ms370.7 ms616.4 ms1.026 s2.009 s
SF11577.5 ms741.4 ms1.315 s2.216 s4.428 s
SF12991.2 ms1.319 s2.466 s3.94 s8.036 s

Send rate at a 1 % duty-cycle limit for 20 byte packets

The same radio settings with a 20 byte payload, and the count under a 30 s per day allowance.

SFNominal bit rateTime on airPackets per hourShortest intervalPackets per day (30 s)
SF75.47 kbit/s56.58 ms6365.658 s530
SF83.13 kbit/s102.9 ms34910.29 s291
SF91.76 kbit/s185.3 ms19418.53 s161
SF10977 bit/s370.7 ms9737.07 s80
SF11537 bit/s741.4 ms481 min 14 s40
SF12293 bit/s1.319 s272 min 12 s22

What limits a real LoRa link

European limits come from ETSI EN 300 220-2 Annex B and apply per sub-band, as a duty-cycle limit or polite spectrum access, so check the band you are in:

  • 863 to 865 MHz: 25 mW e.r.p., 0.1 %.
  • 865 to 868 MHz: 25 mW e.r.p., 1 %.
  • 868.0 to 868.6 MHz: 25 mW e.r.p., 1 %.
  • 868.7 to 869.2 MHz: 25 mW e.r.p., 0.1 %.
  • 869.4 to 869.65 MHz: 500 mW e.r.p., 10 %.
  • 869.7 to 870 MHz: 25 mW e.r.p., 1 %.

National rules can differ from these. In the US, the limit that bites is dwell time: 47 CFR 15.247 holds a 902 to 928 MHz frequency hopper to 0.4 s average occupancy per channel, so slow settings need a shorter packet or hopping within the packet. Semtech advises a TCXO for bandwidths under 62.5 kHz, to meet the receiver’s frequency error tolerance. This LoRa time on air calculator uses the SX127x formula. Other LoRa chips can differ in detail, so check the datasheet for the part you use.

Glossary

Spreading factor (SF)
Log base 2 of the chips per symbol. Higher SF gives more range and sensitivity at a lower data rate.
Bandwidth (BW)
The chirp bandwidth. LoRa sends one chip per second per hertz of bandwidth.
Coding rate (CR)
Forward error correction overhead, from 4/5 (least) to 4/8 (most).
Time on air
The total duration of one transmitted packet, from the first preamble symbol to the last payload symbol.
Duty cycle
The fraction of time a transmitter is on. European sub-bands limit it to values such as 1 % or 0.1 %.
Implicit header
A packet with no header, where both ends already know the payload length, coding rate and CRC setting.
Low data rate optimize
A modem bit that improves robustness to frequency drift on long symbols, required above 16 ms per symbol.

Related guides

Frequently asked questions

How do you calculate LoRa time on air?

Add the preamble time, (npreamble + 4.25) × Ts, to the payload time, npayload × Ts, where Ts = 2^SF ÷ BW. The number of payload symbols comes from the Semtech formula shown on this page, which depends on the payload size, spreading factor, coding rate, CRC, header mode and low data rate optimize.

What is the time on air of a 10 byte packet at SF7 and 125 kHz?

41.22 ms at coding rate 4/5 with an 8 symbol programmed preamble, explicit header and CRC on. The same packet at SF12 takes 991.2 ms.

Why does each spreading factor take about twice as long?

Each step up in SF doubles the symbol time, because a symbol carries 2^SF chips at a fixed chip rate equal to the bandwidth. It also adds one bit per symbol, so the packet usually needs fewer symbols and the time grows a little less than twice per step. SF10 to SF11 at 125 kHz is the exception, because low data rate optimize turns on: a 51 byte packet goes from 616.4 ms to 1.315 s, 2.13 times as long.

How many LoRa messages can I send per hour at 1 % duty cycle?

A 1 % limit allows 36 s of airtime per hour. A 41.22 ms packet fits 873 times, one every 4.122 s. A 991.2 ms packet at SF12 fits 36 times.

What is low data rate optimize and when is it needed?

It is a modem setting that makes long packets more tolerant of frequency drift. The SX1276 datasheet mandates it when the symbol time exceeds 16 ms, which at 125 kHz means SF11 and SF12. It lowers the bits per symbol in the payload, so the packet gets longer, and both ends must use the same setting.

Should I enter 8 or 12 for the preamble length?

Enter the programmed register value. The radio adds 4.25 symbols on air, so a register value of 8 sends 12.25 symbols. Semtech’s datasheet describes this as “12 symbols (programmed register PreambleLength=8)”.

What is the LoRa airtime limit on The Things Network?

The public community network limits each node to 30 s of uplink airtime per day and 10 downlink messages per day. That is on top of the legal duty-cycle limit, and it does not apply on a private network.

Can I use this as a LoRaWAN airtime calculator?

Yes. Enter every byte of the radio payload: on LoRaWAN that is your application data plus 13 bytes of overhead when no MAC options are sent (MAC header, frame header, port and message integrity code). Set the duty-cycle field to your band’s limit and the results show the send rate it allows.

What is the LoRa data rate at SF7 and SF12?

At 125 kHz and coding rate 4/5 the nominal bit rate is 5.47 kbit/s at SF7 and 293 bit/s at SF12. The calculator lists the nominal bit rate for your own settings.

More free PCB tools

See all free electronics tools →

Sources

Design the whole board, not one number

ProtoFlow is free AI PCB design software: describe a circuit and get a schematic with real parts, PCB layout with an autorouter, SPICE simulation and Gerber files. Native KiCad, Altium and EAGLE import and export. Free on macOS, Windows and Linux.

Get for Mac

Free to start. No card required.