>>1376583the bike itself is something like 500-2000 burgers for a non crap quality bike (avoid hi-ten steel)
the running costs can be as much as a car depending on how much tech you put into your bike like hydraulic disc brakes and electronic shifters etc and also depending on how much work you do yourself vs relying on a mechanic
always ride with an inner tube patch kit or a spare inner tube, the appropriate tools and a mini pump
keep a floor pump with pressure gauge at home because skinny road tires need a very high pressure to stay efficient but not too high or you risk blowing them up
you need to keep the chain lubricated and replace it when it sags too much
you need new basic tires every like 1000-1500 miles or $100/pair continental gp 5000 tires every like 5000 miles
it's recommended to spend about a tenth of the bike's value on a lock or to keep it inside in your garage or in your apartment
higher-tier drivetrains like shimano 105 and dura-ace cost a lot to buy and to maintain as you will need to replace parts over time
entry-level drivetrains like claris and sora use aluminium rivets so they wear out faster
consider a single speed bike if you're in good physical shape and prioritize low maintenance costs over speed (keep in mind you need to obey the speed limit and traffic safety laws in the city, you can't use a road racing bike to its full potential)
the frameset and the wheels don't last forever but you can get 5 or more years out of them probably