Cash, Cash Equivalents and Marketable Securities
|12 Months Ended
Dec. 31, 2022
|Investments, Debt and Equity Securities [Abstract]
|Cash, Cash Equivalents and Marketable Securities
5. Cash, Cash Equivalents and Marketable Securities
Cash equivalents are highly liquid investments that are readily convertible into cash with original maturities of three months or less when purchased. Marketable securities consist of securities with original maturities greater than 90 days when purchased. The Company classifies these marketable securities as available-for-sale and records them at fair value in the accompanying consolidated balance sheets. Unrealized gains or losses are included in accumulated other comprehensive loss. Premiums or discounts from par value are amortized to other income over the life of the underlying security.
Cash, cash equivalents and marketable securities, available-for-sale, consisted of the following at December 31, 2022 and December 31, 2021 (in thousands):
Although available to be sold to meet operating needs or otherwise, securities are generally held through maturity. The cost of securities sold is determined based on the specific identification method for purposes of recording realized gains and losses. During the years ended December 31, 2022, 2021 and 2020, there were no realized gains or losses on sales of investments, and no investments were adjusted for other than temporary declines in fair value.
As of December 31, 2022 and December 31, 2021, marketable securities with maturities of one year or less when purchased are presented in current assets and those with maturities of more than one year are presented in the noncurrent assets in the accompanying consolidated balance sheet.
As of December 31, 2022, the Company held five securities that were in an unrealized loss position. The aggregate fair value of securities held by the Company in an unrealized loss position for less than 12 months as of December 31, 2022 was $12.9 million. There were no securities held by the Company in an unrealized loss position for more than 12 months as of December 31, 2022. The Company has the intent and ability to hold such securities until recovery. The Company determined that there was no material change in the credit risk of the above marketable securities during the year ended December 31, 2022. As a result, the Company determined it did not hold any marketable securities with an other than temporary impairment as of December 31, 2022.