I personally moved about 10 years ago to a very simple setup using a intel nuc. The idle is in the 5-10w range and max 45-65. I was using something that was idle 100-200. It shaved off about 15-30 bucks off my power bill per month when I did it plus a couple of other items in the house that had very poor idle. I am planning to move back to something a bit more interesting. But the specs to keep an eye on is the idle and max draw. For me I want something modest. But if you go all out and drop a couple 4090s in there and a decent xeon or threadripper it can get up there. Also keep in mind some of them have extra interesting things like fiber channel cards or some sort of infrastructure fabric ports (or lots of sata). They are not 0 but do add into the cost. So you may want to look how to disable them if you are not using them.
So something that is ide 5w would be about 5 dollars per year idle and about 65 form my max load. My price per kwh is 11 cents. Pretty sure the formula is ((number of watts)/1000)24365*(price per kwh). That should get you the yearly cost. Just run the calc for max and min load.
So you may be better served buying something newer that uses less power in the long run. Short term though playing with old hardware can be cost effective and fun.
https://www.film-rezensionen.de/wp-content/uploads/2021/09/2...
I have a poweredge from 2015 or so. Dual Xeon processors and all. It tops out at 500W absolute max. Though, idle is at least 75-100W. It's not too bad, I think I calculated <$100 a year. Obviously you can get some amount of virtual server for that much money, but I like being able to lay hands on a physical box. Plus the blinkenlights and HDD chatter noises are nice.