Federal taxes are marginal. You don't pay 37% on the full 500k, you pay 37% on anything below that bracket start point, you pay the lower rates. For instance, if you're single and declare $1M in income your effective tax rate is more like 33.5% and not 37%.