Skip to the entry

Browser-hour cost calculator

Answer
A browser-hour is one browser open for one hour. When you pay for environments, the cost per browser-hour is the environment's hourly price divided by the browsers it runs at once; these grids convert that to the cost of a session and of a month, at example prices you replace with yours.
Units of time used to convert session minutes to browser-hours
UnitSymbolLength (s)SourceChecked
One minutemin60physics.nist.gov/cuu/Units/outside.html
One hourh3,600physics.nist.gov/cuu/Units/outside.html
Cost per browser-hour when several browsers share one environment (Cost per browser-hour, USD)
Browsers open at once
Environment hourly price (USD)124816
0.060.06000.03000.01500.00750.0037
0.120.12000.06000.03000.01500.0075
0.240.24000.12000.06000.03000.0150
0.480.48000.24000.12000.06000.0300
0.960.96000.48000.24000.12000.0600
1.921.92000.96000.48000.24000.1200

Formula: hourly / browsers.

Cost of one browser session from its length and a price per browser-hour (Cost per session, USD)
Price per browser-hour (USD)
Session length (min)0.030.060.120.240.48
10.00050.00100.00200.00400.0080
20.00100.00200.00400.00800.0160
50.00250.00500.01000.02000.0400
100.00500.01000.02000.04000.0800
150.00750.01500.03000.06000.1200
300.01500.03000.06000.12000.2400
600.03000.06000.12000.24000.4800

Formula: minutes * sec_per_min * price / sec_per_hour, where sec_per_min = 60 s (One minute, Length); sec_per_hour = 3,600 s (One hour, Length).

Monthly cost from browser-hours used and a price per browser-hour (Monthly cost, USD)
Price per browser-hour (USD)
Browser-hours a month0.030.060.120.240.48
1003.006.0012.0024.0048.00
50015.0030.0060.00120.00240.00
1,00030.0060.00120.00240.00480.00
2,50075.00150.00300.00600.001,200.00
5,000150.00300.00600.001,200.002,400.00
10,000300.00600.001,200.002,400.004,800.00
25,000750.001,500.003,000.006,000.0012,000.00

Formula: hours * price.

What is a browser-hour?

A browser-hour is one browser open for one hour, however the time is split: one browser for 60 minutes, or 60 browsers for one minute each. It is the natural unit for browser tests and browser agents, because their cost grows with how long browsers stay open.

You meet it in two ways:

  1. You pay per environment (by vCPU and memory, or a fixed size per hour) and run browsers inside it. Your cost per browser-hour depends on how many browsers you fit.
  2. You pay per browser session, metered by the minute or second. The price per browser-hour is written down, and your job is to count the hours.

How do I calculate the cost per browser-hour of my own environments?

Divide the environment's hourly price by the number of browsers it runs at once. The first grid does this for example hourly prices.

Worked example, at example rates of 0.04 USD per vCPU-hour and 0.01 USD per GiB-hour: a 4 vCPU, 8 GiB environment costs 4 x 0.04 + 8 x 0.01 = 0.24 USD an hour. Running 4 browsers in it, the cost is 0.24 / 4 = 0.06 USD per browser-hour. At 5,000 browser-hours a month, that is 300 USD (third grid).

The cost per test run calculator shows how to get an hourly price from your own rates.

How do I find how many browsers fit in one environment?

Find it by running your own suite at rising parallelism and watching the wall time and memory. In Playwright Test, each worker process "starts its own browser", and the worker count is set with --workers (Playwright, "Parallelism", read 2026-11-26).

  1. Run the same suite in the same environment at 1, 2, 4 and 8 workers:
for w in 1 2 4 8; do
  start=$(date +%s)
  npx playwright test --workers "$w" > /dev/null
  echo "workers=$w seconds=$(( $(date +%s) - start ))"
done
  1. While it runs, read free memory from /proc/meminfo (the MemAvailable field) on Linux: grep MemAvailable /proc/meminfo.
  2. Pick the highest worker count where the wall time still falls and memory does not run out.

More browsers per environment lowers the cost per browser-hour, but only while each test keeps its speed. If doubling the workers makes every test twice as slow, the browser-hours double too and nothing is saved.

How do I convert session minutes to a cost?

Multiply the session's minutes by 60, then by the price per browser-hour, then divide by 3,600 (a minute is 60 seconds and an hour 3,600; NIST, read 2026-11-26). The second grid does this. A 10-minute session at an example 0.12 USD per browser-hour costs 0.02 USD.

If sessions are billed in whole minutes or have a minimum length, round each session up first, as explained in per-second vs per-hour billing.

What makes browser-hours higher than expected?

Browser-hours run higher than expected for four common reasons.

  1. Browsers left open while nothing happens, such as an agent waiting on its model or a test waiting on a slow page. See what idle time costs.
  2. Sessions that are never closed because a script crashed before cleanup. Set a maximum session length.
  3. Retries, which open the browser again.
  4. Too many browsers per environment, which slows each one down and stretches every session.

What we read for this page

Method

The units were read from NIST's table of units outside the SI accepted for use with it, on the checked date. Hourly prices, browsers per environment and prices per browser-hour in the grids are example inputs.

Common questions

What is a browser-hour?

One browser kept open for one hour. Ten browsers open for six minutes each also make one browser-hour.

How do I get the cost per browser-hour from an environment price?

Divide the environment's hourly price by the number of browsers it runs at the same time. A 0.24 USD an hour environment running 4 browsers costs 0.06 USD per browser-hour.

How many browsers can one environment run?

Measure it. Run your suite with 1, 2, 4 and 8 parallel workers and stop raising the count when the total time stops falling or memory runs short. The right number depends on your pages, not on a rule of thumb.

How many browser-hours does a test suite use?

Add up how long each browser is open. For a suite with parallel workers, that is roughly the number of workers times the suite's wall time.