LoRaWAN Airtime calculator, LoRa Packet duration calculation

This page mentions LoRaWAN Airtime calculator with formula used for LoRa Packet duration calculation. This calculator calculates LoRa Packet Time on Air.

Introduction: As mentioned below LoRaWAN packet consists of three main parts viz. preamble, header and payload. This is shown in the following figures. It is further categorized into implicit and explicit packet.

LoRaWAN packet structure

Implicit mode does not contain header part where as Explicit mode contains it. Following table mentions Spreading factor with time on air for Bandwidth of 125 KHz.

Spreading Factor (SF) Time On Air (ms)
7 41
8 72
9 144
10 289
11 578
12 991

LoRaWAN Airtime calculator used for LoRa Packet duration calculation

Spreading Factor (SF) (Range : 7-12) (input1) :

Code rate (CR) (Range: 1-4) (input2) :

Bandwidth (BW), KHz (125,250,500) (input3) :

Number of preamble symbols, (input4) :

Number of payload, bytes (input5) :

Header enabled (0)/disabled (1) (input6) :

Low Data Rate Optimization, 0/1 (input7)
(Note: Enter 1 for 125KHz, and SF>=11) :



Symbol period in ms (Output1):

Preamble period in ms (Output2):

Symbols in payload+header (Output3):

Payload duration in ms(Output4):

Packet duration in air, ms (Output5):

EXAMPLE#1 (LoRaWAN Airtime calculator, SF= 7):
INPUTS :SF = 7, CR =1, BW =125 KHz, Preamble Symbols = 8, Payload size = 10 bytes, Header = present, Low data rate optimization = disabled
OUTPUTS: Preamble duration = 12.544 ms , Header + Payload duration = 28.672, LoRa packet duration = 41.216 ms

EXAMPLE#2 : (LoRa Packet duration calculator , SF =11)
INPUTS :SF = 11, CR =1, BW =125 KHz, Preamble Symbols = 8, Payload size = 10 bytes, Header = present (i.e. enabled with value = 0) , Low data rate optimization = enabled (i.e. value = 1)
OUTPUTS: Preamble duration = 200.704 ms , Header + Payload duration = 376.832 ms, LoRa packet duration = 577.536 ms


Formula or Equations used for LoRaWAN Airtime calculation

Following formula/equations are used for LoRa Packet duration calculation. It calculates LoRa packet time while transmission in the air for LoRaWAN system.

LoRaWAN packet duration calculation formula

Following are the abbreviations of terms used in the formula.
Ts or TSym indicates symbol duration in msec
PL indicates Payload size in bytes
SF indicates spreading factor which ranges from 7 to 12
BW indicates bandwidth which can be 125 KHz, 250 KHz or 500 KHz
CRC indicates Cyclic Redundancy Check used for error detection of LoRaWAN packet, it can be either enabled (value =1) or disabled (value = 0), By default it is enabled.
Header ('H') can be implicit or explicit, i.e. H of value 0 indicates it is enabled and it is explicit mode where as H of value 1 indicates it is disabled and it is implicit mode.
Low Data Rate Optimize can be enabled (Value of DE = 1) or disabled (Value of DE = 0)
CR indicates Coding Rate (CR can be in the range from 1 to 4), By default it is 1
Tpreamble = Preamble duration, npreamble = Number of symbols in preamble
Tpayload = Payload and header duration
payloadSymbNb = Number of symbols in payload period

Also refer LoRa tutorial and LoRa technology basics which mentions LoRa system features, protocol stack, physical layer, MAC layer, frequency bands, LoRa Classes, LoRa transceiver etc.

LoRa Calculators


LoRa Wireless Related Links

Useful converters and calculators

RF and Wireless tutorials