If your idle CPU temperature is 40C, then I would recommend upgrading to a better cooler, especially if the fan is working so hard to keep it that cool. My Cooler Master Hyper 212 Plus keeps my FX-6350 at around 28C idle and I can barely even hear the fan unless I put my face right up against the case vents. Lowering the fan speeds in the BIOS should do the trick, but honestly, it might be a bad idea to do that, it could cause overheating. Are you on a desktop or a laptop?