Nonprofits are exempt from federal income tax and, typically, state income taxes and local sales and property taxes (but not always). However, any money earned from unrelated business is subject to taxation, as spelled out in Publication 598, Tax on Unrelated Business Income of Exempt Organizations. Nonprofits also pay Social Security and Medicare taxes (payroll taxes).