Skip to main content

Cookies on LegaMart

We use a necessary cookie to remember your choice. With your permission, we also count how pages are used, on our own servers, to improve the site.

AI and GDPR: regulating the rise of machines

The EU GDPR can apply when AI systems process personal data, depending on material and territorial scope. AI and GDPR compliance involves lawful bases, data rights, restrictions on solely automated significant decisions, impact assessments, processor terms and transfer safeguards. The UK has its own amended rules, including a different automated-decision framework.

Written for
In-house and government lawyers
By
LegaMart editorial team
Law as stated on
Published
Updated

Skip to next steps

AI and GDPR meet wherever an AI system touches personal data: when a model is trained on it, when a prompt contains it, or when the system makes decisions about people. The GDPR has applied across the EU since 25 May 2018. This guide sets out the provisions that matter most for AI, for in-house counsel deciding whether a tool can be used and on what terms.

Understanding AI and its recent development

AI is now built into everyday tools, from virtual assistants to predictive analytics, and generative AI has put large language models into ordinary office work. These systems depend on large amounts of data, and much of it is personal. That reliance is what brings them within data protection law, and it's why responsible, explainable AI has become a compliance topic as much as a technical one.

Understanding GDPR

The GDPR gives people control over their personal data and harmonised data protection law across the EU. It applies to organisations established in the EU, and to organisations outside it that offer goods or services to, or monitor, people in the EU (European Commission: data protection explained (opens in a new tab)).

It sets out seven principles for handling personal data:

  • lawfulness, fairness and transparency;
  • purpose limitation;
  • data minimisation;
  • accuracy;
  • storage limitation;
  • integrity and confidentiality;
  • accountability.

Every processing operation also needs one of six lawful bases. Consent is one of them; others include contract, legal obligation and legitimate interests (GDPR as adopted, Article 6 (opens in a new tab)). A data protection officer (DPO) is required for public authorities or bodies (except courts acting judicially), and where core activities consist of large-scale regular and systematic monitoring or large-scale processing of special-category or criminal-conviction/offence data; other legal requirements may also apply. Controllers must notify the competent supervisory authority without undue delay and, where feasible, within 72 hours of awareness, unless the breach is unlikely to result in a risk to people’s rights and freedoms.

The UK has its own amended UK GDPR. Its automated-decision rules now differ from EU Article 22: current Articles 22A–22C govern significant solely automated decisions, safeguards and special-category restrictions. Check the UK provisions separately (Article 22A (opens in a new tab); Article 22B (opens in a new tab); Article 22C (opens in a new tab)). The ICO’s AI guidance (opens in a new tab) remains useful guidance, but it is under review after the Data (Use and Access) Act 2025 changes.

What does GDPR say about AI?

The GDPR mentions social networks, websites and links, but not artificial intelligence. Its drafters were dealing with the internet problems the 1995 Data Protection Directive hadn't foreseen. Even so, several provisions apply directly to AI.

Profiling and automated decision-making

Article 22 gives people the right not to be subject to a decision based solely on automated processing, including profiling, that produces legal effects for them or similarly significantly affects them, unless an exception applies (the decision is necessary for a contract, authorised by law, or based on explicit consent). Contract- or consent-based exceptions require safeguards including human intervention and the ability to express a view and contest the decision; law-authorised decisions require the safeguards specified by law. Article 22(4) adds conditions where special-category data is involved. Articles 13 to 15 require the specified information about automated decision-making, its logic, significance and envisaged consequences (GDPR as adopted, Articles 13–15 and 22 (opens in a new tab)).

AI and the EU AI Act

Since 2024, the EU also has a dedicated law on AI. The AI Act takes a risk-based approach and applies alongside the GDPR, not instead of it (European Commission: AI Act (opens in a new tab)). A system can be compliant under one and not the other. See what the EU AI Act requires.

GDPR principles affecting AI

Some principles bear on AI more than others:

  • Accountability. Decisions with a significant effect on people call for governance: documented risk assessments, design reviews and controls through the life of the system.
  • Fairness. Data mustn't be processed in ways people wouldn't expect or that harm them. Biased training data reproduces bias in the output, so organisations need to test the data and its impact.
  • Data minimisation and security. An AI system shouldn't process more personal data than its purpose requires, and the data must be kept secure.
  • Transparency. People should receive the transparency information required by Articles 12?14; provide automated-decision information where Articles 13?15 require it.

Issues with AI and GDPR compliance

Generative AI tools such as chatbots run on large language models trained on vast amounts of text. Personal data can end up in training data, in prompts, or in what the model produces, and it's hard to know how much. To show compliance, an organisation should be able to answer:

  • What personal data is processed, and where is it stored?
  • Has the model been tested for learned or programmed bias?
  • Are there sector-specific rules (health, finance, employment)?

Synthetic data may reduce use of personal data, but check whether individuals remain identifiable.

AI and the right to be forgotten

Article 17 gives people the right to have their personal data erased in defined cases, for example when it's no longer needed for its original purpose or when they withdraw consent and there's no other lawful basis (GDPR as adopted, Article 17 (opens in a new tab)). The right is subject to Article 17 exceptions, including legal obligations and legal claims. For the background, see the right to be forgotten online.

With AI, erasure isn't simple. Deleting a record from a database is one thing; a trained model may have learned from the data, and it can be hard to show that it no longer holds or reproduces it. Plan for erasure requests before training, not after.

What GDPR requires when personal data goes into an AI prompt

Data fed into an AI system is "input data"; providers of language models often call the instruction part of it a "prompt". A company that puts personal data into prompts may be a controller or a processor, depending on how much it controls the processing, what data it includes, what the AI can access, and what happens to the data afterwards. As a controller, it must meet these requirements (GDPR as adopted (opens in a new tab)):

GDPR articleWhat it requiresWhat it means for AI use
Art. 6: lawful basisOne of six lawful basesIdentify and document a valid basis for the particular purpose; meet any additional special-category conditions
Art. 30: records of processingWritten records of purposes, categories, recipients, transfers, retention and securityThe under-250-employee exception does not cover risky or non-occasional processing, or special-category or criminal-conviction/offence data
Art. 5(1)(c), (e): minimisation and storageUse and keep no more data than neededLimit what goes into prompts and how long the tool keeps it
Arts. 12 to 14: privacy noticeProvide the transparency information required by Articles 12–14, subject to applicable exceptionsCover AI processing; automated-decision information where Articles 13–15 require it
Art. 15: accessProvide access to personal data and a copy, subject to applicable exceptions and others’ rightsAssess existing personal data in inputs or retained training sets; no automatic right to all training material
Art. 16: rectificationCorrect inaccurate personal data under the applicable conditionsIncludes qualifying inaccurate personal data generated by AI; check applicable exceptions and rights
Art. 17: erasureDelete data on listed grounds, subject to exceptions including legal obligations and legal claimsAssess prompts, logs and retained data sets under those conditions
Arts. 7(3), 21: withdrawal and objectionLet people withdraw consent or objectWithdrawal stops future processing based on that consent and does not affect earlier lawful processing. Direct-marketing objections require stopping that processing; other Article 21 objections may be overridden by compelling legitimate grounds or legal claims
Art. 35: DPIAAssess high-risk processing, including new technologiesDecide whether the AI use needs an impact assessment
Arts. 44 to 50: transfersProtect data sent outside the EEACheck where the AI provider hosts and processes the data
Art. 28: processorsContract terms with processorsDetermine the provider’s role; Article 28 terms are required where it acts as processor

For the wider privacy framework, see privacy law and data security basics.

When AI and data cross borders

AI tools are rarely confined to one country. The provider may be in the United States, the data hosted in Ireland and the users spread across the EU, the UK and beyond, each with its own regulator and rules. When the question turns on a local law you don't practise, instruct counsel admitted there. On LegaMart you post the instruction and counsel admitted in that jurisdiction send proposals; you choose whom to instruct. See how in-house counsel instruct counsel abroad.

Conclusion

The GDPR is neutral about AI. It doesn't prohibit it, but it makes AI that uses personal data accountable: a lawful basis, limits on automated decisions, real answers to access and erasure requests, and contracts with the providers behind the tools. With the AI Act now in force alongside it, data protection and AI governance have become one compliance task. Counsel who understand both are the ones who can tell the business when an AI tool is safe to use.

Next steps: more guides on practice and regulation

Sources

Official sources cited in this guide, each checked on the date shown.

You send the work

On LegaMart you describe the matter once, without your client’s name, and counsel who may lawfully act in that jurisdiction send proposals. You choose whom to instruct and agree the terms one by one. You remain your client’s lawyer.

  • Licence checked, usually within minutes
  • A discovery meeting at no charge with each counsel before you compare
  • The fee is paid directly between the two firms

This article is general information for legal professionals, not legal advice. Laws change; check current requirements with local counsel.

Read next

  • Nigeria data protection: a practical guide for the construction sector

    Nigeria data protection law rests on the NDP Act 2023 and GAID 2025, overseen by the Nigeria Data Protection Commission. Construction companies processing personal data about workers, visitors or project teams need to check the scope and exemptions of the Act, their major-importance classification, and the duties that apply to each activity.

  • Should AI systems have legal rights? AI and humans under the law

    Should AI systems have legal rights? The cited UK patent, US copyright and EU regulatory examples treat AI as a tool: the UK Supreme Court has held that an AI system can't be named as an inventor, and the EU regulates AI by risk rather than granting it status. The live question for lawyers is who answers for what AI does.

  • All guides on practice and regulation

    63 guides, newest first.