What Is a Geofence? How Geofencing Works, Uses and Examples
Quick answer
A geofence is a virtual boundary drawn around a real place on a map — a shop, a warehouse, a school or a home. When a phone or tracker crosses that invisible line, software notices and triggers an action, such as a push notification, a delivery update or a smart device switching on. That process is called geofencing, and it already runs quietly inside many everyday apps.
You have already used a geofence today
Most people meet geofencing long before they hear the word. You simply move, phone in pocket, and an app reacts to where you are.
The food delivery that knows you are close
Order a takeaway and the restaurant receives a signal when the rider enters the area around your building, while you get an update when the order is streets away. A small circular geofence sits around your address, and the rider crossing into it is the trigger.
The shop offer that arrives as you walk past
A coffee chain sends a discount just as you pass its store. This is location-based marketing in its simplest form: the retailer placed a virtual boundary around the shop, and entering it fires a push notification trigger — provided you gave the app location permission and kept notifications on.
The pet tracker that warns you instantly
Pet trackers let owners draw a safe zone around home and garden. If the dog slips out, the collar’s geolocation signal reports that it has left the zone and the owner is alerted within moments. The boundary does the watching, so nobody has to stare at a map.
The attendance app that clocks you in
Some workplaces use attendance apps that record arrival when a phone enters the site boundary. Delivery drivers, home carers and repair engineers check in automatically, removing paper timesheets and arguments about who arrived and when.

How a geofence works
Behind those moments is a short chain. Someone creates the fence in software: they choose a point on a map using latitude and longitude, then set how far the boundary stretches. A device, usually a smartphone, keeps checking its own position. When its position matches the fence’s rule, the app responds.
The technologies that find the device
GPS is the best-known method and works well outdoors. Indoors or in dense streets, phones lean on Wi-Fi signals and cellular towers to estimate position. Warehouses and hospitals often use RFID tags and readers instead, tracking equipment rather than people. Modern phones blend these location-based services and use whichever signal is most reliable — which is why fast mobile connections help, as our guide to how 5G networks work explains.
Circle or polygon: the shape of the fence
The simplest fence is a circle: one central point plus a radius, from about 50 metres around a café to several kilometres around an airport. Sites with awkward shapes use polygon fences — points joined to follow a car park, campus or depot exactly, avoiding false alerts from the road behind a wall.
Enter, exit and dwell: the three triggers
An enter trigger fires when a device crosses into the zone, as with the shop offer. An exit trigger fires on leaving, like the pet tracker warning. A dwell trigger fires only when a device stays inside for a set dwell time — useful for rewarding real visits rather than passers-by, or spotting vehicles stuck at a depot.

Geofence vs geotargeting vs beacon
These three location terms are often confused. They differ in precision, timing and technology:
| Feature | Geofencing | Geotargeting | Beacon |
|---|---|---|---|
| Core idea | A virtual boundary triggers an action when crossed | Ads shown to people in a chosen area, often using past location and interests | A small Bluetooth device broadcasts to nearby phones |
| Typical range | About 50 metres to several kilometres | A neighbourhood, city or region | A few metres, inside one building or aisle |
| Timing | Real time, on entering or leaving | Real time or based on where someone has been | Real time, only while very close |
| Technology | GPS, Wi-Fi and cellular positioning | Location data plus audience criteria | Bluetooth Low Energy hardware on site |
| Example | Offer sent as you reach the store | Ad shown to people who visited a showroom last month | Product details beside a shelf |
In short, geotargeting decides who should see a message and roughly where they are, a beacon handles very close proximity indoors, and a geofence is the precise tripwire that reacts the moment a boundary is crossed. Marketers sometimes combine them — and the aggressive cousin is geoconquesting, placing a fence around a competitor’s store so your offer appears when shoppers visit them.
Where geofencing is used
Marketing and retail
Shops and restaurants send timely offers, remind app users about loyalty points, or request a review after a visit. With permission and restraint it feels helpful; done constantly, users switch it off.
Logistics and fleet management
Delivery firms draw fences around depots, ports and customer sites. Dispatchers get automatic proof of arrival and departure, customers get honest estimates, and delays become visible without phoning every driver.
Smart homes
Leaving the home zone can lock doors, turn down heating and arm cameras. Entering the street on the way back reverses it, so the house is warm when the door opens.
Parenting and pet safety
Family apps alert parents when a child arrives at school or leaves an agreed area, and pet collars do the same for animals. The real value is the quick exit alert, not tracking every step.
Workforce management
Beyond attendance, site fences can send safety reminders when workers enter hazardous areas and confirm lone workers reached a remote job — which is why clear workplace policies matter.
Healthcare
Hospitals use RFID-based fences to track beds, wheelchairs and monitors, while some care homes use gentle exit alerts for patients who may wander. The aim is safety, and finding equipment fast in an emergency.
Benefits — and real limits
The benefits are practical: actions happen automatically at the right place and moment, delivery and check-in records create themselves, and alerts arrive while they are still useful. But the technology has honest limits:
- Battery drain: constant location checking uses power. Good apps check less often until a device nears a fence, but heavy location use still shortens battery life.
- Accuracy in cities: GPS can drift between tall buildings, in tunnels, multi-storey car parks and indoors, so a fence may trigger late, early or on the wrong street.
- GPS spoofing: determined users can fake a phone’s location, so a geofence alone should never be treated as proof for pay, security or legal decisions.
- Permission dependence: if location access or notifications are off, the fence exists but nothing happens.
Privacy: is geofencing legal and ethical?
Geofencing is legal in many places when done with clear consent — you install an app, agree to its terms and switch location permission on, knowing offers or check-ins will follow. Privacy and data protection laws in many countries require companies to explain what location data they collect, why, and how long they keep it, and to let people withdraw consent. Secretly tracking employees off duty, or collecting locations from people who never agreed, crosses ethical lines even where enforcement is weak.
The comparison with online tracking helps. Websites remember you through small files in your browser, as our explainer on what a cookie is and how it works describes; a geofence does something similar in the physical world. The sensible rule is the same for both: check which apps hold location permission, choose “only while using the app” where possible, and remove access from apps with no good reason to know where you are.
Frequently asked questions
Does a geofence work without the internet?
Partly. GPS itself needs no internet, and some apps store fences on the phone and detect crossings offline. But sending an alert, updating a dashboard or recording attendance on a company system needs a mobile or Wi-Fi connection.
How accurate is a geofence?
Outdoors with a clear sky, phone positioning is often accurate within a few metres, so small fences work well. Indoors, underground or among high-rise buildings, accuracy can fall to tens of metres, which is why city-centre fences sometimes trigger on a parallel street.
Can I create a geofence myself?
Yes. Pet trackers, family safety apps and smart home apps let you draw a zone on a map in minutes, with no technical skill. Businesses needing many fences or custom triggers usually use a geofencing platform or an app developer.
Does geofencing drain the battery?
It can, but modern phones limit the cost: operating systems monitor saved fences efficiently and wake apps only near a boundary. Continuous live tracking, like navigation or a pet tracker in live mode, uses far more power.
A geofence is a simple idea with wide reach: draw an invisible line, decide what happens when it is crossed, and let location technology do the rest. If you enjoy plain-English explainers like this, browse more technology explainers in our technology section.





