# Time to First Byte (TTFB)

Also called: TTFB, server response time

Time to First Byte is the time from the start of a navigation until the browser receives the first byte of the response. It reflects the network connection and how long the server took to answer. It is not a Core Web Vital, but it sets the floor for the ones that are.

## How it is calculated

TTFB adds up everything before the response begins: redirects, DNS lookup, connection and TLS setup, and the server's work to produce the page.

[Google's TTFB guide](https://web.dev/articles/ttfb) treats 800 milliseconds or less as good and over 1,800 milliseconds as poor. Because LCP cannot happen before the first byte arrives, a slow TTFB makes a good LCP hard to reach.

```
TTFB = time of first response byte − navigation start
```

## Example

A page rendered on a server in one region takes 1.4 s to first byte for visitors on another continent and 300 ms nearby. Caching the HTML at the edge brings distant visitors to 250 ms, and their LCP improves by about the same second.

## Common mistakes

- Treating it as pure server time. Redirects and connection setup are included.
- Measuring from your office next to the data centre. Look at it by country.
- Optimising images while TTFB is two seconds. Fix the first byte first.

## How CrispStats shows it

CrispStats records TTFB with the other vitals when `data-vitals` is on the script. It is shown at the 75th percentile with the good, needs improvement and poor split, and the breakdown by country shows where distance from your server costs time.

## Related terms

- [Largest Contentful Paint (LCP)](/glossary/lcp)
- [Core Web Vitals](/glossary/core-web-vitals)
- [Uptime](/glossary/uptime)
- [Interaction to Next Paint (INP)](/glossary/inp)
