Deductions & credits

We have lived here for over 1yr (1.5) our total income would be about 80k, I'm sure I could increase 401k to get it lower if needed! I tried adding it as normal income to see the difference but kept using Google and getting different answer on what percent I'd pay in taxes. We are looking to make 60k on sale of home, after paying closing costs and realtor fees etc looking to still have about 40k.