The home sale exclusion lets you omit from gross income up to $250,000 of gain ($500,000 on a joint return), but only if you meet certain conditions:
A specialized domestic relations court order that conforms to IRS regulations and provides instructions to pension plan administrators and IRA custodians as to how to pay benefits to a divorced spouse.