@fjpuentes1974 reinveting the profit does not avoid the capital gain - that rule went out the window in 1997.
you simply owe the capital gain on the part over $500,000
be sure to subtract home improvments that occured over time and your selling costs when determining the gain,