What is legitimate interest?
The GDPR allows you to process personal data only on one of six legal bases (article 6(1)). Consent is one of them. Legitimate interest, point (f), is another: processing is lawful if it is "necessary for the purposes of the legitimate interests pursued by the controller or by a third party", unless the interests or fundamental rights of the people concerned override those interests, especially when they are children. Public authorities cannot use it for their tasks.
The EU Court of Justice reads this as three conditions that must all be met:
- A legitimate interest. The interest must be lawful, clearly described and real at the time of processing. It does not have to be laid down in law.
- Necessity. The processing must be strictly necessary for that interest. If the same goal can reasonably be achieved just as well in a less intrusive way, or with less data, the condition is not met.
- Balancing. The interests and rights of the people concerned must not override yours. What they can reasonably expect, the scale of the processing and its impact on them weigh heavily.
You must carry out and document this assessment before you start, tell people which legitimate interest you rely on (article 13(1)(d)) and respect their right to object (article 21). For direct marketing, that right is absolute: once someone objects, you stop.
Legitimate interest is not a lighter version of consent. The EDPB writes that it should not be chosen because it seems less demanding, and the Court of Justice says the legal bases other than consent must be interpreted restrictively.
Why it doesn't replace consent for cookies
Two sets of rules apply to cookies, and they ask different questions:
| ePrivacy Directive, article 5(3) | GDPR, article 6(1) | |
|---|---|---|
| What it covers | Storing or reading information on a device: cookies, local storage, pixels, fingerprinting | Processing of personal data |
| What it asks | Did the visitor consent, or is it strictly necessary? | Which of the six legal bases applies? |
| Legitimate interest? | No. The only exceptions are transmission and strictly necessary storage | Yes, as one of the six legal bases |
The ePrivacy rule comes first. It allows storing or reading information on a visitor's device only with consent, unless it is needed to transmit a communication or strictly necessary for a service the visitor explicitly asked for. There is no exception for a legitimate interest. Every EU country has written this rule into national law, which is why you need a cookie banner even if you think you have a good reason to track.
The GDPR then applies to what you do with the data. The EDPB says that when you use cookies or other tracking techniques for marketing, consent is likely to be the right legal basis both for placing and reading them and for the processing that follows, which normally rules out legitimate interest. In practice: once you need consent for the cookie, you also base the tracking behind it on consent.
The rule does not depend on what kind of cookie it is. First-party or third-party, set by a script or by a server: what counts is the purpose. More in server-side tracking and consent.
What the EU Court of Justice decided
Meta Platforms v Bundeskartellamt (C-252/21, 4 July 2023). Meta relied on legitimate interest, among other bases, for personalised advertising based on data collected on and off Facebook. The Court accepted that direct marketing can be a legitimate interest, but ruled that users cannot reasonably expect their data to be used for personalised advertising without their consent, even when the service is free. Their interests and rights override Meta's interest, so legitimate interest cannot be the basis. The Court also pointed to the scale of the processing: potentially unlimited data, which can give users the feeling that their private life is being continuously monitored.
Koninklijke Nederlandse Lawn Tennisbond (C-621/22, 4 October 2024). The Dutch tennis federation passed its members' data, for payment and without their consent, to two sponsors, a sports shop and a gambling operator, for marketing. The Dutch data protection authority, which fined the federation, held that only interests laid down in law can be legitimate, so a purely commercial interest could not be. The Court disagreed: an interest does not have to be laid down in law, and a commercial interest can be legitimate as long as it is lawful. But the processing must still be strictly necessary, and the Court noted that informing members beforehand and asking whether they want their data passed on could be the less intrusive route. In the balancing test, what members could reasonably expect when they joined weighs heavily.
Together: a commercial interest is not ruled out, but for tracking and targeted advertising the reasonable expectations of the people concerned usually tip the balance, and asking for consent is the less intrusive way.
What the EDPB says
In its Guidelines 1/2024 on legitimate interest (version 1.0, adopted in October 2024 for public consultation), the EDPB, where all EU data protection authorities meet, applies these rulings:
- Direct marketing may be a legitimate interest (recital 47), but not automatically. You still need the three conditions.
- Where the ePrivacy rule requires consent for cookies or other tracking, consent will likely be the right basis for the processing that follows too.
- Intrusive profiling and tracking for marketing, for example tracking people across websites, devices or services, will hardly ever pass the balancing test.
- Less intrusive marketing, such as sending the same catalogue to existing customers, is easier to justify.
The EDPB's cookie banner taskforce was blunter. In its January 2023 report, the authorities in the taskforce confirmed that placing or reading cookies under article 5(3) cannot be based on the controller's legitimate interest, and that if the cookie rule is breached, for example because valid consent is missing, the processing that follows cannot comply with the GDPR either. They also flagged banners that list purposes such as "create a personalised content profile" or "select personalised ads" under legitimate interest, in a deeper layer, as confusing: visitors may think they have to refuse twice.
Where legitimate interest does fit
Legitimate interest is a sound basis for processing that needs no consent under the cookie rule, or that does not touch the visitor's device at all. For example:
- Security and fraud prevention. Recitals 47 and 49 of the GDPR name both. Think of bot detection, rate limiting or security logs on your server, as long as you only process what is strictly necessary.
- Strictly necessary cookies. A session cookie, a shopping cart or a load balancer needs no consent. The processing behind it rests on the contract with the visitor or on legitimate interest.
- Remembering the visitor's cookie choice. Storing the choice itself is necessary to respect it.
- Exempt analytics. Some countries exempt analytics that only produces anonymous statistics for your own website from consent, under strict conditions. Where that exemption applies, the processing can rest on legitimate interest. Standard Google Analytics usually does not qualify; see Google Analytics and the GDPR.
IAB TCF and "legitimate interest" switches
Banners built on the IAB Transparency & Consent Framework often show a second list of switches marked "legitimate interest", which are on by default. They cover processing that ad tech vendors say needs no consent.
The TCF Policies limit what those switches may cover. Storing or accessing information on a device (purpose 1) and creating or using profiles for personalised advertising or content (purposes 3 to 6) may only be based on consent. For purposes such as ad measurement, audience statistics or limited data to select ads, vendors may choose legitimate interest; the visitor can object to it, and your banner must offer that.
So for anything that reads the visitor's device, the TCF itself requires consent. Whether a vendor's legitimate interest really passes the three conditions is something the vendor and you, as the publisher, remain responsible for. In March 2024 the EU Court of Justice ruled that the TC string can be personal data and that IAB Europe can be a joint controller for it. More in IAB TCF: who needs it?.
Common mistakes
- "We have a legitimate interest, so no banner." Legitimate interest answers the GDPR question. The cookie rule still asks for consent for every non-essential cookie or tracker.
- Falling back on legitimate interest after a "no". If a visitor declines marketing, you may not keep tracking them on another legal basis. Switching bases afterwards also undermines the consent you did ask for.
- Legitimate interest switches that are on by default for tracking. Pre-ticked boxes are not consent (Planet49, C-673/17), and profiling for ads cannot run on legitimate interest under the TCF.
- No documented assessment. Without a written three-step assessment, you cannot show that legitimate interest applies.
- Not mentioning the interest. Your privacy policy must name the legitimate interest for each purpose and explain the right to object. See the privacy policy template.
The UK
In the UK the same split applies: PECR (regulation 6) asks for consent for storage and access, and the UK GDPR asks for a lawful basis. According to the ICO, where PECR requires consent you should use consent as your lawful basis for the processing that follows too, and you must not fall back on legitimate interests when your consent turns out to be invalid. Where a PECR exception applies, such as the statistics exception introduced in 2026, another lawful basis may fit. More in UK cookie law.
Sources
- General Data Protection Regulation (EU) 2016/679, articles 6, 13, 21 and recitals 47 and 49
- ePrivacy Directive 2002/58/EC (consolidated), article 5(3)
- CJEU: Case C-252/21, Meta Platforms v Bundeskartellamt (4 July 2023)
- CJEU: Case C-621/22, Koninklijke Nederlandse Lawn Tennisbond (4 October 2024)
- CJEU: Case C-673/17, Planet49 (1 October 2019)
- CJEU: Case C-604/22, IAB Europe (7 March 2024)
- EDPB: Guidelines 1/2024 on processing of personal data based on Article 6(1)(f) GDPR
- EDPB: Report of the work undertaken by the Cookie Banner Taskforce (17 January 2023)
- EDPB: Guidelines 2/2023 on the technical scope of Art. 5(3) ePrivacy Directive
- IAB Europe: TCF Policies
- ICO: How do the PECR rules relate to the UK GDPR?