How do I determine cost basis of a stock I sold but apparently purchased many years ago and have no record of the purchase.

How do I determine cost basis of a stock purchased many years ago with no record of the purchase?