Guide

TTFB and Page Speed Explained: How to Make Your Website Faster

Time to First Byte is the silent half of page speed most guides ignore. Here's what TTFB really measures, what a good number looks like, and the concrete steps to fix a slow one.

Key takeaways

  • A good TTFB is under 800ms; under 200ms is excellent. It's a hard floor on LCP and every other speed metric.
  • TTFB is a chain — DNS, TCP, TLS, request, server processing, first byte. Server processing and physical distance are the usual culprits.
  • Full-page caching is the highest-impact fix, often cutting TTFB from 800ms to under 100ms by skipping app and database work.
  • For a global audience, hosting in a region near your users (e.g. Stockholm or Frankfurt for Europe) removes a latency penalty no front-end tweak can fix.
  • If TTFB stays high on cached pages or swings wildly, the bottleneck is your host — move to dedicated NVMe hardware in the right region.

What TTFB Is (and Why It Caps Your Page Speed)

If you want to know how to make a website faster, TTFB is the first number to fix. Time to First Byte (TTFB) measures how long a browser waits from requesting a page until it receives the very first byte of the response. A good TTFB is under 800 milliseconds; under 200ms is excellent, and anything over 1.8 seconds is poor and needs attention.

TTFB matters because it's a hard floor on every other speed metric. Largest Contentful Paint (LCP) — the Core Web Vitals metric Google uses for ranking — can't happen until the server responds. If your TTFB is 1.2s, you've already spent half of the 2.5s 'good' LCP budget before a single pixel renders. Nothing you do on the front end can claw that time back.

Think of TTFB as the time your server spends thinking before it speaks. Front-end optimization (images, fonts, JavaScript) makes the page paint faster once bytes arrive. TTFB determines when bytes arrive at all. Both matter, but TTFB is the one most teams overlook because it's invisible in a quick visual check — the page 'works,' it just starts slow.

Host on faster serversOn the fastest servers in the North — free migration, 24/7 human support.Host on faster servers

The 6 Things That Happen Before the First Byte

TTFB isn't one delay — it's a chain. Knowing each link tells you exactly where to look when the number is high. A request walks through these stages in order, and the slowest one dominates your total.

  • DNS lookup — resolving your domain to an IP. Typically 20–120ms; slow or non-cached DNS adds avoidable lag.
  • TCP connection — the handshake to open the connection. Roughly one round trip, so it scales directly with physical distance to the server.
  • TLS handshake (HTTPS) — negotiating encryption, often the largest network cost. TLS 1.3 cuts this to a single round trip; older TLS 1.2 needs two.
  • Request sent — the browser's request travels to the server. Again, distance-bound.
  • Server processing — your app, database, and any API calls do their work. This is where most fixable TTFB lives.
  • First byte returned — the response begins its trip back. The clock stops when the browser receives byte one.

Why Your TTFB Is Slow: The Real Causes

In our experience tuning hosting for high-traffic sites, slow TTFB almost always traces back to one of a handful of culprits. The biggest is server processing time. A WordPress page that runs uncached database queries on every request can spend 400–900ms just assembling HTML. Add an overloaded shared-hosting CPU and that easily doubles.

The second is distance. Network latency is governed by physics — roughly 1ms of round-trip time per 100km, plus routing overhead. A visitor in Stockholm hitting a server in Virginia pays 90–120ms in raw latency before any processing. Multiply that across the TCP and TLS round trips and you've added a quarter-second purely to geography.

The rest are usually quick wins: no page caching, so every hit rebuilds the page from scratch; redirect chains (each hop is a full extra round trip); slow or geographically distant DNS; and TLS 1.2 instead of 1.3. Cheap shared hosting compounds all of these — you're sharing CPU, memory, and I/O with hundreds of other sites, so your 'thinking time' spikes unpredictably under load.

How to Make Your Website Faster: A TTFB Fix Checklist

Here's the concrete sequence we recommend, ordered by impact-per-effort. Measure your TTFB first (Chrome DevTools Network tab, WebPageTest, or PageSpeed Insights' field data) so you know what's actually slow before you change anything.

  • Enable full-page caching. Serving a cached HTML page skips database and app processing entirely — this alone can drop TTFB from 800ms to under 100ms. Use a server-level cache (Varnish, NGINX FastCGI cache) or a caching plugin.
  • Put a CDN in front of your site. A CDN serves cached content from an edge node near the visitor, collapsing the distance penalty for static and cacheable pages.
  • Move your origin server closer to your users. If most traffic is European, host in Stockholm or Frankfurt, not Ashburn. Region choice is the single biggest lever for global audiences.
  • Upgrade the hardware underneath you. NVMe SSDs and modern CPUs cut database and disk I/O time dramatically versus older spinning-disk or oversold shared plans.
  • Optimize the backend. Add database indexes, cache expensive queries (Redis/Memcached), use a current PHP/runtime version, and trim slow third-party API calls in the request path.
  • Eliminate redirect chains and enable TLS 1.3 + HTTP/2 or HTTP/3. Each removed round trip is free latency back.
  • Right-size your server. If CPU sits pinned during traffic peaks, you've outgrown the plan — move to dedicated cores or bare metal.

When the Bottleneck Is Your Host (Not Your Code)

Here's the honest part most optimization guides skip: sometimes your code and caching are fine, and the server itself is the ceiling. If your TTFB is high even on cached pages, or it swings wildly between 200ms and 1,500ms depending on the hour, that's a classic signature of an oversold shared environment. You're not slow — your neighbors are.

The fix isn't another plugin. It's better infrastructure: dedicated CPU and memory so your processing time stays consistent, NVMe storage so database reads are fast, and a server region that sits close to your actual audience. On well-provisioned bare-metal or cloud hardware in the right region, a cached page routinely returns its first byte in under 100ms — and even dynamic pages stay comfortably under the 800ms 'good' line.

This is where NordicVentures fits. We run NVMe bare-metal and cloud servers in Stockholm, Frankfurt, and Ashburn, so you can put your origin next to your users instead of paying a latency tax on every request. Pricing is transparent with no renewal shock, migration is free, and support is staffed by humans 24/7 who'll actually look at your TTFB with you. If you've optimized everything you can and the server is still the bottleneck, host on faster servers — see our business web hosting plans to move your site somewhere it can finally hit the numbers your code deserves.

FAQ

What is a good TTFB for a website?

Aim for under 800 milliseconds, which is the threshold Google considers good. Under 200ms is excellent and achievable for cached pages on fast servers. Anything consistently over 1.8 seconds is poor and is likely costing you both user experience and Core Web Vitals performance.

How do I make my website faster by improving TTFB?

Start with full-page caching to skip database and app processing, then add a CDN, move your origin server closer to your visitors, and upgrade to NVMe storage with dedicated CPU. Also enable TLS 1.3 and HTTP/2 or HTTP/3 and remove any redirect chains. Measure TTFB before and after each change so you know what actually helped.

Does TTFB affect SEO and Google rankings?

Indirectly but meaningfully. TTFB isn't a direct ranking factor, but it caps Largest Contentful Paint (LCP), which is a Core Web Vitals metric Google uses. A slow TTFB makes it nearly impossible to hit the 2.5-second 'good' LCP target, so fixing TTFB is often the fastest route to better Core Web Vitals scores.

Why is my TTFB slow even after optimizing my site?

If TTFB stays high on cached pages or swings unpredictably, the problem is usually the hosting environment, not your code. Oversold shared hosting forces you to share CPU and I/O with hundreds of sites, spiking your server's processing time under load. Moving to dedicated NVMe hardware in a region close to your users typically resolves it.

Ready to launch?Host on faster servers on NordicVentures — the fastest servers in the North.Host on faster servers