What it costs to run AI at home
Hardware spread over its life, electricity and your own time on one side. Per-token API pricing and flat subscriptions on the other. How to do the arithmetic for your own usage.
A model running on a machine at home has three costs: the hardware spread over its useful life, the electricity and your time. The comparisons I read usually count the first, sometimes the second and almost never the third. Then they set the total against an API price as if the home machine would be busy around the clock.
I wrote in December about estimating inference cost for an organization. This is the same arithmetic at household scale, where the numbers are small enough to do on one page and the mistakes are the same ones.
I run a dedicated inference machine at home and I think it is worth having. I also think you should know what yours costs.
Hardware, spread over its life
Take what you paid and divide by the months you expect to use the machine.
The figures below are round numbers chosen to make the arithmetic easy to follow. A $1,200 machine kept for four years costs $25 a month. Keep it for two years and it costs $50.
Two adjustments are fair. If the machine does other work you would have bought it for anyway, charge the model only a share. And if you expect to sell it afterward, subtract what you think you will get. Be conservative on the second one. Hardware bought for AI work loses value fast, for the reason I gave in March when I wrote about refresh cycles: new generations arrive quickly.
The life you choose matters more than anything else on this line. Pick the number of years you will really keep using the machine for this purpose, which is usually shorter than the number of years it will keep working.
Electricity
The formula is average watts, times hours, divided by 1,000, times your rate per kilowatt-hour.
Measure the watts at the wall with a plug-in meter. The figure on the power supply is a maximum, and the processor's rated power says little about what the whole box draws while it waits. For a home machine the idle draw matters most, because idle is what it is doing for most of the day.
A machine that averages 40 watts around the clock uses about 29 kilowatt-hours in a month. The U.S. Energy Information Administration puts the 2025 national average residential price at a little over 17 cents per kilowatt-hour, which makes that about $5 a month. A box with a large graphics card that averages 150 watts uses about 110 kilowatt-hours, or about $19.
Use the rate on your own bill. Rates vary widely by state and by plan, and if you are on a time-of-use plan, a machine that runs all day pays the peak rate for part of it.
There is one more electrical cost that depends on where you live. I live near Phoenix. For much of the year, every watt the machine draws becomes heat inside the house, and the air conditioner then spends more electricity moving that heat back outside. In a cold climate the same heat is a small gift. I have not tried to put a number on this, but in a hot place you should know the sign of it.
Your time
This is the line people leave off, and it can be the largest.
Somebody installs the operating system and the model server, chooses the models and tests them. Somebody applies the updates and finds out why the service did not come back afterward. At home, both of those somebodies are you.
I cannot give you a number for this, because it depends on what your hours are worth and how much you enjoy the work. Count the hours for one month and you will have your own. Then decide which kind of hours they are. If you would have spent them on the lab anyway because you like it, call it a hobby and leave the cost at zero, as long as you are consistent about calling it a hobby. If the machine exists to save money, the hours count.
What the same work costs from an API
A hosted model charges per token, and it prices input and output separately. Anthropic's price list is a typical example of the structure: each model has a price per million input tokens and a higher price per million output tokens. The same page lists a 50 percent discount for batch work that can wait, and a much lower rate for the repeated part of a prompt when it is read from a cache.
So the estimate needs token counts. Take one job and count what goes in and what comes out.
As an illustration, suppose a script classifies 1,000 short messages a day, and each call sends 500 tokens and gets 50 back. That is 15 million input tokens and 1.5 million output tokens a month. Put the current rates for the cheapest model that passes your own tests next to those two numbers and you have the monthly API cost of that job. I am leaving the rates out because they change every few months, and a figure printed here would be stale before long.
Subscriptions
A subscription is a third shape. You pay a flat monthly fee and get an app, with usage limits. Anthropic's consumer plans, for example, are priced per month and the plan page says plainly that usage limits apply.
A subscription covers a person working in an app. Automated jobs that call a model from your own code are usually billed through the API, as a separate account with its own meter. So a subscription and a home machine rarely compete for the same work. The subscription serves you at the keyboard, and the home machine serves scripts that run while you are doing something else.
Putting the lines together
Add the hardware and electricity lines to get a fixed monthly cost. With the round numbers above, the small machine comes to about $30 a month before your time.
Then find out how many tokens you really process. Guessing does not work here. Local model servers report it. Ollama's API, for one, returns the count of input tokens and output tokens with every response. Log those for a month and add them up.
Divide the fixed cost by the tokens. If the machine handles the 16.5 million tokens a month from the classification example, it costs about $1.80 per million tokens. If it handles a tenth of that, it costs about $18 per million, for the same model on the same hardware.
About $30 a month, which is $1.82 per million tokens at that volume.
The starting values are the round numbers used in this post. A month is counted as 730 hours. Your time is not included.
That is the whole comparison. An API charges for what you use. A machine at home charges the same amount whether you use it or not, so its cost per token is set almost entirely by how busy you keep it. A home machine that runs a steady stream of small jobs all day can be cheap per token. One that answers a few questions in the evening is an expensive way to get those answers.
Reasons outside the arithmetic
Some reasons to run a model at home do not show up in the division, and they are legitimate.
The data stays in the house. There is no rate limit and no monthly bill that grows if a script loops. It works when the internet is down. And you learn how inference behaves by running it yourself.
The limit runs the other way. A machine you can afford for the house will not run the largest models. For work that needs one, the home machine adds to your costs and the hosted bill stays where it was. I use the split I described in February: small, repetitive jobs go to the small model at home, and the hard ones go to a hosted model.
One caveat. Hardware prices, electricity rates and API prices all move, and they do not move together. Redo the page a couple of times a year, and keep the token log running so the divisor is real each time.
Sources
Views are my own.