Skip to content
IoT Crest

LoRaWAN explained: range, data rates and when to use it

Updated , 7 min read

LoRaWAN explained: how LoRa radio and the LoRaWAN network layer differ, what range to expect, how spreading factors work, and when to pick it.

This article covers the difference between LoRa and LoRaWAN, how a network is built, what decides range and data rate, and when it is the right choice. It does not cover regional frequency plans in detail, network server configuration, or the LoRa physical layer mathematics.

A sensor in a field, a water meter in a basement, a bin in a car park: none of these has Wi-Fi nearby, none can afford a cellular subscription and a large battery, and none needs to send more than a few bytes now and then. LoRaWAN, one of several low-power wide-area network (LPWAN) technologies, was designed for exactly that gap, and it does the job well as long as you understand what it trades away to get there.

LoRa and LoRaWAN are two different things

LoRa is a radio modulation technique. It is a way of encoding bits onto a radio signal that lets a receiver pick out a very weak signal from the noise, at the cost of sending slowly. It is proprietary to one chip manufacturer (Semtech) and is used in the unlicensed sub-gigahertz bands, which differ by region. On its own, LoRa lets two radios exchange packets over a long distance. It says nothing about addressing, security, networks or how many devices can share the air.

LoRaWAN is the network protocol built on top of LoRa. It is an open specification maintained by the LoRa Alliance, which publishes the LoRaWAN specification and regional parameters, and it defines how devices join a network, how packets are addressed and encrypted, how gateways forward them, how the network manages data rates, and how a device can receive messages back. When people say “a LoRaWAN sensor” they mean a device that speaks this protocol, and it needs a LoRaWAN network to talk to.

The distinction matters when you shop. Two LoRa modules can be made to talk to each other with a few lines of code, which is fine for a private point-to-point link. A LoRaWAN device needs a gateway and a network server, and in return gets security, scale, and interoperability with any other LoRaWAN network.

How a LoRaWAN network is built

A LoRaWAN network has four parts. End devices (the sensors) transmit packets whenever they have something to say. Gateways listen on several channels at once and forward every packet they hear, over an ordinary internet connection, to a network server. The network server deduplicates packets heard by more than one gateway, checks their integrity, manages each device’s data rate, and hands the payload to an application server. The application server decrypts the payload and does whatever the application does with it: store it, display it, forward it as an MQTT message.

end devices gateway hears all channels LoRa radio network server dedupe, ADR, MIC internet application decrypt, store, MQTT gateway 2 same packet, two gateways: server keeps one
Diagram: end devices broadcast over LoRa; every gateway in range forwards the packet over the internet to a network server, which removes duplicates and passes the payload to the application.

Devices are not paired to a gateway. They broadcast, and every gateway in range forwards what it hears. Adding a gateway simply widens coverage and improves reliability for every device near it. That is a different model from Wi-Fi, where a device associates with one access point, and it is a large part of why LoRaWAN scales.

Security is built in at two layers. A network session key protects the packet’s integrity between the device and the network server; an application session key encrypts the payload between the device and the application server, so the network operator cannot read the data. Devices obtain both by a join procedure, using credentials programmed at manufacture.

You can use a public network run by an operator, a community network, or your own private one with your own gateways and server. The devices do not care which.

Range: what to expect

LoRa’s selling point is range, and the numbers quoted are real under the right conditions and misleading under the wrong ones. With a gateway antenna mounted high with a clear view, and a device outdoors, links across a rural area of several kilometers are routine, and much longer distances have been demonstrated with line of sight. In a town, with the gateway on a rooftop and devices at street level among buildings, expect a small number of kilometers. Indoors, or with the device in a basement or a metal enclosure, expect far less, and expect the data rate to drop to the slowest setting to keep the link at all.

The rules are the same as for any radio. Height at the gateway is the single most valuable thing you can buy; a gateway on a mast covers many times the area of the same gateway on a desk. Line of sight beats everything. Sub-gigahertz frequencies pass through walls and foliage better than Wi-Fi frequencies, which is part of why LoRa reaches where Wi-Fi does not, but every wall still costs signal.

Plan coverage by testing rather than by quoted range. A device that reports its signal strength, carried around the site, produces a map that no datasheet can.

Data rates and spreading factors

LoRa trades speed for reach through a setting called the spreading factor. A higher spreading factor sends each bit more slowly and more redundantly, so the receiver can recover it from a weaker signal, at the cost of a much longer transmission. A lower spreading factor sends faster and needs a stronger signal. Each step up in spreading factor roughly doubles the time a packet spends on the air.

Three consequences follow. Range and data rate are the same knob: the farthest devices are the slowest. Time on air is battery: a packet sent at the slowest setting keeps the radio transmitting for a much longer time than the same packet at the fastest, and that shows up directly in the power budget. And time on air is also capacity: because every device shares the same channels, and regulations in most regions limit how much of the time a device may transmit, slow packets crowd the air and reduce how many devices a gateway can serve.

The network server manages this with adaptive data rate. A device that is heard strongly is told to use a faster setting and lower power; one that is barely heard is told to slow down. Devices that move should not rely on it, because the setting that worked in one place fails in the next; fixed devices should let the server tune them.

Payloads are small by design. Depending on region and data rate, a packet may carry a few dozen to a couple of hundred bytes, and the regulatory duty limit means a device might send only a handful of messages an hour at the slowest rates. That is plenty for a meter reading and useless for anything chatty.

Device classes A, B and C

LoRaWAN defines three classes that decide when a device can receive.

Class A devices transmit when they choose, then open two short receive windows immediately afterward. That is the only time the network can send them anything. It is the lowest-power class and the one almost all battery sensors use: the device sleeps until it has something to say, sends, listens briefly, and sleeps again. A command from the network waits until the device next speaks.

Class B devices additionally open scheduled receive windows, synchronized by beacons from the gateways, so the network can reach them at known times without waiting for an uplink. That costs some power and needs gateways that transmit beacons.

Class C devices listen continuously except when transmitting. They can be reached at any time and use the most power, so they are mains-powered devices such as actuators, valves and street-lighting controllers.

Class A: transmit, then two short receive windows uplink two receive windows, then sleep: a command waits for the next uplink Class B: scheduled receive windows as well uplink windows at known times, synchronized by gateway beacons Class C: listens continuously except when transmitting uplink reachable at any time; the most power, so mains-powered devices
Diagram: when each LoRaWAN device class can receive. Class A opens two short receive windows after each of its own transmissions and sleeps otherwise; Class B adds receive windows at scheduled times set by gateway beacons; Class C listens all the time except while it transmits.

Choose Class A unless you need to send commands to the device promptly, and in that case ask whether it can be mains powered and made Class C.

When to use LoRaWAN and when not to

Use it when the device is far from any Wi-Fi, when it must run for years on a battery, when it sends a few bytes a few times an hour, and when you can put a gateway somewhere high or there is already a public or community network covering the site. Meters, environmental sensors, agriculture, asset presence, tank levels and occupancy counters all fit. Private networks make sense for a campus, a farm or an industrial site where you own the roof.

Do not use it for anything that needs bandwidth, low latency, or frequent messages. It cannot carry audio, images or video. It is a poor fit for devices that move quickly across regions or that need to be commanded within seconds. It struggles deep inside large buildings unless you install indoor gateways. And a private network is a real system to run: gateways, backhaul, a network server, and someone who understands the frequency plan.

If the device needs to send more, or needs to be reached quickly, or sits where no gateway can be, cellular IoT is the neighbor to consider; the article on NB-IoT and LTE-M covers that side, and the IoT protocols explainer places all of them in one stack. If the devices need more data but stay on a site you control, Wi-Fi HaLow is the other option: Wi-Fi below 1 GHz, with less reach than LoRaWAN and ordinary IP networking. Between the two of them and Wi-Fi, almost every fixed sensor has a sensible radio. LoRaWAN is the one for the far, slow, patient end of that range, and within it there is little else that competes.

Written by the IoT Crest editorial team. Facts in this article follow the editorial policy: only well-established behavior is stated and no figures are invented.

More from Connectivity

  1. What is LPWAN? Low-power wide-area networks

    What LPWAN is, what it gives up for range and battery life, how NB-IoT, LTE-M, LoRaWAN and Sigfox differ, who runs each network and how to choose.

  2. 5G RedCap: what it is and where it fits

    5G RedCap explained: what Reduced Capability 5G cuts from full 5G, how it compares with LTE-M, NB-IoT and Cat 1 bis, eRedCap, and which devices should use it.

  3. Wi-Fi HaLow (802.11ah): range, speed and uses

    Wi-Fi HaLow explained: how 802.11ah uses sub-1 GHz bands for long range, what speed and battery life to expect, how it compares with LoRaWAN, and where it fits.

  4. What is an IMEI number? Digits, checks and uses

    What is IMEI: the 15-digit ID of a phone or cellular module, how its TAC, serial and check digit work, how it differs from IMSI and ICCID, and where to find it.

  5. What is IMSI? The international mobile subscriber identity

    What is IMSI: the subscriber identity on every SIM, its MCC, MNC and MSIN digits, how networks hide it with temporary IDs and SUCI, and IMSI vs IMEI vs ICCID.

  6. What is an MNO? Mobile network operators vs MVNOs

    MNO meaning in telecoms: what a mobile network operator owns, MVNOs, MVNEs and MVNAs, what a PLMN is, and how to compare an MNO and an MVNO for IoT SIMs.

  7. 2.4 GHz vs 5 GHz: which Wi-Fi band IoT devices need

    2.4 GHz vs 5 GHz Wi-Fi for IoT: range, speed, channels 1, 6 and 11, why smart devices need 2.4 GHz, and how to fix pairing on a dual-band router.

  8. ICCID number explained: the SIM serial, digit by digit

    The ICCID number explained: what the SIM serial is, how its digits break down, how it differs from IMSI and IMEI, and where to find it on phones and modules.

  9. What is an M2M SIM card? How M2M and IoT SIMs differ from phone SIMs

    What an M2M or IoT SIM card is, how it differs from a regular phone SIM, where it is used, activation, the 2FF to MFF2 form factors, M2M eSIM and iSIM.

  10. IoT protocols explained: the radio, network and messaging layers

    IoT protocols explained layer by layer: radio and link protocols, the network and transport layers above them, messaging on top, and how to combine them.

  11. MQTT vs CoAP: which IoT messaging protocol to use

    MQTT vs CoAP compared for IoT devices: publish-subscribe over TCP against a REST-like protocol over UDP, delivery guarantees, power and when each one fits.

  12. MQTT explained: topics, QoS levels and retained messages

    MQTT explained: how a broker, publishers and subscribers fit together, how to name topics and use wildcards, what QoS levels promise and retained messages.

  13. NB-IoT vs LTE-M for cellular IoT devices

    NB-IoT vs LTE-M for cellular IoT devices: bandwidth and latency, mobility, power saving modes, coverage inside buildings, and which one to pick.

All connectivity articles

Sponsor an article in this topic

Sponsored articles and in-article link placements for IoT vendors, agencies and SEO buyers. Every sponsored piece is labeled, edited to the same standard as the rest of the site, and placed in the hub its readers already visit. Rates on request.

Ask a question

Ask a question

Spotted an error, or want a topic covered? It goes straight to the editors, who reply by email, WhatsApp or SMS.