I like to think in cost per mile. My one ton pickup costs a full dollar to drive one mile. My subaru, after some recent shenanigans is getting up near 50 cents a mile. My wifes focus, bought cheap with a salvage titile is around 25 cents a mile. So when I drive the truck to work, 30 miles, and maybe another 10 doing whatever made me need to drive it costs me about 40 bucks. Not too good, since I may be only making about 60 bucks that day. The truck goes to work at most, once a month. Including all costs, most cars priced under $20,000 end up costing about 50 cents a mile, the cheaper ones, maybe 40 cents.
Take 16,000 for the cost, 20K purchase, minus trade in later of 4k. Add 10,000 for ten years insurance, maybe less if you buy cheaper insurance when the car is older. 4,300 gallons of gas at three bucks, 30 mpg, $12,900. Cost of the car loan, Maybe 4-6 thou? Figure 130,000 miles before you trade it in ten years later. That gives you 25 cents a mile, assuming you spent nothing at the mechanics shop, ever. Nowdays, cars are near impossble to work on yourself, and with shop rates at $100 an hour, a few good ones and the cost per mile skyrockets. My wifes focus started to have the radiator hoses go bad. Ten hoses under the hood, that could only be found at the ford dealer. $800 for radiator hoses, and only $200 of that was shop time. That's a thing that I have allways thought of as $100 and an hour of my time for any car or truck. The repairs are definitely becoming the hidden cost of driving that is hard to predict, and can be as much as the gas over a cars lifetime. And of course, in some states, a thou a year for insurance and registration is way low. I've had jobs where we drove 150 miles a day to work, and pretty soon we had camper villages on the construction sites. I couldn't even go a full week without changing the oil when I was driving the VW bug daily.
But on the other hand, trying to walk that 5 miles( from the supplier to work) with one ton of sand, cement, or landscape rock on the truck is pretty hard. Most weeks I'll have to drive the subaru to work just to carry some lumber, fertilizer, etc one day, maybe two. The other days I take the ebike, at a cost of 10 cents a mile. Three bucks a day is more like it for sure. Living closer to work would be nice, but it would double what we paid for the house. So the risk and longer time to pay off of a higher mortgage is not worth it. We can bus to work if we want to, but the travel time to get there and back is 3 hours a day. The ebike does it in one hour and 45 minuites.
Interestingly the roketta scooter may turn out about 50 cents a mile. It's broken down now too, and getting parts is gonna be fun, if not impossible. A better quality motorcycle might have been a better idea than the chinese scooter bought used, or more accurately, bought used up. If fixable, another 1000 miles out of it would bring the cost per mile down a lot. Edit, I fixed the scooter after all, at no cost too. Yay, last years riding was 47 cents a mile, but this years should be about 16 cents a mile.
The cheapest vehicle I ever owned was a honda CB 125. I drove it 10,000 miles over three years, and paid a total cost of about $250. No insurance in those days, and sold it for exactly what I paid for it. 2.5 cents a mile.

Todays equivilant would be about 7 cents?