A mortgage credit certificate is tied to your mortgage. And it lasts as long as your mortgage does. So it will stop being valid if you refinance, move out or sell the home. But note that it will very gradually become less valuable as you pay less toward mortgage interest and more toward your loan's principal balance over time.