Samprix

Local AI Electricity Cost Calculator

Set what your computer draws, how long it runs and what you pay for power, and see what local AI costs you in electricity.

Runs in your browser API prices last checked: how
Your setup Example figures · use yours
W
$/kWh
hours
Electricity a month $5.40 36 kWh · $0.04 an hour
Day $0.18
Month $5.40
Year $65.70
Electricity only · hardware cost not included · month = 30 days

Versus paying for an API

Not set tok/s
Set your speed to see your cost per million tokens next to every API model.

How this calculator works

  • Cost is watts ÷ 1,000 × hours × your price per kWh. “Per month” assumes a 30-day month and “per year” 365 days.
  • Every input is yours. Makers publish a graphics card’s maximum power, not what it draws while running a model, and nobody publishes tokens-per-second figures. We don’t guess either one; see our methodology. The figures the page opens with are examples.
  • Cost per million tokens is the electricity used in the time your computer takes to generate a million tokens at the speed you entered. It counts generating only, not reading the prompt or sitting idle.
  • API prices are each model’s published price per million output tokens, from the provider’s own pricing page, re-checked every day.
  • What’s left out: the price of the hardware, and any difference in quality between a model you can run at home and the one behind an API.
  • Your numbers stay private. The calculation runs in your browser; nothing you enter is sent anywhere.

Did this tool do what you needed?

© 2026 Samprix. Not affiliated with OpenAI, Anthropic or Google.