Assuming you own the printer already, I can tell you exactly. With most "slicer" software you can input the material you are using (cost, weight, etc) - and it can tell you when you generate the code for the printer to use. Here's an example from that 3-m12 holder (which could be made cheaper as I had much too high of an infill, a finer detail than necessary because I am dialing in some other settings). $2.06 (plus whatever that electricity cost).
If there's a microcenter by you and you (or someone you know) is a "new customer" you can get this same printer for like $100. It was more when I bought it, but a few useful upgrades add to the cost a bit. (a better bed material $30, auto leveling $30, dual z rods $30, direct drive $0.97 material).
There is a lot to consider when you're thinking about what material to use (PLA, PETG, ABS, ASA, PC, etc) which changes the pricing a bit, though not by much for the standard filaments - but that is pretty much a part by part decision. I have stacks of PLA and PETG, then a few rolls of more specialized things (like those with carbon fiber inlayed) - all for different uses.
View attachment 441454
View attachment 441455