Capital gain

How do I know if I qualify for "the home capital gain exclusion"?