Article 6 of the GDPR: Understanding the Legal Bases

This is some text inside of a div block.
6
October 19, 2026

Table of contents

Summary

  • GDPR Article 6 sets out the six possible legal bases. Without one of them, processing personal data is unlawful, however strong the security controls are.
  • A legal basis is chosen per purpose, before processing starts, and is not swapped mid-stream to escape a problem.
  • Consent is not the default basis. It is often the weakest, because it can be withdrawn at any time.
  • Legitimate interests are not available to public authorities in the performance of their tasks.
  • The basis you choose determines the rights people hold. Objection, portability and withdrawal do not attach to the same bases.

GDPR Article 6 states a simple rule, processing is lawful only if at least one of the six conditions it lists is met. This provision is the entry point to the whole of compliance, because it settles the legality of processing before any question of security or retention arises.

In practice, two mistakes recur. The first is asking for consent for processing that actually rests on a contract or a legal obligation. The second is picking a basis after the fact, to justify processing already running in production. Both weaken the file in an inspection.

What Is Article 6 of the GDPR?

Article 6 of the GDPR, titled lawfulness of processing, provides that processing is lawful only if, and to the extent that, at least one of the six conditions it lists applies. It operationalises the lawfulness principle set in Article 5(1)(a), which requires processing to be lawful, fair and transparent.

Three provisions frame how it works. Member States may keep or introduce more specific rules for processing based on a legal obligation or a public interest task (Article 6(2)). For those two bases, the basis must be laid down in Union or Member State law (Article 6(3)). Article 6(4) then governs any change of purpose, listing the criteria of the compatibility test.

A legal basis is not chosen for an organisation, it is chosen for each purpose. The same company can process a customer's data on contract for delivery, on legal obligation for invoicing, and on legitimate interests for fraud prevention. Our guide to GDPR compliance places that logic in the wider framework.

What Are the 6 Legal Bases Under Article 6 of the GDPR?

The six legal bases under GDPR Article 6 are consent, contract, legal obligation, vital interests, public interest task and legitimate interests. They carry equal legal weight, none ranks above the others. The table below sets out each one with its reference and the situations where it genuinely applies.

Legal basis Reference When to use it
Consent Article 6(1)(a) Optional processing, newsletters, non-essential cookies
Contract Article 6(1)(b) Order delivery, subscription management, a quote the person requested
Legal obligation Article 6(1)(c) Payroll, accounting, sector duties imposed by a specific instrument
Vital interests Article 6(1)(d) Life-threatening emergency, person unable to consent
Public interest task Article 6(1)(e) Processing by public bodies and organisations vested with a public task
Legitimate interests Article 6(1)(f) Marketing to existing customers, fraud prevention, premises security

Consent of the data subject

Consent, under Article 6(1)(a), means the person has consented to the processing of their data for one or more specific purposes. It suits genuinely optional processing, newsletters, non-essential cookies, profile enrichment. Its weakness is structural, the person can withdraw at any moment, which means you have to be able to stop the processing.

Performance of a contract or pre-contractual measures

Article 6(1)(b) covers processing necessary for the performance of a contract to which the person is party, or for pre-contractual steps taken at their request. The word necessary is strict. Delivering an order sits under contract, sending that same customer a promotional offer does not, however natural an extension of the relationship it feels.

Compliance with a legal obligation

Article 6(1)(c) covers processing necessary for compliance with a legal obligation to which the controller is subject. Retention of accounting records, payroll filings, anti-money-laundering duties. To rely on this basis you must be able to cite the specific instrument that imposes the processing, not a sector habit.

Protection of vital interests

Article 6(1)(d) concerns processing necessary to protect the vital interests of the data subject or of another natural person. Its scope is narrow, covering life-or-death situations, a medical emergency involving an unconscious patient or a humanitarian crisis. It is never a fallback for ordinary processing.

Performance of a task carried out in the public interest or official authority

Article 6(1)(e) covers processing necessary for a task carried out in the public interest or in the exercise of official authority. It applies to public bodies and to private organisations vested with such a task. As with legal obligation, the basis must be laid down in Union or Member State law.

Legitimate interests of the controller or a third party

Article 6(1)(f) permits processing necessary for the legitimate interests pursued by the controller or a third party, unless overridden by the interests or fundamental rights and freedoms of the person, in particular where that person is a child. Two points are routinely missed. This basis requires a documented balancing test carried out beforehand, and it does not apply to public authorities in the performance of their tasks.

GDPR Consent and Article 6, What Are the Requirements?

GDPR consent is governed by precise conditions, set in Article 7 and completed by the definition in Article 4(11). Consent that fails them is not a valid legal basis, and the processing becomes unlawful. The five points below cover the questions teams ask before choosing this basis.

When is consent required?

Consent applies where no other basis fits and the processing is genuinely optional for the person. It is also required by specific rules, notably for non-essential cookies under the ePrivacy regime and for special category data under Article 9, where consent must be explicit. Our article on the ePrivacy Directive covers that separate regime.

What makes GDPR consent valid?

Consent must be freely given, specific, informed and unambiguous, expressed through a clear affirmative action. Article 7 adds four operational requirements, the controller must be able to demonstrate it, the request must be presented separately from other matters in plain language, withdrawal must be as easy as giving consent, and a service must not be made conditional on consent that is not necessary for that service.

Explicit consent vs. ordinary consent

Ordinary consent can come from a clear affirmative action, an actively ticked box for example. Explicit consent, required by Article 9(2)(a) for special category data, means an express statement, usually written and specific to the type of data involved. Confusing the two exposes health data processing to immediate challenge.

How can a person withdraw consent?

The person can withdraw at any time, and withdrawal must be as easy as giving consent. Withdrawal does not affect the lawfulness of processing carried out beforehand. Concretely, if consent was captured in two clicks, withdrawing it cannot require a registered letter. Our guide to GDPR data consent covers the accepted mechanisms.

Can consent be used when a contract is necessary?

No, and this is a frequent error. If the processing is necessary to perform the contract, the basis is the contract, not consent. Asking for consent in that situation creates an illusion of choice, since the person cannot refuse without losing the service, which strips the consent of its freely given character under Article 7(4).

How to Choose the Right GDPR Legal Basis?

Choosing a basis under GDPR Article 6 follows a five-step sequence, and the order matters. Starting from the basis you would prefer, then dressing the purpose to fit it, produces precisely the files that regulators reclassify on inspection.

Start by defining the purpose of the processing

A purpose is stated in one precise, verifiable, bounded sentence. Managing the customer relationship is not a purpose, it is a category. Delivering orders, handling complaints and sending promotional offers are three distinct purposes, each needing its own analysis.

Assess the necessity and proportionality of the processing

Every basis except consent requires the processing to be necessary. Necessary does not mean useful or convenient, it means there is no less intrusive way to achieve the same purpose. If the purpose can be met with less data, the processing is not necessary as designed.

Identify the legal basis that applies to the situation

Work through the bases in a logical order rather than by preference. Does a legal obligation require the processing, is it necessary for the contract, does it fall under a public interest task, can it rest on legitimate interests after a balancing test. Consent comes last, where the processing is genuinely optional.

Document the choice of legal basis

Documentation is what turns a GDPR legal basis into defensible evidence. Keep the purpose, the basis chosen, the reasoning applied, and for legitimate interests the full balancing assessment. Article 5(2) requires the controller to demonstrate compliance, not merely assert it.

Check the rights associated with the chosen legal basis

The rights available to the person vary with the basis, something many organisations discover only when a request arrives. Our guide to data subject rights under GDPR sets out each right and its conditions.

Article 6 GDPR and the Record of Processing Activities

The record is where the legal basis becomes defensible. One point is worth stating plainly, Article 30 does not expressly require the legal basis among the items of the record. The template published by the CNIL does include it, and the duty to demonstrate compliance makes it indispensable in practice.

Where should the legal basis be documented in the GDPR register?

It attaches to each processing entry, next to the purpose it justifies. A processing activity covering several purposes carries as many lines as it has distinct bases. Our guide to GDPR Article 30 and the record of processing activities describes the expected structure.

What information should be associated with each legal basis?

Attach the precise reference, the instrument imposing the processing for a legal obligation, the contract concerned for Article 6(1)(b), the balancing test for legitimate interests, and the capture and proof mechanism for consent. A basis listed without supporting material is no better than an empty field.

How to maintain a clear record of the legal basis

One column per element, one line per purpose, a date of last review. Illegible records are rarely short of content, they fail because several purposes are crushed into a single entry. Regulators report this defect repeatedly during inspections.

How to reassess the legal basis when processing changes

Any change of purpose triggers Article 6(4). Where further processing rests neither on consent nor on a legal provision, you must run the compatibility test, weighing the link between the purposes, the context of collection, the nature of the data, the possible consequences for the people concerned and the safeguards in place, such as encryption or pseudonymisation.

What Are the Consequences of Choosing a Particular Legal Basis?

The basis chosen determines which rights people can exercise and which obligations fall on the organisation. That is why the choice cannot be treated as a record-keeping formality. The table below shows what actually changes from one basis to another.

Legal basis Right to portability Right to object
Consent (6(1)(a)) Yes, Article 20 No, but withdrawal at any time (Article 7(3))
Contract (6(1)(b)) Yes, Article 20 No, but erasure may apply
Legal obligation (6(1)(c)) No No
Vital interests (6(1)(d)) No No
Public interest task (6(1)(e)) No Yes, Article 21(1)
Legitimate interests (6(1)(f)) No Yes, Article 21(1)

Two consequences deserve particular attention. The right to object under Article 21 applies only to processing based on legitimate interests or on a public interest task. The right to data portability under Article 20 covers only processing based on consent or on a contract, and carried out by automated means.

Article 6 GDPR, Examples of Legal Bases for Common Processing Activities

The examples below cover the processing activities most common in business. They illustrate a single rule, the basis follows from the purpose and from whether the processing is necessary, never from convenience.

  • Payroll administration and statutory filings, legal obligation, with the applicable instrument cited as reference.
  • Fulfilling and delivering an order, contract, limited to the data genuinely needed for that performance.
  • Email marketing to existing customers about similar products, legitimate interests, with objection available at any time.
  • Email marketing to prospects who are not customers, prior consent, captured purpose by purpose.
  • CCTV on business premises, legitimate interests, subject to a balancing test and clear information to the people filmed.

High-risk processing calls for an additional step. A data protection impact assessment is then required, and it builds directly on the legal basis chosen.

Article 6 GDPR, Practical Recommendations for Organizations

Four practices are enough to keep every GDPR legal basis solid over time. They share one objective, making the reasoning visible and dated, because an inspection examines evidence rather than intent.

Identify legal bases before processing begins

The basis is settled at design time, not after go-live. Build the question into the scoping of every new project, alongside the purpose and the retention periods. Processing launched without an identified basis is unlawful from day one, even if nobody notices.

Link each legal basis to a specific processing purpose

One purpose, one basis. As soon as a record entry bundles several purposes under a single basis, compliance becomes impossible to demonstrate. That split is also what lets you answer an objection or portability request correctly.

Keep evidence supporting the chosen legal basis

Proof of consent with a timestamp and the wording displayed, the reference of the legal instrument, a copy of the standard contract, a signed balancing test for legitimate interests. These must be retrievable without reconstruction, years later. The privacy policy must also state the legal basis for each purpose, as Article 13 requires.

Regularly review the legal bases for processing activities

Set an annual review, plus a review triggered by any new project, tool change or new purpose. Legal bases expire quietly, when a processing activity evolves and the record entry does not follow.

How DPO Consulting Can Help

DPO Consulting has supported European and international organisations on GDPR compliance for more than ten years, with over 50 in-house experts. Work on legal bases is among the most structural, because it determines the validity of everything downstream, from the record to the answers given to rights requests.

To test how solid the legal bases behind your processing really are, start with a GDPR compliance audit, which reviews your purposes, your bases and your record. You can also talk to an expert at DPO Consulting before launching a sensitive new processing activity.

FAQs

When is consent required under Article 6 of the GDPR?

Where no other basis applies and the processing is genuinely optional for the person, and in cases where a specific rule imposes it, non-essential cookies and special category data in particular. Consent is not the default basis, it is the most demanding one to maintain over time.

What is GDPR consent, exactly?

GDPR consent is a freely given, specific, informed and unambiguous indication of the person's wishes by which they accept, through a clear affirmative action, the processing of their data for one or more defined purposes. A pre-ticked box, silence or blanket acceptance of terms and conditions does not amount to consent.

Can the legal basis for processing be changed?

Switching basis mid-processing is strongly discouraged and rarely valid. If the original basis was wrong, the processing was unlawful, and moving to another basis does not cure the past. A change of purpose, by contrast, is governed by the Article 6(4) compatibility test.

When can legitimate interest be used as a legal basis?

Where the interest pursued is real and lawful, the processing is necessary to achieve it, and the balancing test shows that the person's interests and freedoms do not override it. This basis is closed to public authorities acting in the performance of their tasks, under the final sub-paragraph of Article 6(1).

What legal basis applies when processing is necessary for a contract?

Article 6(1)(b), provided the processing is objectively necessary to perform the contract or to take pre-contractual steps requested by the person. Processing that is merely useful to the controller, such as advertising personalisation, falls under a different basis.

What should you do if none of the six legal bases applies?

The processing cannot go ahead as designed. Two routes exist, redefine the purpose so that it matches a valid basis, or cut the processing back until it becomes necessary under an identified basis. Looking for a basis afterwards is not a defensible position in an inspection.

References

  • Commission nationale de l'informatique et des libertés. (2018, May 23). Chapitre II - Principes, Articles 5 to 9 of Regulation (EU) 2016/679. CNIL. https://www.cnil.fr/fr/reglement-europeen-protection-donnees/chapitre2
  • Commission nationale de l'informatique et des libertés. (n.d.). Les bases légales. CNIL. https://www.cnil.fr/fr/les-bases-legales
  • Commission nationale de l'informatique et des libertés. (n.d.). RGPD, le registre des activités de traitement. CNIL. https://www.cnil.fr/fr/RGPD-le-registre-des-activites-de-traitement

Related Services and Resources

Read this next

See all