
The six lawful bases for processing under GDPR are the legal grounds that allow an organization to process personal data. Article 6(1) of the General Data Protection Regulation lists them: consent, contract, legal obligation, vital interests, public task and legitimate interests. Every processing activity needs at least one, chosen before processing starts, documented and explained in your privacy notice. Choosing the wrong one can make processing unlawful and affect people's rights. This guide explains each basis with examples, how to choose, special category data, and common mistakes.
Related guides: Free cookie policy template · GDPR compliance for US companies · GDPR and whistleblowing · Data governance policy
This guide is general information, not legal advice.
Key takeaways
- You need a lawful basis for each purpose of processing, decided before you start.
- No basis is "better" than another. Choose the one that fits the purpose and relationship.
- Consent must be freely given, specific, informed, unambiguous and as easy to withdraw as to give.
- Legitimate interests needs a documented three-part test: purpose, necessity and balancing.
- Special category data needs both an Article 6 basis and an Article 9 condition.
The six lawful bases

| Basis | Article | When it applies | Example |
|---|---|---|---|
| Consent | 6(1)(a) | The person has given clear consent for a specific purpose | Marketing emails to people who opted in; non-essential cookies |
| Contract | 6(1)(b) | Processing is necessary to perform a contract with the person or to take steps they request before entering one | Processing a delivery address to ship an order; account data for a SaaS subscription |
| Legal obligation | 6(1)(c) | Processing is necessary to comply with EU or member state law | Keeping invoices for tax law; payroll reporting |
| Vital interests | 6(1)(d) | Processing is necessary to protect someone's life | Sharing medical information with emergency services when a person is unconscious |
| Public task | 6(1)(e) | Processing is necessary for a task in the public interest or official authority, with a basis in law | Public bodies carrying out statutory functions |
| Legitimate interests | 6(1)(f) | Processing is necessary for legitimate interests of the controller or a third party, unless overridden by the person's interests or rights | Fraud prevention, network security, some direct marketing to existing customers, B2B relationship management |
Consent in detail
Valid consent under GDPR (Articles 4(11) and 7) must be:
- Freely given: real choice, not a condition of service unless necessary for it; difficult where there is a power imbalance, such as employers and employees
- Specific: separate consent for separate purposes
- Informed: clear information about who, what and why
- Unambiguous: a clear affirmative action; pre-ticked boxes and silence are not consent
- Withdrawable: as easy to withdraw as to give
Keep records of who consented, when, how and to what. For online services offered directly to children, Article 8 sets an age of digital consent of 16, which member states can lower to no younger than 13.
Contract in detail
Processing must be necessary for the contract with the individual, not just mentioned in the terms. Processing for analytics, advertising or product improvement usually does not qualify under contract and needs another basis. The European Data Protection Board has issued guidance narrowing the use of contract for online services.
Legitimate interests in detail
Legitimate interests is the most flexible basis, but it requires a documented legitimate interests assessment (LIA):
| Test | Question |
|---|---|
| Purpose | Is there a legitimate interest behind the processing? |
| Necessity | Is the processing necessary for that purpose, or is there a less intrusive way? |
| Balancing | Do the individual's interests, rights and freedoms override the legitimate interest, considering their reasonable expectations? |
Public authorities cannot rely on legitimate interests for processing in the performance of their tasks. Individuals have the right to object to processing based on legitimate interests, and an absolute right to object to direct marketing.
Choosing the right basis
- Define the purpose of each processing activity clearly.
- Ask whether processing is necessary for a contract, legal duty or vital interest. If so, those bases often fit.
- Consider legitimate interests if the processing is expected by the person and has limited impact.
- Use consent when you want to give people real choice and control, or when the law requires it (for example, certain cookies and electronic marketing under ePrivacy rules).
- Document your choice in the records of processing and privacy notice.
Examples by business activity
| Activity | Typical basis |
|---|---|
| Providing a SaaS service to a customer | Contract |
| Employee payroll | Contract and legal obligation |
| Keeping accounting records | Legal obligation |
| Security logging and fraud prevention | Legitimate interests |
| B2B sales outreach | Legitimate interests, subject to ePrivacy rules for electronic marketing |
| Newsletter to consumers who signed up | Consent |
| Analytics cookies | Consent in most EU countries |
| Responding to a medical emergency | Vital interests |
Special category data
Special category data includes health, racial or ethnic origin, political opinions, religious beliefs, trade union membership, genetic and biometric data used for identification, and data about sex life or sexual orientation. To process it you need an Article 6 basis and an Article 9(2) condition, such as explicit consent, employment and social security obligations, vital interests, substantial public interest with a legal basis, or health and social care. Criminal offence data has separate rules under Article 10.
Common mistakes
- Relying on consent when people cannot really refuse, such as employees
- Switching bases after the fact, for example from consent to legitimate interests when someone withdraws consent
- Bundling consent into terms and conditions
- Using contract for processing that is not necessary for the service
- No documented legitimate interests assessment
- Privacy notices that do not state the basis for each purpose
Documenting your lawful bases
Record each purpose, the lawful basis, any Article 9 condition, the data categories, retention and recipients in your records of processing activities (Article 30). Include the basis in your privacy notice (Articles 13 and 14). Keep LIAs and consent records available for regulators.
Lawful basis and data subject rights
The basis you choose affects which rights apply:
| Right | Consent | Contract | Legal obligation | Vital interests | Public task | Legitimate interests |
|---|---|---|---|---|---|---|
| Erasure | Yes | Yes | No | Yes | No | Yes |
| Portability | Yes | Yes | No | No | No | No |
| Objection | Withdraw consent instead | No | No | No | Yes | Yes |
This is a simplified view. Each right has conditions and exceptions, so check the specific articles before responding to a request.
How SecureSlate helps
SecureSlate helps small and mid-size companies operate a GDPR program: privacy policy and data processing templates, records of processing support, vendor risk and DPA tracking for processors, data retention and access controls, and multi-framework mapping that links GDPR obligations to SOC 2 and ISO 27001 controls.
FAQ
What are the six lawful bases under GDPR?
Consent, contract, legal obligation, vital interests, public task and legitimate interests, set out in Article 6(1).
Is consent the best lawful basis?
No. Consent is appropriate when people have a real choice. For many activities, contract, legal obligation or legitimate interests fit better.
Can I change my lawful basis later?
Generally you should not switch bases after processing starts. Choose carefully at the outset and document it.
What is a legitimate interests assessment?
A documented three-part test covering purpose, necessity and balancing, showing that legitimate interests are a valid basis.
Do I need a lawful basis for B2B contacts?
Yes. GDPR applies to personal data of individuals at businesses. Legitimate interests is often used, subject to ePrivacy rules for electronic marketing.
Can more than one lawful basis apply?
Different purposes can rely on different bases. For a single purpose, identify the most appropriate basis and document it rather than listing several as a fallback.
Does the UK GDPR use the same lawful bases?
Yes. The UK GDPR keeps the same six bases, and the Data (Use and Access) Act 2025 added a list of recognized legitimate interests for certain purposes.
Disclaimer (legal note)
General information only, not legal advice. Lawful basis analysis is fact-specific and may interact with national ePrivacy laws.
Need compliance without the complexity?
SecureSlate automates ISO 27001, SOC 2, GDPR, HIPAA, and more. Built for growing teams. See it in action.
Find compliance gaps in 30 seconds