What is the tax rate on the Gain from the sale of a primary home after 12 months of residence?

What is the tax rate on the Gain from the sale of a primary home after 12 months of residence? Is it a flat tax rate or fixed on one's income. What form is used to claim the Gain? TY