Chain of Thought Prompting: Enhancing AI Reasoning and Decision-Making

Written by Coursera Staff • Updated on

Chain of thought prompting is a technique for increasing the reasoning power of a large language model by asking it to use a step-by-step approach when prompt solving. Learn how this technique works and how to write chain of thought prompts.

[Featured Image] An AI professional sits in an office space, using chain of thought prompting to help build software solutions for his organization.

Key takeaways

Chain of thought prompting results in the artificial intelligence (AI) model walking through a series of steps while it solves a problem. 

  • This type of prompt engineering requires you to lead the AI model through its thought process manually, guiding it throught solving each step before going to the next, or asking it to follow a step-by-step process. 

  • Chain of thought prompting can result in improved reasoning and accuracy, as well as reduced error. It can also help you understand how the model created its decision, which can enhance your ability to troubleshoot any issues.

  • You can use chain of thought prompting to increase an AI model’s ability to reason and use logic to solve mathematical word problems and for various other uses, including brainstorming ideas and generating images. 

Learn more about what chain of thought prompting can do, how it can help you, and careers that may benefit from using chain of thought prompts. To continue learning about prompting and to begin building skills such as AI enablement, AI literacy, and working with large language models, enroll in the Prompt Engineering Specialization from Vanderbilt University. In as few as four weeks, you will have opportunities to build practical knowledge and experience in prompt engineering while earning a shareable certificate you can add to your LinkedIn profile and resume. 

What is chain of thought prompting in AI?

Chain of thought prompting, or prompting an AI model to walk through a series of steps while it solves a problem, is a method for increasing the reasoning power of a large language model. 

Chain of thought prompting is a type of prompt engineering, or the process of carefully designing your AI prompts to get the best results. Prompt engineering is an important component of working with generative AI models. Therefore, chain of thought prompting can help you design AI prompts that give more thoughtful, reasoned answers to complex problems. 

You can either lead the AI model through the chain of thought process manually, asking it to solve the problem one step at a time, or you can simply ask the AI model to follow a predetermined step-by-step process. Both solutions will allow the AI model to give you a more nuanced response. 

For example, if you asked a large language model (LLM) to solve a complex math equation, it may initially say it is incapable of performing that function. But if you walk it through the process step by step, first defining the equation, then plugging in data and variables, it may be able to reach a solution. Ultimately, even though the model isn’t capable of solving a complex math equation on its own, you can use chain of thought prompting to increase its ability to reason and use logic.

Read more: 16 Artificial Intelligence Skills for General Roles and AI Careers

Chain of thought prompting benefits

Chain of thought prompting’s benefits include potentially helping you solve more complex problems with improved accuracy. A 2022 study found that chain of thought prompting was capable of allowing a simple language model to perform at the level of a more sophisticated, finely tuned algorithm. The study’s authors called the results of their study “striking” [1]. That improved reasoning ability can also provide a more accurate result and lead to better-organized, easier-to-follow responses. 

You may also enjoy other chain of thought prompting benefits. This technique may help you better understand how the AI model made the decision it did, increasing transparency and making it easier to spot and troubleshoot problems.

What are the key steps in chain of thought?

The way you format your prompt will depend on the type of chain of thought prompting you choose. For example, you might input the prompt, adding an instruction at the end such as, “explain your answer in a step-by-step format” or “provide each step and reasoning behind your answer.” You might also provide the model with examples of the type of questions you're asking, the answer, and an explanation of that answer to guide it through thinking about a similar circumstance. The way chain of thought prompting typically works in all instances includes these key steps:

•The model will restate the problem you want it to solve to make sure it understands your needs. 

•It breaks the problems into steps. 

•The model creates calculations and computations for each step, generating sub-results.

•The model combines sub-results to provide a final answer.

Types of chain of thought prompting

Depending on your need, you can use three key types of chain-of-thought prompting: zero-shot, automatic, and multimodal. 

Zero-shot: Zero-shot chain of thought (zero-shot COT) prompting allows a computer model to recognize patterns from training while following step-by-step instructions. This process allows it to come to an answer, even if it’s never had training on the specific problem you’re asking it to solve. You can also use zero-shot COT to give a computer a step-by-step process to follow, which will help the algorithm structure the response and determine how to find the answer without specific training.

Automatic: Automatic chain of thought prompting is a technique that builds on zero-shot prompting. It allows a computer model to determine the step-by-step approach it should take by first asking questions about the problem and then sorting those questions into the correct order needed to complete the task. This type of chain of thought prompting allows you to use a more streamlined and efficient process to reach a solution. 

Multimodal: Multimodal chain of thought prompting allows your AI to use both images and text to solve problems. This step-by-step process makes it possible for you to provide your AI model with an image and ask the model to answer questions or solve problems using the image as a reference. For example, you can upload an image of the vehicle and ask about the model’s features. 

What is the purpose of chain of thought prompting? 

Chain of thought prompting has many potential applications. For example, you could use this method to increase the reasoning and logic abilities of a less complex AI model. You could also use chain of thought prompting with a simple or less expensive model to get results that rival a more advanced model. 

Two areas where chain of thought prompting is especially helpful are arithmetic reasoning and commonsense reasoning. For arithmetic reasoning, chain of thought prompting lets you coax a less advanced large language model to complete mathematical word problems by breaking the complex process into simple commands.

Commonsense reasoning refers to the type of information you’d expect a person to know if they had a normal level of experience in the world. You can simulate it in AI models using chain of thought prompting. For example, you can ask an LLM what to do if you have a toothache, and the model might use commonsense reasoning to determine possible causes of your toothache and actions you could take to minimize pain or seek treatment. 

You can apply chain of thought prompting principles to any of the ways you can use a large language model, a seemingly endless number of uses. Other ways you can use it include:

  • Making a list of brainstorming ideas

  • Generating images

  • Requesting information

  • Summarizing documents

Who uses chain of thought prompting?

Careers that use chain of thought prompting include those that allow you to work with and collaborate with large language models, such as AI researchers, data scientists, and AI developers. 

AI researchers

Median total pay: $131,000 [2]

Job outlook (projected growth from 2024 to 2034): 20 percent [3]

As an AI researcher, you will either find new ways to advance the field of artificial intelligence or develop AI-based solutions to solve real-world problems. Depending on your project, you could complete the following tasks: 

  • Prepare data for training AI models 

  • Develop new AI models

  • Apply your research to implement new ideas

Data scientists

Median total pay: $156,000 [4]

Job outlook (projected growth from 2024 to 2034): 34 percent [5]

As a data scientist, you will help companies and organizations extract meaning from data. Depending on the industry or company you work for, you may do the following: 

  • Determine what data you need

  • Discover methods of collecting the data, including prompt engineering

  • Store, organize, and clean your data

  • Apply analytical principles to determine what your stakeholders can learn 

  • Present the data to senior staff or your client 

AI developers

Median total pay: $150,000 [6]

Job outlook (projected growth from 2024 to 2034): 15 percent [7]

As an AI developer or AI software developer, you will design, create, and implement AI software solutions on behalf of your company or client. Depending on the project, you may do the following:

  • Develop the architecture your system will need

  • Train stakeholders and your team members on how to use the technology

  • Keep up to date on the latest advances in AI technology to offer your clients cutting-edge solutions

Salary data reflects median total pay, which includes base salary plus bonuses, commissions, and other forms of additional compensation, and is accurate as of June 2026.

Explore our free AI resources

Stay updated on emerging technologies, popular professional pathways, and industry trends with a subscription to Career Chat, our weekly LinkedIn newsletter. To continue learning more about prompting and AI, check out some of our other resources, including the following:

You can also build your skills and knowledge with Coursera Plus. You can accelerate your learning journey and career growth by enrolling in either the monthly or annual option, both of which give you access to more than 10,000 programs from over 350 esteemed universities, institutions, and organizations. 

Article sources

1

Cornell University. “Chain-of-Thought Prompting Elicits Reasoning in Large Language Models, https://arxiv.org/abs/2201.11903#:~:text=We%20explore%20how,with%20a%20verifier.” Accessed June 16, 2026. 

Updated on
Written by:

Editorial Team

Coursera’s editorial team is comprised of highly experienced professional editors, writers, and fact...

This content has been made available for informational purposes only. Learners are advised to conduct additional research to ensure that courses and other credentials pursued meet their personal, professional, and financial goals.