Many billionaires give massive sums to charity. However, some charities can be 1,000X as effective as others. Donating $5,000 to an effective charity could save a life while donating that amount to most charities will have negligible impact.
This site grades billionaires by the positive impact of their giving. If you would like to learn more about making an impact with your money you might be an effective altruist!