If/when a person sells his primary residence, How much does .gov grab?

Built the house 24 years ago, Would this be a question regarding capital gains or what?

Thanks.