What is withheld when you sell
When a foreigner sells U.S. property, the buyer must withhold part of the price and send it to the IRS. It is not the final tax: when you file, you pay what is due on the gain and recover the rest.
General rule: 15% of the sale price. If the buyer will live in it: none up to $300,000 and 10% up to $1,000,000. You can ask the IRS to withhold less before closing (Form 8288-B) when the gain is small.
The actual tax on the gain depends on how long you held it and your situation: confirm with an accountant.
Sources: IRS: FIRPTA withholding · National Association of Realtors: FIRPTA changes.