SEO

What Is TTFB (Time to First Byte)? How It Affects SEO

Talha Aslan 16 min read 3 views

Short answer

What Is TTFB (Time to First Byte)?

TTFB (Time to First Byte) is the time between your browser sending a page request and receiving the first byte of the response. It covers DNS lookup, connection setup, and the time the server spends processing the request. A lower TTFB helps the page start rendering sooner.

Keep reading for the full details and examples

This metric does not measure the full page load; it only measures how fast the first response arrives. Therefore, a site can have a low TTFB and still feel slow overall. In fact, the browser still has to download and process HTML, CSS, and JavaScript after that first byte arrives. For that reason, treating TTFB as a complete speed guarantee would be a mistake.

So why does this one moment matter so much? Because every later rendering step depends on it. In other words, a high TTFB delays everything the visitor eventually sees on screen. In practice, that delay stacks on top of whatever comes after it.

On mobile networks this value tends to vary more than on a wired desktop connection. In practice, cellular latency fluctuates more than a stable fiber line. As a result, the same server can produce a noticeably different response time depending on the device and network a visitor happens to use. So it helps to test under both conditions.

What Stages Does TTFB Include?

TTFB is not a single step. It is the sum of several network and server stages that happen one after another before any content reaches the browser.

  1. Any redirects completing first.
  2. DNS lookup for the domain.
  3. Connection setup and TLS negotiation.
  4. The browser sending the actual request.
  5. The server processing that request and sending back the first byte.

If any single stage takes longer, the total TTFB grows as well. For example, too many redirects or a slow DNS provider can raise TTFB even when the backend itself is healthy. Your browser's developer tools show each of these stages separately under the Network tab. As a result, that makes it easier to spot the one causing the delay.

A redirect from an http address to its https version, for instance, adds its own extra network round trip. If your site is already reachable directly over https, that step disappears entirely and the total delay shortens. The same applies to a redirect between a www and non-www version of a domain. These small details rarely look significant on their own, but they add up.

How Is TTFB Different From LCP?

TTFB and LCP (Largest Contentful Paint) are often confused, but they measure different things. TTFB only tracks the first byte from the server, while LCP measures when the largest visible element finishes painting on screen. For a deeper look at LCP, INP, and CLS together, see our Core Web Vitals guide. In short, we will not repeat that explanation here.

In short, TTFB is a precondition for LCP. A slow server delays when rendering can even begin, so LCP suffers as a result. However, a fast TTFB does not guarantee a good LCP, since heavy images or scripts can still slow rendering down later. A page with an excellent TTFB but an oversized hero image can still post a poor LCP score.

Render-blocking CSS or font files can slow LCP in a similar way. In practice, these files are downloaded only after the first byte arrives, so they affect the stages that follow TTFB rather than TTFB itself. Understanding that distinction makes it easier to decide whether a slowdown belongs on the server side or the browser side.

How Is TTFB Different From INP?

INP (Interaction to Next Paint) measures how quickly a page responds to a click or tap. TTFB, on the other hand, happens before the page even loads, during the very first network request. As a result, the two are measured at completely different moments in a visit.

Moreover, TTFB is largely a server-side metric, while INP depends mostly on browser-side JavaScript execution. A site could suffer from both a high TTFB and a poor INP score at once. Still, the root causes of each issue are usually unrelated. Fixing one will not automatically fix the other, so each deserves its own investigation.

A visitor might, for example, see a page open quickly but feel a delay the moment they tap a menu. In that case the server is not the bottleneck. Instead, a heavy third-party script or a complex interface component is usually behind that kind of lag.

Is TTFB One of the Core Web Vitals?

No, TTFB is not an official Core Web Vitals metric. According to Google's own web.dev documentation, TTFB is a supporting metric that precedes user-centric metrics like LCP and FCP.

So improving TTFB alone will not directly raise a Core Web Vitals score. Still, because of its indirect effect on LCP, it should not be ignored. Interestingly, server-rendered sites can carry a slightly higher TTFB and still achieve a good LCP overall. In other words, the extra server time can pay off later in the rendering process.

Some performance tools list this value on its own row without folding it into an overall score. That separation can be confusing. After all, not every number in a report feeds directly into a score; some exist purely to give context for the numbers that do.

Why Does TTFB Matter for SEO?

Search engines care about both user experience and crawl efficiency. A high TTFB can slow down how fast Googlebot crawls your pages. As a result, that means your crawl budget covers fewer pages in the same amount of time.

On the user side, a slow-opening page often leads visitors to bounce before content even appears. Consequently, TTFB has a real, if indirect, effect on both technical SEO and user experience. That said, Google does not list TTFB itself as a direct ranking factor. Instead, its influence is mostly felt through LCP and overall experience.

This effect is often more visible for sites serving visitors across several countries. After all, a distant market already carries extra network latency before the server even adds its own delay. Given Google's mobile-first indexing approach, latency on mobile networks can amplify this further. So relying only on a desktop test can be misleading.

What Are the Common Causes of High TTFB?

Most causes of high TTFB trace back to server and infrastructure issues rather than front-end code. The most frequent ones include the following.

  • Resource contention on a shared hosting plan.
  • Missing or poorly configured caching.
  • A distant server location or no CDN at all.
  • Heavy, unoptimized database queries.
  • Outdated or underpowered server hardware.

Each of these can raise TTFB on its own, and they often combine. Therefore, identifying which cause dominates matters more than guessing at a single fix. We cover each of these causes in more depth in the sections below.

A simple way to narrow it down is to repeat the measurement at different times of day. If the delay spikes at specific hours, resource contention is likely. If it stays high and constant all day, a code or database issue is more probable. This small observation often points you toward the right fix before you change anything.

How Does Shared Hosting Resource Contention Affect TTFB?

On shared hosting, multiple sites compete for the same CPU, RAM, and disk I/O. A sudden traffic spike on a neighboring site can lengthen your own processing queue and push TTFB higher. We cover this at a conceptual level in our shared hosting resource limits guide.

If you want a broader look at why a site slows down overall, our server-side slowdown guide covers general causes. Instead, here we focus specifically on how resource contention shows up in TTFB. One telltale sign is a response time that climbs at predictable hours even though your own traffic has not changed. Likewise, that pattern usually points to activity on a neighboring account.

Some providers give you a panel that tracks resource usage over time, often broken down by hour for CPU and I/O. That data helps you confirm whether the slowdown is really coming from contention or something else. Moreover, it also gives you something concrete to show support when you raise the issue.

How Does a Lack of Caching Increase TTFB?

If a page is rebuilt from scratch on every request, the server hits the database and application code every single time. That repeated work extends how long it takes to send the first byte. Caching removes most of that repeated effort by keeping a ready-made copy available.

On PHP-based sites, OPcache settings help on the code side, while a reverse proxy cache like Varnish can lower TTFB at the page level. For projects that need a deeper architectural change, our Redis vs Memcached caching guide goes into much more detail than we can repeat here.

One useful distinction: browser caching helps a returning visitor on their second visit, while server-side caching also improves the very first visit's response time. If TTFB is your problem, server-side caching deserves priority over browser caching.

Setting a cache lifetime too short can create a similar problem. As a result, the cache keeps expiring, and the server ends up rebuilding content from scratch more often than it should. Match the cache duration to how often your content actually changes. A frequently updated news page and a rarely changed company page should not share the same cache lifetime.

How Does Database Query Load Affect TTFB?

When a dynamic page loads, the server usually runs several database queries before it can respond. If those queries are slow or too numerous, the server waits before it can send the first byte. As a result, TTFB climbs.

For instance, a query running against an unindexed table can turn a task that should take milliseconds into one that takes full seconds. This is why database performance is one of the first things to check when TTFB becomes a persistent problem.

A page that runs many small queries to fetch data it could have fetched in one pass causes a similar slowdown. This pattern shows up often on content management systems loaded with plugins. In practice, each plugin can add its own query, and the total load grows quickly without anyone noticing at first.

Physical or network distance between the database server and the web server adds its own delay too. If the two do not sit in the same data center, every query carries an extra round trip. Consequently, that cost compounds as the number of queries rises.

How Does a Distant Server or Missing CDN Increase TTFB?

The physical distance data travels to reach a visitor also affects TTFB. If your server sits far from where most of your visitors are, data makes more network hops, and that adds up to extra delay. We cover this network distance in more detail in our ping and latency guide.

A content delivery network (CDN) reduces this distance problem by keeping static content on servers that sit geographically closer to visitors. As a result, sites with an international audience often see a meaningful TTFB improvement once a CDN is in place.

If your audience is concentrated in a single country, a server location close to that region can be a simpler fix. Still, setting up a CDN is not always the first step. For an international or spread-out audience, a CDN is usually the more practical route. Either way, it helps to analyze your visitor distribution before deciding.

Some hosting providers let you pick between multiple data center regions. Where that option exists, pick the one closest to where most of your visitors are located. In short, it is a simple way to improve TTFB without any extra cost.

How Do You Measure TTFB?

The most practical way to measure TTFB is Google's free PageSpeed Insights tool. It reports server response time using both field and lab data. Your browser's developer tools also show a timeline for every request under the Network tab.

For a more technical approach, web.dev's TTFB documentation explains how to measure it programmatically through the Navigation Timing API. For everyday monitoring, though, PageSpeed Insights is enough for most site owners.

Field data comes from real visitors' browsers, while lab data comes from a single controlled test run. Do not be surprised if the two disagree somewhat. After all, real visitor conditions include network speeds and devices a lab test simply cannot replicate.

Some hosting panels can also report an average response time pulled from server-side logs. Comparing that figure against browser-based measurements helps you tell whether a problem sits on the network side or the server side. As a result, that tells you which team to talk to.

A single measurement only gives you a snapshot, while TTFB can shift over time. Server-side maintenance can move this number from one week to the next. So can a change on a neighboring account or a new plugin on your own site. Logging your results weekly or monthly in a simple spreadsheet lets you see the trend rather than just one moment. Moreover, it also gives you something to compare against later if a problem appears.

How Do You Interpret a Good or Poor TTFB Score?

Google offers a rough three-tier guide for TTFB: good, needs improvement, and poor. These thresholds can change over time. Instead, rather than quoting an exact millisecond figure here, we recommend checking the current threshold directly on web.dev.

TierGeneral MeaningRecommended Action
GoodServer response is fast and gives later metrics a solid base.Keep your current caching and hosting setup as is.
Needs improvementResponse time is acceptable but could put you at a disadvantage.Review caching and database queries.
PoorServer delay is hurting both user experience and crawl efficiency.Prioritize hosting, CDN, and query optimization.

Treat this table as a rough starting point rather than a strict rulebook. In practice, an acceptable range can vary by industry and audience. A single measurement also deserves less trust than an average taken over several days. After all, a brief traffic spike can distort one isolated reading.

Results can also differ across page types on the same site. A heavily cached homepage might show a low value. A dynamic search results page on the same domain can report a much higher one, so testing a single page and generalizing to the entire site can be misleading.

What Are the General Ways to Improve TTFB?

Improving TTFB usually comes from combining several smaller optimizations rather than one single fix. The following steps are a reasonable starting point for most sites.

  1. Enable page and object caching layers.
  2. Review database queries and indexes.
  3. Remove unnecessary redirects.
  4. Use a CDN that matches where your visitors are.
  5. Check regularly whether your hosting plan still fits your traffic.

Making one change at a time and measuring the result afterward makes it much easier to see what actually worked. Changing several things at once makes it far harder to tell which step produced the improvement.

Keeping your server software up to date is another easy step that is often overlooked. Likewise, older versions tend to run slower, and they can also carry security risks. It is worth asking your hosting provider how often these updates happen on your plan.

Does Upgrading Hosting Lower TTFB?

In most cases, yes, though it is not a guaranteed fix. Moving from shared hosting to a plan with dedicated resources usually reduces the contention-driven part of TTFB. Our hosting selection guide covers how to pick the right plan in more detail. Our VPS vs cloud server vs VDS comparison explains the main upgrade paths.

That said, if your TTFB problem comes from caching or code rather than raw capacity, upgrading hosting alone will not solve it. Identifying the real cause first makes the hosting decision much easier afterward.

Before upgrading, monitor your current plan's actual resource usage. As a result, that helps you avoid landing on a plan that is either oversized or still too small. In many cases a modest upgrade solves the problem at a lower cost than expected.

How Does a CDN Reduce TTFB?

A CDN keeps static files, and sometimes cached copies of dynamic content, on edge servers that sit geographically close to visitors. This way, a request can be answered from a nearby point instead of traveling all the way to the origin server.

This difference can be significant for sites with visitors across multiple countries. However, a CDN does not replace a fast origin server. Adding one without fixing underlying server issues rarely delivers the improvement people expect, so think of it as one part of the solution rather than a fix on its own.

Setting up a CDN usually only requires a small DNS change, and most providers walk you through the process from a management panel. That makes it accessible even for site owners with limited technical background. After that, re-testing from a few different locations confirms it is working as intended once it is live.

How Does TTFB Relate to Site Speed and SEO?

TTFB is only one component of overall site speed; total page speed also includes image optimization, JavaScript weight, and more. We cover that bigger picture in our site speed and SEO article, so here we focus specifically on the server side.

In other words, improving TTFB is just one part of a broader speed strategy. Once the server side is fixed, image and code-level optimizations still deserve attention. A site can post both a low TTFB and a high total load time at the same time.

This relationship can matter even more for e-commerce sites. After all, every extra second of delay has the potential to affect checkout completion rates. Testing the server side before a major sales period is a far cheaper precaution than dealing with the fallout afterward.

How Do You Check Your Own Site's TTFB?

You can check your own TTFB by following a few simple steps.

  1. Enter your page's URL into PageSpeed Insights.
  2. Look at the section covering server response time.
  3. Check the result separately for mobile and desktop.
  4. Share the result with your host or developer if needed.

We recommend making this a regular habit rather than a one-time check, especially after a hosting change or a noticeable jump in traffic. Avoid running the test with several other tabs or a heavy download active at the same time. Otherwise, that can skew the result away from real conditions.

If you also want to review your site's broader technical SEO signals, not just speed, our free SEO Checker tool covers several signals at once.

Core guide: What Is Digital Marketing? Its types, examples and how it is done, on one page with an interactive film that travels through the brain.

Frequently Asked Questions

What is TTFB in simple terms?
TTFB is the time between your browser requesting a page and receiving the first byte back from the server. It covers DNS lookup, connection setup, and server processing time, but not the full page load. A lower TTFB helps rendering start sooner, though it does not by itself guarantee a fast-feeling page overall.
Is TTFB the same as total page load time?
No, they measure different things. TTFB only covers the first byte of response, while total page load time includes downloading and processing images, CSS, JavaScript, and every other resource on the page. A page can have a low TTFB and still feel slow because of heavy assets, so it helps to evaluate both separately.
What tools can I use to check my TTFB?
Google's free PageSpeed Insights tool reports TTFB using both field and lab data. Your browser's developer tools also show a timeline for every request under the Network tab, including when the first byte arrives. Our free SEO Checker tool can also help you review broader technical signals alongside speed.
Will a high TTFB immediately hurt my rankings?
Not in a direct, immediate way. TTFB is not an official Core Web Vitals metric, so its effect on rankings is indirect, mostly through LCP and overall user experience. Still, a persistently high TTFB can hurt crawl efficiency and user experience over time, so it is not a signal worth ignoring.
Does free hosting make TTFB worse?
Free or heavily restricted shared hosting plans often hurt TTFB because of intense resource sharing among many sites. A neighboring site's traffic spike can lengthen how long your own requests take to process. As a general rule, the more resources a plan shares among sites, the more directly it tends to affect TTFB.
How long does it take to improve TTFB?
It depends on the root cause. Fixing caching configuration often brings quick results, while database optimization or a hosting migration can take longer to complete. There is no fixed timeline that applies to every site; identifying the actual cause first and applying the matching fix is the most reliable path.
  • TTFB
  • server response time
  • Core Web Vitals
  • site speed
  • technical SEO
  • web hosting
  • page speed
Share:
Talha Aslan

Google Partner digital marketing expert. Hands-on with SEO, Google Ads, web design and e-commerce projects since 2012; every post here comes from that experience.

Next project

Get a quote for your project.

Your brief goes straight to Talha Aslan and team: strategy led by Talha, delivery by an experienced team. We reply the same day and send the scope, timeline and price as a written quote within 1 business day.