Time to First Byte (TTFB) is the time between a browser asking for your page and the first byte of the response arriving. It's the very first thing that happens in a page load, so everything else — rendering, images, Largest Contentful Paint — waits on it.
It's also the speed metric that plugins have the least control over, which is why it's the clearest sign of whether your hosting is holding you back.
What counts as a good TTFB?
Google's guidance treats 800 ms or less as "good" at the 75th percentile of real visits. That's a pass mark, not a target. For a WordPress site, a more useful set of targets is:
| Page type | Great | OK | Problem |
|---|---|---|---|
| Cached page (most visitors) | under 200 ms | 200–500 ms | over 500 ms |
| Uncached page (cart, checkout, logged in, first visit) | under 400 ms | 400–800 ms | over 800 ms |
Test location matters. These numbers assume the test runs from the same region as your server or CDN edge. From the other side of the world, add a few hundred milliseconds unless you use edge caching.
What makes up TTFB
TTFB isn't one thing. It's several steps added together:
- DNS lookup: finding your server's IP address.
- Connection and TLS: opening a secure connection. Longer when the server is far away.
- Waiting for the server: WordPress loading, running plugins and database queries, and building the page. This is usually the biggest part, and it's the part your host decides.
- The first byte travelling back.
Page caching shrinks step 3 by skipping WordPress for cached pages. A CDN with edge caching shrinks steps 2–4 by answering from nearby. A faster server shrinks step 3 for every page, cached or not.
How to test TTFB properly
Most people test only their cached homepage, see a good number, and miss the real problem. Test both:
Cached: run your homepage through GTmetrix or WebPageTest twice and use the second result. GTmetrix shows TTFB in the Speed Visualization and in the first row of the waterfall. WebPageTest shows it at the top of the results.
Uncached: run a URL that can't be cached. Add a random query string, like yoursite.com/?nocache=5839, and change the number every run. Or test a WooCommerce cart page or a search page (yoursite.com/?s=test).
Real visitors: in PageSpeed Insights, the top "real users" section shows field TTFB from Chrome users over the last 28 days, if your site has enough traffic.
How to fix a slow TTFB
Work through these in order. The first one decides how much the others can help.
1. Check your host
If uncached TTFB is consistently over 800 ms from a nearby test location, the server is the bottleneck. Common causes are crowded shared hosting, old server software, too few PHP workers, or a plan that's simply too small for your traffic.
No plugin can make the server build pages faster. The lasting fix is a host with a modern stack, server-level page caching and object caching. Compare options in fast WordPress hosting, or run our 5-minute host test first.
2. Turn on page caching
If cached TTFB is high, your cache probably isn't working. Use your host's built-in cache where there is one. Otherwise, use one caching plugin:
- WP Rocket or FlyingPress: paid, works on any host.
- LiteSpeed Cache: free, but page caching only works on LiteSpeed servers.
- WP Super Cache: free and simple.
Turn on cache preloading so visitors don't hit cold, uncached pages after you publish or clear the cache.
3. Add object caching for dynamic pages
WooCommerce, membership and LMS sites serve lots of pages that can't be fully cached. Redis object caching keeps database query results in memory, which can cut uncached TTFB a lot. It needs to be available on your server: use Redis Object Cache (free) or Object Cache Pro if your host provides it. See database & object caching.
4. Find slow plugins and queries
Install Query Monitor, load a slow page while logged in, and check the queries and "Queries by Component" panels. One plugin running dozens of slow queries can add seconds. Remove or replace it.
5. Update PHP
Check Tools → Site Health → Info → Server and move to a currently supported PHP version in your hosting panel. Test on staging first.
6. Serve from closer to your visitors
If TTFB is good near your server but poor far away, add a CDN with full-page caching, such as Cloudflare with APO, or choose a host with edge caching built in.
Common TTFB mistakes
- Testing only the cached homepage. It hides a slow server.
- Stacking two caching plugins. They conflict. Use one, plus your host's cache.
- Blaming images or JavaScript for a TTFB problem. Front-end fixes improve what happens after the first byte. They can't fix the wait before it.
- Comparing tests from different locations. Keep the test location the same when measuring before and after.
The bottom line
A slow cached TTFB is usually a caching setup problem you can fix with a plugin. A slow uncached TTFB is usually a hosting problem you can't. Test both, and you'll know which one you're dealing with before you spend a cent.
Some links in this article are affiliate links. See our disclosure.