Factoring in consumables (tires, tubes, and chains), cost of the bike frameset and parts, the odd shop-repair cost, and cost of wardrobe....I'm at about $0.30 per km on my custom Seven roadie. And going down. Which is quite high. Then again that is everything other than nutrition on a 7-8 year old fully custom bike. There were also a few bad year of not-much riding in there.
OTOH....when you compute the cost of car commuting in parking alone, at about $2,350USD/year for a 40hr/week job locally here.... That bike has paid for itself many many times over in simply car parking expenses, nvm fuel and maintenance of the car.