How Does ChatGPT Actually Work?
ChatGPT predicts text one token at a time using a large language model shaped by human feedback. Here is how it is trained, answers and makes mistakes.

ChatGPT works by using a large language model to predict the most suitable next chunk of text, one small piece at a time, based on your message and the conversation so far. That model was first trained on a vast amount of text to learn language, then refined with human examples and feedback so that it behaves like a helpful assistant.
There is no database of stored answers and no person typing behind the screen. Every reply is generated fresh. Understanding that one fact explains a lot: why ChatGPT is so flexible, why the same question can get different answers, and why it sometimes states things that are simply wrong. Here is what happens under the hood, in plain English.
What is ChatGPT, exactly?
ChatGPT is a chatbot made by OpenAI, launched to the public in late November 2022. It quickly became one of the fastest-growing consumer apps ever, and OpenAI said in February 2026 that it had 900 million weekly users.
It helps to separate two layers:
- The model: a large language model from OpenAI's GPT series. "GPT" stands for generative pre-trained transformer. The underlying models change often. OpenAI introduced its GPT-6 family in September 2026, and in late November 2026 it began rolling out a chat-tuned GPT-6.2 model to paid users.
- The app: the ChatGPT website and mobile apps wrap the model with features like conversation history, memory, file uploads, web search, voice and image tools.
When people ask "how does ChatGPT work", they usually mean the model. So let us start there.
How was ChatGPT trained?
OpenAI has not published full technical details of its latest models, but it has described the general approach, which follows a widely used three-stage recipe.
Stage 1: Pre-training on huge amounts of text
The model starts as a blank network with billions of adjustable numbers called parameters. It is shown an enormous collection of text, including public web pages, books, code and licensed data, and given one task: predict the next token.
At first its guesses are random. Each time it is wrong, its parameters are adjusted slightly. After trillions of these tiny corrections, it becomes very good at predicting text. To do that well, it has to absorb grammar, facts, writing styles and patterns of reasoning, because all of those help predict what comes next.
The result is a "base model". It can continue any text, but it is not a good assistant. Ask it a question and it might just write more questions.
Stage 2: Learning from examples
Next, human trainers write example conversations showing ideal assistant behavior: clear answers, polite refusals for harmful requests, follow-up questions when a request is vague. The model is trained on these, a step called supervised fine-tuning.
Stage 3: Learning from human preferences
Finally comes reinforcement learning from human feedback (RLHF). Trainers look at several answers the model gave to the same prompt and rank them from best to worst. Those rankings train a separate "reward model" that learns to score answers the way people would. The main model is then tuned to produce answers that score highly.
OpenAI described this approach in its 2022 InstructGPT research and said ChatGPT was trained with similar methods. Newer models add further techniques, including training on problems with checkable answers, such as math and code, and teaching models to reason step by step before responding.
What happens when you send a message?
Here is the journey of a single question, such as "Suggest a three-day itinerary for Jaipur."
- Your text is split into tokens. "Itinerary" might become two or three tokens. Each one is turned into a list of numbers.
- The conversation is assembled. The app combines hidden instructions from OpenAI (often called a system prompt), any saved memory, earlier messages in the chat and your new message.
- The transformer processes it. The model's layers use a mechanism called attention to work out how every token relates to the others, so it knows "three-day" shapes the length and "Jaipur" sets the topic.
- It predicts the next token. The model outputs a probability for every possible next token. One is picked, with a little randomness so replies do not sound robotic.
- Repeat. That token is added to the text, and the model predicts the next one, and so on. This is why you see the answer appear word by word.
- Tools may step in. If the question needs current information, the model may trigger a web search, read the results and then continue writing.
For harder questions, recent models first generate an internal chain of reasoning, working through the problem before writing the visible answer. That takes longer but improves accuracy on tasks like math and planning.
Does ChatGPT search the internet?
The core model does not browse by itself. Its built-in knowledge comes from training data, which stops at a cut-off date. However, the ChatGPT app can run web searches when a question calls for recent information, and it shows links to the sources it used. It can also read files you upload and, with agent features, take actions in a browser on your behalf.
Why does ChatGPT give different answers to the same question?
Because it picks tokens with some randomness, two runs rarely follow the exact same path. A setting known as temperature controls how adventurous those picks are. Small differences early in a reply can lead to quite different wording later. The app's hidden instructions, your saved memory and changes to the model over time also affect results.
Why does ChatGPT make mistakes?
ChatGPT is trained to produce text that is likely and helpful, not to check facts against a source of truth. That leads to some predictable problems.
- Hallucinations: it can invent facts, statistics, quotes or references that sound right but are false. See our guide to AI hallucinations.
- Outdated knowledge: without search, it may not know recent events.
- Odd blind spots: it sometimes fumbles tasks that seem easy, like counting letters, partly because it sees tokens rather than individual characters.
- Over-agreeableness: training on human approval can make models too eager to agree with the user, even when the user is wrong.
The practical lesson: use ChatGPT for drafting, explaining, brainstorming and summarizing, and double-check facts that matter. Clear instructions help too. Our guide to prompt engineering covers how.
Does ChatGPT learn from my conversations?
Not in real time. The model does not update itself as you chat. However, OpenAI may use conversations to train future models unless you switch that off in settings, and business plans generally exclude customer data from training by default. ChatGPT's memory feature can store facts you share, such as your job or preferences, and use them in later chats. You can view and delete those memories.
Is ChatGPT the only chatbot that works this way?
No. Anthropic's Claude, Google's Gemini, Meta AI and many others use the same broad recipe: a transformer-based language model, pre-trained on huge text collections and refined with human feedback. They differ in training data, safety approach, features and pricing. Our ChatGPT guide covers its plans and features in detail.
Why It Matters
Once you see ChatGPT as a prediction engine rather than an oracle, you start using it better. It is excellent at producing likely, fluent text, which makes it a strong partner for drafting and explaining. It has no built-in way to check whether it is right, so a confident tone tells you nothing about accuracy. The habit worth building is to treat its output as a first draft you verify wherever the facts count.
The training recipe has a consequence people often miss. A model shaped by human approval can drift toward telling you what you want to hear. Ask a leading question about your business plan, your health or your code and you may get easy agreement, so push it to argue the other side.
With 900 million weekly users, ChatGPT now shapes how a large share of the world writes, studies and searches. That scale raises the stakes on privacy. Check whether your chats are being used to train future models, and think twice before pasting sensitive work files or personal details into a consumer account.
Frequently asked questions
Does ChatGPT understand what it is saying?
It processes language in a way that captures a lot of meaning, which lets it answer complex questions and follow instructions. But it does not have experiences, beliefs or awareness. Researchers continue to debate what kind of "understanding" these models have.
Where does ChatGPT get its information?
From patterns in its training data, which includes public web text, books, code and licensed material up to a cut-off date. When web search is on, it also pulls in current pages and links to them.
Is ChatGPT free?
There is a free tier with usage limits. Paid plans, including Plus, Pro, Business and Enterprise, offer access to more capable models, higher limits and extra features. Prices and limits change, so check OpenAI's site for current details.
Why does ChatGPT type out answers word by word?
Because that is how it generates them. The model produces one token at a time, and the app streams each token to your screen as soon as it is ready instead of waiting for the full reply.
Researched and written by The AI Telegraph staff and checked against primary sources. See our editorial policy. Spotted an error? Tell us.

