# Bug report template and how to write one

> A copy-paste bug report template, with what to include in each field and an example. Learn how to write a good bug report developers can fix fast.

Source: https://commentpin.com/guides/bug-report-template
Last updated: 2026-12-02

## 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.

```text
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

```text
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](/use-cases/qa-testing), [in-app bug reports](/use-cases/saas-bug-reports) and the [QA checklist](/guides/website-qa-checklist). Compare with the [Jam alternative](/alternatives/jam-dev).

## FAQ

### 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.
