Skip to content
AI Explained

What Are AI Hallucinations? Why AI Makes Things Up

AI can invent a fact, a source or a quote and sound completely sure. Here's why it happens, when to expect it, and how to prompt so it happens less.

Illustration of an AI confidently producing a made-up fact, a hallucination

Ask a chatbot for the author of a book that doesn't exist and it will often hand you a title, a publisher, and a plausible year — all invented, delivered with the same steady confidence it uses for facts it gets right. That gap between confidence and accuracy has a name, and once you understand what causes it, you can prompt around it instead of getting burned by it. This is the single most useful thing to grasp about how these tools actually behave.

What an AI hallucination actually is

An AI hallucination is a confident, well-formed output that is simply false. The model isn't lying in any human sense — lying needs intent. It produces something that reads like a fact but has no basis in reality: an invented statistic, a fake citation, a quote nobody said, a court case that was never filed, an API method that doesn't exist.

The tricky part is the packaging. AI hallucinations arrive in the same fluent, structured, self-assured prose as a correct answer. There's no stammer, no hedge, no visual cue that says "I made this up." A hallucination looks exactly like knowledge, which is precisely why it fools people. If you've read what generative AI is, you already have the mental model: these systems generate plausible text, and plausible is not the same as true.

Why AI makes things up

Here's the mechanism, and it explains almost everything. A language model predicts the next token — roughly, the next chunk of text — based on patterns it learned from a massive pile of writing. It is answering one question over and over: given everything so far, what word most likely comes next? That's the whole engine. Why AI makes things up comes straight from this: the model optimizes for what sounds right, not for what is verifiably true.

There is no internal fact-checker and no lookup table of verified truths sitting behind the curtain. The model doesn't "know" that Paris is the capital of France the way a database knows a row. It has learned that the tokens for "Paris" tend to follow the tokens for "capital of France." Most of the time those statistical patterns line up with reality, because the training text was mostly accurate. But when the pattern is thin or missing, the model doesn't stop — it can't stop — it fills the gap with whatever is most statistically plausible. That plausible filler is a hallucination.

  • The model completes patterns; it does not retrieve facts.
  • "Sounds right" and "is right" usually overlap, but not always.
  • A blank is never returned — the gap always gets filled with something.

When hallucinations are most likely

AI hallucinations aren't evenly spread. They cluster in predictable places, and knowing the danger zones tells you when to double-check.

  • Obscure or niche topics. Thin training data means weak patterns, so the model improvises more.
  • Exact numbers, dates, and figures. Precise values are hard to pattern-match; the model often produces a confident approximation dressed as fact.
  • Citations and references. Ask for sources and you'll frequently get real-looking author names, journal titles, and DOIs that lead nowhere. This is one of the most notorious failure modes.
  • Recent events. A model's training has a cutoff date. Ask about something after it and, unless the tool can browse, it may confabulate rather than admit ignorance.
  • Long conversations. Deep into a chat, earlier context gets crowded out. Details drift, and the model starts inventing to stay consistent with something it half-remembers.
  • Leading questions. Ask "why did X happen?" about a false premise and the model will often explain the fiction rather than challenge it.

What hallucinations look like in the wild

A few concrete shapes, so you recognize them fast:

  • Fabricated citations. "According to Chen et al. (2019), *Journal of Applied Linguistics*..." — a paper that was never written.
  • Invented quotes. A tidy, quotable line attributed to a real historical figure who never said it.
  • Confident wrong math. Multi-step arithmetic that looks rigorous and lands on the wrong number.
  • Phantom features. Code that calls a library function that doesn't exist, because it *should* exist and would fit the pattern.
  • Merged facts. Two real people or events blended into one plausible-but-false composite.

Notice they're all coherent. That coherence is the trap.

How to reduce hallucinations with prompting

You can't eliminate hallucinations, but good prompting cuts them sharply. The core idea: give the model less room to improvise and explicit permission to admit uncertainty.

First, hand it the source material. A model grounded in text you provide is far less likely to invent, because the answer is sitting right there.

Using only the text between the triple dashes, answer the question. If the answer is not in the text, reply "Not stated in the source." Do not use outside knowledge. --- [paste your document, policy, or article here] --- Question: What is the cancellation window for annual subscriptions?

Second, give it an escape hatch. Models default to answering because a confident guess resembles their training data better than "I don't know." Tell it that admitting a gap is the preferred move.

Answer the question below. If you are not confident the answer is accurate, say "I'm not sure" and explain what you'd need to verify it. I would rather have an honest "I don't know" than a confident guess. Question: What was the exact GDP of Portugal in 1987?

Third, demand checkable citations and lower the model's creative temperature by asking for caution. Break big asks into smaller steps so each one gets full attention — the same "one prompt, one job" discipline covered in common prompting mistakes. For reasoning-heavy questions, a chain-of-thought prompt that makes the model show its steps exposes where a wrong turn happened instead of hiding it inside a slick final answer.

Tip: "Grounding" beats "trusting." Whenever the answer must be correct, paste the source text into the prompt and forbid outside knowledge. A model working from material you supplied hallucinates far less than one answering from memory.

How to catch the ones that slip through

Prevention isn't perfect, so build a verification habit for anything that matters. Treat AI output as a confident first draft from a fast, well-read intern who occasionally makes things up.

  • Verify every specific claim — names, numbers, dates, quotes — against a real source before you rely on it.
  • Click the citations. If a reference doesn't resolve to a real page, assume the surrounding claim is suspect too.
  • Cross-check across tools. Ask a second model or a plain search engine the same question and watch for disagreement.
  • Make the model audit itself. A fresh pass with a skeptical framing catches a surprising amount.
Review your previous answer as a fact-checker. List every factual claim, statistic, quote, and citation you made. For each one, rate your confidence (high / medium / low) and flag anything you cannot verify from the source I gave you. Mark items I should independently confirm.

Running a draft prompt through the prompt analyzer before you send it also helps — it surfaces vague spots where the model is most likely to fill gaps with invention.

Do newer models help, and the bottom line

Partly. Retrieval-augmented models that search the web or query a document store hallucinate less on facts, because they're pulling real text instead of guessing from memory. Larger, better-trained models are more calibrated and more willing to say "I don't know." Reasoning models that work step by step catch some of their own errors mid-stream.

But none of them are immune, and the reason is structural. As long as the core operation is predicting plausible next tokens, the capacity to produce confident fiction never fully disappears. A grounded model can still misread its source, cite the wrong passage, or invent when retrieval comes up empty. Better tools raise the floor; they don't remove the risk. The verification habit stays non-negotiable.

So here's the bottom line. AI hallucinations are a feature of how these systems work, not a bug someone forgot to patch. The model is a pattern completer that prizes fluency, so it will always be capable of sounding certain while being wrong. Your job is to prompt in ways that reduce the odds — grounding answers in real text, granting permission to say "I don't know," asking for checkable sources, and breaking work into verifiable steps — and then to check the claims that count.

Do that and the model becomes what it's genuinely great at: a fast, capable drafter you keep on a short leash. For sharper prompts overall, improving your AI prompts and the prompt optimizer tighten the instructions that keep it honest, and a ChatGPT prompt generator gives you a grounded starting point instead of a blank box.

References

Put this into practice. Apply what you just read with our free tool: Prompt Optimizer →
By AI enthusiast & advanced user

Jordi Benitez has been using AI tools day to day for years. No researcher, no academic title — just an advanced user who has spent enough hours prompting ChatGPT, Claude, Gemini and image models to know what actually works, and built GetEasyPrompt to share it in plain language.

FAQ

Frequently asked questions

It's when an AI states something false as if it were true — an invented fact, fake citation, or made-up quote. The model predicts plausible-sounding text, so confident wrongness is a normal failure mode, not a bug you can fully switch off.
It generates the most likely next words based on patterns, not a database of verified facts. When it lacks the real answer, it fills the gap with something that sounds right, which is where hallucinations come from.
You can reduce it: ask it to say 'I don't know' when unsure, give it the source text to work from, request citations you can check, and lower the stakes by verifying important claims yourself. You can't eliminate it entirely.
Generally yes, and models that browse or cite sources hallucinate less on facts. But no model is immune, so verification still matters for anything that counts.

Write your next prompt in seconds

Turn a rough idea into a clear, structured prompt any AI can follow. Free, private, and no account needed.

Open the Prompt OptimizerSee all tools