For contributing Roth IRA, does capital gains from a sale of a main house add toward MAGI?

My income won't be over the Roth IRA contribution limit but I'm not sure if I need to worry about selling property of the main house. I understand it will be tax-free since I lived at the property for over 10 years.