You must hold Treasury bonds for at least 45 days before selling on the secondary market if you purchase through TreasuryDirect.gov, or you can hold them until maturity (20–30 years from the purchase date). Treasury bonds purchased through brokers can generally be sold at any time after purchase.