Bug report template and how to write one

Last updated:

What is a good bug report template?

A good bug report template asks for the steps to reproduce, what you expected, what happened and the environment. Here is one you can copy.

Title: <thing> <problem>, e.g. "Search results overlap the header on mobile"

Page URL:
Steps to reproduce:
1.
2.
3.
Expected result:
Actual result:
Environment: browser and version, OS, screen size
Screenshot or recording:
Console errors (if any):

How to write a good bug report

  • One bug per report. Two bugs in one report means one gets forgotten.
  • Write steps someone else can follow. Start from a URL.
  • Say what you expected. "It looks wrong" is not enough.
  • Add the environment. Many bugs only happen in one browser or at one screen width.
  • Attach a screenshot and mark the problem area.

Example

Title: Checkout button overlaps the footer on mobile
Page URL: https://shop.example.com/cart
Steps to reproduce:
1. Open the cart with one item on a phone-sized screen
2. Scroll to the bottom
Expected result: The button sits above the footer
Actual result: The footer covers half of the button
Environment: Safari 18, iOS 18, 390 x 844

Fill in half of it automatically

A feedback widget can capture the URL, environment, element and console errors for you, so the reporter only writes the steps and expectations. See website QA, in-app bug reports and the QA checklist. Compare with the Jam alternative.

Frequently asked questions

What should a bug report include?
A short title, steps to reproduce, expected result, actual result, environment (browser, OS, screen size), the page URL, and a screenshot or recording.
How long should a bug report be?
As short as possible while still letting someone else reproduce the bug. One bug per report.
What makes a good bug report title?
It names the thing and the problem, for example: Checkout button overlaps the footer on mobile.
Should I include console errors?
Yes, when you can. They often point straight at the cause. Tools such as Commentpin attach them automatically.
What is the difference between expected and actual results?
Expected is what should happen. Actual is what happened. Writing both makes the problem clear.