DevTools Logo

Web Vitals Calculator

Web Vitals Calculator

Rate your Core Web Vitals against Google's thresholds — computed in your browser

Your measurements

Enter field or lab values for each metric

Good / Poor thresholds: LCP ≤2.5s / >4s · INP ≤200ms / >500ms · CLS ≤0.1 / >0.25

Examples

All metrics are Good

Input
LCP: 2200 ms
INP: 180 ms
CLS: 0.08
Output
{
  "LCP": "good",
  "INP": "good",
  "CLS": "good",
  "overall": "good"
}

Every value is at or below its Good threshold, so the overall assessment is Good.

All metrics need improvement

Input
LCP: 3000 ms
INP: 350 ms
CLS: 0.15
Output
{
  "LCP": "needs-improvement",
  "INP": "needs-improvement",
  "CLS": "needs-improvement",
  "overall": "needs-improvement"
}

Each value falls above its Good boundary but at or below its Poor boundary.

One Poor metric determines the overall rating

Input
LCP: 4100 ms
INP: 180 ms
CLS: 0.08
Output
{
  "LCP": "poor",
  "INP": "good",
  "CLS": "good",
  "overall": "poor"
}

A Poor LCP makes the overall result Poor even though INP and CLS are Good.

About this tool

The Web Vitals Calculator rates three Core Web Vitals measurements: Largest Contentful Paint (LCP), Interaction to Next Paint (INP), and Cumulative Layout Shift (CLS). Enter LCP and INP in milliseconds and CLS as a unitless score to receive a Good, Needs improvement, or Poor rating for each metric.

The thresholds implemented by the component are LCP at 2,500 and 4,000 milliseconds, INP at 200 and 500 milliseconds, and CLS at 0.1 and 0.25. Values at the good boundary are Good, values above the good boundary through the poor boundary Need improvement, and values above the poor boundary are Poor.

The overall assessment uses the worst individual rating: any Poor metric makes the overall result Poor, otherwise any Needs improvement metric makes it Needs improvement, and only three Good metrics produce an overall Good result. Invalid, non-finite, and negative values are rated Poor, and all calculations stay in the browser.

How to use this tool

  1. Collect the measurements

    Obtain LCP, INP, and CLS values from your field or lab measurement workflow.

  2. Enter each value

    Enter LCP and INP in milliseconds and enter CLS as its unitless decimal value.

  3. Read the metric ratings

    Review the Good, Needs improvement, or Poor badge shown beside each measurement.

  4. Check the overall result

    Use the overall assessment to identify the worst rating across all three metrics, then prioritize the metrics that prevent a Good result.

Use cases

Interpret a performance report

Enter the three measurements from a lab run or field report to translate raw numbers into consistent threshold ratings.

Prioritize performance work

Use the worst-rated metric to decide whether loading speed, interaction responsiveness, or visual stability needs attention first.

Check threshold boundary cases

Test values close to 2,500 ms, 200 ms, or 0.1 to confirm how an exact boundary is classified.

Compare optimization snapshots

Rate measurements before and after a change to see whether any metric moved into a better threshold band.

Common mistakes

Mistake:Entering LCP in seconds instead of milliseconds.

Fix:Convert seconds to milliseconds before entering LCP; for example, enter 2.5 seconds as 2500.

Mistake:Entering CLS as a percentage.

Fix:Use the unitless decimal score directly, such as 0.1, rather than 10 or 10%.

Mistake:Averaging the three metric ratings into an overall score.

Fix:Treat the overall result as the worst individual rating, which is exactly how this calculator derives it.

Mistake:Assuming a calculator result replaces real-user measurement.

Fix:Use measured field or lab values as the inputs; this tool classifies numbers but does not collect performance data from a page.

Frequently asked questions

What are the Core Web Vitals thresholds?

LCP: good ≤2.5s, poor >4s. INP: good ≤200ms, poor >500ms. CLS: good ≤0.1, poor >0.25. Values between good and poor are "needs improvement".

Why is my overall rating poor when two metrics are good?

Google considers a page to pass only when all three Core Web Vitals are in the good range, so a single poor metric makes the overall assessment poor.

What replaced FID?

INP (Interaction to Next Paint) replaced FID as a Core Web Vital in 2024. Enter your INP value to rate responsiveness.

Where do I get these numbers?

From field data (Search Console, the CrUX report) or lab data (Lighthouse, PageSpeed Insights). Paste whichever you have.

References & standards

.env Secret Safety Linter

Validate .env syntax and spot likely leaked credentials or placeholder secrets.

.htaccess Generator

Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth

2D Fluid Dynamics & Particle Physics Sandbox

A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.

AI Function Calling Schema Generator

Generate function calling JSON schemas from TypeScript interfaces

Algorithm Arena & Data Structure Visualizer

Interactive arena for algorithms and data structures: eight sorting algorithms racing on one seeded input, six pathfinding algorithms walking generated mazes, and BST, AVL, Red-Black, B-tree, heap and trie operations replayed step by step with rotations highlighted. Every run shows the Big-O table and the phase-highlighted reference implementation in four languages, and compared values can be played as pitch (sonification) through the shared audio engine. Everything runs client-side; inputs never leave the browser.

Ansible Playbook Generator

Build an Ansible playbook — hosts, vars, and tasks with modules — as YAML