Running a web server at home might cost you your Internet connection! Check with your ISP first, especially if you expect a lot of traffic.
The cost is also depending on your usage. If the processor is working hard 24/7, it needs more power than when it's idle most of the time. If it doesn't need to spin the hard disk most of the time, energy is conserved even further. Keep your monitor off instead of on standby and you save more. Try to avoid connecting all kinds of devices to the USB ports, since USB devices want electricity too, even when you don't use them.
If all you want is to keep your files accessible over the Internet, consider purchasing a network-aware external hard disk. One that you can connect directly to your network. Some smarter ones can even function as simple web servers, running LAMP.
Also, do be aware that home PC's have been created to run just a few hours per day. If you're going to use it 24/7, the system will get a lot of strain, making it more likely that it breaks before the warranty ends. Home computers tend to be made with less durable materials, which reduces the price. (Especially hard disks.) Such heavy usage might not be covered by the warranty.