Skip to content
Glossary · Compliance

Lawful basis (GDPR)

Also called legal basis for processing.

Definition

One of the six reasons listed in GDPR Article 6 that make processing personal data lawful, such as consent or a contract.

Last updated

What it is.

GDPR Article 6(1) says processing is lawful only if at least one of these applies: the person gave consent; it is necessary for a contract with them; it is necessary for a legal obligation; it protects someone's vital interests; it is necessary for a task in the public interest or official authority; or it is necessary for the legitimate interests of the controller or a third party, unless the person's rights override them.

The controller picks the basis for each purpose before processing starts and tells people which one applies. Special categories, such as health data, need an extra condition under Article 9.

Why it matters

The basis decides what the product must do. Consent needs a clear opt-in, a record of it and an easy way to withdraw. A contract basis covers what is truly needed to deliver the service, not extras like marketing. Getting it wrong can make the whole processing unlawful.

In a product build

Each lawful basis turns into concrete screens and data: consent banners and toggles, a consent log, opt-out links and settings. Listing them per purpose during discovery keeps them in scope.

Watch out

Common mistakes.

  1. 01

    Using consent for everything, then having no basis left when someone withdraws it.

  2. 02

    Claiming contract necessity for things the service does not need, such as ad tracking.

  3. 03

    Not recording which basis applies to which purpose.

Sources

Read the official text.

Primary sources this definition is based on.

Related

Related terms.

Building something with this? Ask an engineer.

OceanLab designs and builds production software. Tell us what you are planning and we will reply with how we would approach it.

OceanLab

Enterprise Software Engineering - Human + AI

Languages

Locations

Global Headquarters

21 Merchant Road, 3rd Floor, Singapore 058267

Main corporate office and leadership operations

North America Office

548 Market Street, PMB 12472, San Francisco, CA 94104

Client operations and business development

India Office

402 Shivalik Shilp II, SG Highway, Ahmedabad 380015

Engineering and delivery center

© 2026 - Copyright. All Rights reserved OceanLab