The Supreme Court says a farming family has to pay tax on the bankruptcy sale of their farm.

The high court on Monday voted 5-4 for the IRS in its fight with Lynwood and Brenda Hall over their bankruptcy sale of their 320-acre farm in Willcox, Ariz.

The Halls were forced to sell their family farm for $960,000 to settle their bankruptcy debts. That sale brought about capital gains taxes of $26,000.The Halls wanted the taxes treated as part of the bankruptcy, paying part of it and having the court discharge the rest.

The IRS objected to that plan, saying all of the taxes must be paid and the 9th U.S. Circuit Court of Appeals in San Francisco agreed with the tax agency.

The high court agreed with that decision.