Operating costs for the 40,049 foundations reporting to the IRS were tabulated from line 24(d) of IRS Form 990-PF. Line 24(d) includes all administrative, advisory, accounting and tax, legal, compensation and other expenses incurred in the course of managing the foundation???s charitable activities.