Nature of the Business, Basis of Presentation and Summary of Significant Accounting Policies | 1. Nature of the Business, Basis of Presentation and Summary of Significant Accounting Policies Nature of the Business Terns Pharmaceuticals, Inc. (Terns) is a clinical-stage biopharmaceutical company developing a portfolio of small-molecule single-agent and combination therapy candidates to address serious diseases such as non-alcoholic steatohepatitis (NASH) and obesity. Terns was incorporated as an exempted company in the Cayman Islands in December 2016. In December 2020, the Company effected a de-registration of the Company in the Cayman Islands and a domestication in the State of Delaware (the "Domestication"), pursuant to which it became a Delaware corporation. Terns owns all of the share capital of Terns Pharmaceutical HongKong Limited (Terns Hong Kong) and Terns, Inc., a Delaware corporation (Terns U.S. Opco). Terns Hong Kong holds all of the share capital of Terns China Biotechnology Co., Ltd. (organized in Shanghai, People’s Republic of China (PRC)) (Terns China) and Terns (Suzhou) Biotechnology Co., Ltd. (organized in Suzhou, PRC) (Terns Suzhou). The Company manages its operations as a single segment for the purposes of assessing performance and making operating decisions. Basis of Presentation The accompanying consolidated financial statements are prepared in accordance with accounting principles generally accepted in the United States of America (U.S. GAAP) and include the accounts of Terns and its wholly owned subsidiaries Terns U.S. Opco and Terns Hong Kong and its wholly owned subsidiaries Terns China and Terns Suzhou. Prior period reflects a variable interest in Terns China in which Terns had a majority interest and was the primary beneficiary. The noncontrolling interest attributable to the Company’s variable interest entity (VIE) is presented as a separate component from stockholders’ equity (deficit) in the consolidated balance sheets, and a noncontrolling interest in the consolidated statements of operations and comprehensive loss and consolidated statements of noncontrolling interest, convertible preferred stock and stockholders’ equity (deficit). The Company’s consolidated financial statements have been prepared in conformity with U.S. GAAP. All intercompany balances and transactions have been eliminated in consolidation. Initial Public Offering In February 2021, the Company completed an initial public offering (the “IPO”) of 8,625,000 shares of its common stock, including the exercise in full by the underwriters of their option to purchase up to 1,125,000 additional shares of common stock, for net proceeds of $ 133.0 million, after deducting underwriting discounts and commissions and offering expenses, and its shares started trading on the Nasdaq Global Select Market under the ticker symbol “TERN.” Upon closing of the IPO, all of the Company's outstanding shares of convertible preferred stock automatically converted into an aggregate of 16,079,230 shares of common stock. Certificate of Incorporation Prior to the IPO, the Company’s certificate of incorporation adopted in December 2020 in connection with the Domestication (the “December 2020 Charter”) authorized the Company to issue the following shares of capital stock: (i) 299,700,000 shares of common stock, (ii) 40,000,000 shares of Series A convertible preferred stock, (iii) 36,409,088 shares of Series B convertible preferred stock, and (iii) 111,619,996 shares of Series C convertible preferred stock. All classes of stock under the December 2020 Charter were authorized at a par value of $ 0.0001 . In February 2021, the Company’s amended and restated certificate of incorporation filed with the Secretary of State of the State of Delaware became effective in connection with the closing of the IPO. Under the amended and restated certificate of incorporation, the Company is authorized to issue 150,000,000 shares of common stock and 10,000,000 shares of preferred stock. All classes of stock have a par value of $ 0.0001 . Reverse Stock Split In January 2021, the Company filed an amended and restated certificate of incorporation to effectuate a reverse split of shares of the Company’s common stock and convertible preferred stock on a 1-for-14 basis (the “Reverse Stock Split”). The par value and the number of authorized shares of the convertible preferred stock and common stock were not adjusted as a result of the Reverse Stock Split. All issued and outstanding common stock, options to purchase common stock and per share amounts contained in the consolidated financial statements have been retroactively adjusted to give effect to the Reverse Stock Split for all periods presented. Variable Interest Entity The Company consolidates a VIE where it has been determined that the Company is the primary beneficiary of the entity’s operations. The Company has considered its relationships with a certain entity to determine whether the Company has a variable interest in that entity, and if so, whether the Company is the primary beneficiary of the relationship. U.S. GAAP requires VIEs to be consolidated if an entity’s interest in the VIE is a controlling financial interest. Under the variable interest model, a controlling financial interest is determined based on which entity, if any, has (i) the power to direct the activities of the VIE that most significantly impacts the VIE’s economic performance and (ii) the obligations to absorb losses that could potentially be significant to the VIE or the right to receive benefits from the VIE that could potentially be significant to the VIE. Management performs ongoing reassessments of whether changes in the facts and circumstances regarding the Company’s involvement with a VIE will cause the consolidation conclusion to change. The consolidation status of a VIE may change as a result of such reassessments. Changes in consolidation status are applied prospectively in accordance with U.S. GAAP. Impact of the COVID-19 Pandemic The COVID-19 pandemic is rapidly evolving. The COVID-19 virus and new variants that emerge continue to impact countries worldwide, including the United States and China where the Company has business operations. The extent of the impact of the COVID-19 pandemic on business, operations and development timelines and plans remains uncertain, and will depend on certain developments, including the duration and spread of the outbreak and its impact on the Company’s development activities, planned clinical trial enrollment, future trial sites, contract research organizations (CROs), third-party manufacturers and other third parties with whom the Company conducts business, as well as its impact on regulatory authorities and the Company’s key scientific and management personnel. The ultimate impact of the COVID-19 pandemic or a similar health epidemic is highly uncertain and subject to change. To the extent possible, the Company is conducting business as usual, with necessary or advisable modifications to employee travel and to the on-site and in-person activities of the Company's personnel. The Company will continue to actively monitor the rapidly evolving situation related to the COVID-19 pandemic and may take further actions that alter the Company’s operations, including those that may be required by federal, state or local authorities in the United States and China, or that the Company determines are in the best interest of its employees and other third parties with whom the Company conducts business. At this point, the extent to which the COVID-19 pandemic may affect the Company’s business, operations and development timelines and plans, including the resulting impact on expenditures and capital needs, remains uncertain. Summary of Significant Accounting Policies Revenue Recognition To determine revenue recognition for arrangements, the Company performs the following five steps: (i) identify the contract(s) with a customer; (ii) identify the performance obligations in the contract; (iii) determine the transaction price; (iv) allocate the transaction price to the performance obligations in the contract; and (v) recognize revenue when (or as) the Company satisfies a performance obligation. The Company only applies the five-step model to contracts when it is probable that it will collect the consideration it is entitled to in exchange for the goods and services it transfers to the customer. At contract inception, the Company assesses the goods or services promised within each contract, determines those that are performance obligations and assesses whether each promised good or service is distinct. The Company then recognizes as revenue the amount of the transaction price that is allocated to the respective performance obligation when (or as) the performance obligation is satisfied. The Company enters into corporate collaborations under which it may obtain upfront license fees, research and development funding, and development, regulatory and commercial milestone payments and royalty payments. The Company’s performance obligations under these arrangements may include licenses of intellectual property, distribution rights, research and development services, delivery of manufactured product and/or participation on joint steering committees. Licenses of intellectual property If the license to the Company’s intellectual property is determined to be distinct from the other performance obligations identified in the arrangement, the Company recognizes revenue from upfront license fees allocated to the license when the license is transferred to the customer and the customer is able to use and benefit from the license. For licenses that are bundled with other promises, the Company utilizes judgement to assess the nature of the combined performance obligation to determine whether the combined performance obligation is satisfied over time or at a point in time and, if over time, the appropriate method of measuring proportional performance for purposes of recognizing revenue from non-refundable, upfront fees. The Company evaluates the measure of proportional performance each reporting period and, if necessary, adjusts the measure of performance and related revenue recognition. Milestone payments At the inception of each arrangement that includes development, regulatory or commercial milestone payments, the Company evaluates whether the milestones are considered probable of being reached and estimates the amount to be included in the transaction price. The Company considers two alternatives to use when estimating the amount of variable consideration: the expected value method and the most likely amount method. Under the expected value method, an entity considers the sum of probability-weighted amounts in a range of possible consideration amounts. Under the most likely amount method, an entity considers the single most likely amount in a range of possible consideration amounts. Whichever method is used, it should be consistently applied throughout the life of the contract; however, it is not necessary for the Company to use the same approach for all contracts. The Company expects to use the most likely amount method for development and regulatory milestone payments. If it is probable that a significant revenue reversal would not occur, the associated milestone value is included in the transaction price. Milestone payments that are not within the Company’s or the licensee’s control, such as regulatory approvals, are not considered probable of being achieved until those approvals are received. The transaction price is then allocated to each performance obligation on a relative stand-alone selling price basis. The Company recognizes revenue as or when the performance obligations under the contract are satisfied. At the end of each subsequent reporting period, the Company re-evaluates the probability or achievement of each such milestone and any related constraint, and if necessary, adjusts its estimates of the overall transaction price. Any such adjustments are recorded on a cumulative catch-up basis, which would affect revenues and earnings in the period of adjustment. Commercial milestones and royalties For arrangements that include sales-based royalties, including milestone payments based on the level of sales, and in which the license is deemed to be the predominant item to which the royalties relate, the Company recognizes revenue when the related sales occur. To date, the Company has not recognized any royalty revenue resulting from its collaboration arrangements. Upfront payments and fees are recorded as deferred revenue upon receipt or when due and may require deferral of revenue recognition to a future period until the Company performs its obligations under these arrangements. Amounts payable to the Company are recorded as accounts receivable when the Company’s right to consideration is unconditional. Use of Estimates The preparation of financial statements in conformity with U.S. GAAP requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities at the date of the financial statements and reported amounts of expenses during the reporting period. Significant estimates and assumptions made in the accompanying consolidated financial statements include, but are not limited to, the estimates for accruals of research and development expenses, accrual of research contract costs, unrecognized tax benefits, fair value of common stock and stock option valuations. On an ongoing basis, the Company evaluates its estimates and judgments, using historical and anticipated results and trends and on various other assumptions that management believes to be reasonable under the circumstances. Actual results could materially differ from those estimates. Cash, Cash Equivalents and Marketable Securities Cash and cash equivalents consist of standard checking accounts and money market funds. The Company considers all highly liquid investments with an original maturity of 90 days or less at the date of purchase to be cash equivalents. The Company classifies as available-for-sale marketable securities with a remaining maturity when purchased of greater than three months. The Company’s marketable securities are maintained by investment managers and consist of U.S. government and non-U.S. government securities, corporate debt securities, and commercial paper. Debt securities are carried at fair value with the unrealized gains and losses included in other comprehensive loss as a component of stockholders’ equity (deficit) until realized. Any premium arising at purchase is amortized to the earliest call date and any discount arising at purchase is accreted to maturity. Amortization and accretion of premiums and discounts are recorded in interest income and/or expense. Realized gains and losses on debt securities are determined using the specific identification method and are included in other income (expense), net. If any adjustment to fair value reflects a decline in value of the investment, the Company considers all available evidence to evaluate the extent to which the decline is “other-than-temporary” and, if so, marks the investment to market through a charge to the Company’s consolidated statements of operations and comprehensive loss. The fair value and amortized cost of marketable securities by major security type as of December 31, 2021 is as follows: December 31, 2021 (in thousands) Amortized Cost Unrealized Gains Unrealized Losses Fair Value Money market funds $ 33,239 $ — $ — $ 33,239 U.S. government securities 36,322 — ( 130 ) 36,192 Non-U.S. government securities 11,194 — ( 12 ) 11,182 Corporate debt securities 39,495 — ( 52 ) 39,443 Commercial paper 31,466 — — 31,466 Total $ 151,716 $ — $ ( 194 ) $ 151,522 Classified as: Cash equivalents $ 33,239 Marketable securities 118,283 Total $ 151,522 The Company did no t have any marketable securities for the year ended December 31, 2020 . Classification of Convertible Preferred Stock and Presentation of Noncontrolling Interest The holders of Series A, Series B and Series C convertible preferred stock, which were outstanding prior to the IPO, had certain liquidation rights in the event of a deemed liquidation that, in certain situations, were not solely within the control of the Company and would call for the redemption of the then outstanding convertible preferred stock. Therefore, the Series A, Series B and Series C convertible preferred stock were classified outside of shareholders’ equity (deficit) on the consolidated balance sheets as of December 31, 2020. In February 2021, upon the completion of the IPO, all the outstanding shares of convertible preferred stock converted into common stock and the Company does not have any shares of preferred stock outstanding. The Company recognizes a noncontrolling interest related to VIEs in which the Company is the primary beneficiary as equity in the consolidated financial statements separate from the parent entity’s equity. The net loss attributable to noncontrolling interest is included in net loss in the consolidated statements of operations and comprehensive loss. Changes in the parent entity’s ownership interest in a subsidiary that do not result in deconsolidation are treated as equity transactions if the parent entity retains its controlling financial interest. In addition, when a subsidiary is deconsolidated, any retained noncontrolling equity investment in the former subsidiary will be initially measured at fair value and the difference between the carrying value and fair value of the retained interest will be recorded as a gain or loss. Terns China was previously the Company’s VIE that was established as a financing subsidiary to allow investment by Lilly Asia Ventures (LAV) investment entities: Suzhou Litai Equity Investment Centre (Limited Partnership) (PRC) and Suzhou Lirui Equity Investment Centre (Limited Partnership) (PRC), collectively referred to as the “LAV PRC Entities”. The Company’s board of directors has the unilateral ability to control the Terns China board of directors. Net losses of the China Subsidiaries have been allocated based on their ownership percentage to the LAV PRC Entities’ noncontrolling interest and are reflected in the consolidated statements of operations and comprehensive loss. The noncontrolling interest is classified outside of stockholders’ equity (deficit) on the consolidated balance sheets as it is redeemable for cash based on an investor option after a specified date. In December 2020, the LAV PRC Entities exercised their option resulting in the conversion of all of the equity interests in Terns China held by the LAV PRC Entities into shares of the Company’s preferred stock (the “China Conversion”). Following the completion of the China Conversion, Terns China became a wholly owned subsidiary of the Company. The Company does not currently anticipate any further direct third-party investments into Terns China and Terns China will only act as an operating subsidiary for the Company’s business activities in China. Research and Development Expenses Research and development costs are expensed as incurred. Research and development expenses consist of costs incurred to discover, research and develop drug candidates, including personnel expenses, stock-based compensation expense, allocated facility-related and depreciation expenses, third-party license fees and external costs, including fees paid to consultants and contract research organizations, or CROs, in connection with nonclinical studies and clinical trials and other related clinical trial fees, such as for investigator grants, patient screening, laboratory work, clinical trial database management, clinical trial material management and statistical compilation and analysis. Non-refundable prepayments for goods or services that will be used or rendered for future research and development activities are recorded as prepaid expenses. Such amounts are recognized as an expense as the goods are delivered or the related services are performed, or until it is no longer expected that the goods will be delivered, or the services rendered. Costs incurred in obtaining technology licenses are charged immediately to research and development expense if the technology licensed has not reached technological feasibility and has no alternative future uses. The Company has from time to time entered into various research and development and other agreements with commercial firms, researchers, universities and others for provisions of goods and services. These agreements are generally cancelable, and the related costs are recorded as research and development expenses as incurred. The Company records accruals for estimated ongoing research and development costs. When evaluating the adequacy of the accrued liabilities, the Company analyzes progress of the studies or clinical trials, including the phase or completion of events, invoices received and contracted costs. Significant judgments and estimates are made in determining the accrued balances at the end of any reporting period. Actual results could differ materially from the Company’s estimates. Since inception, the Company’s historical accrual estimates have not been materially different from the actual costs. Accrued Expenses and Other Current Liabilities Accrued expenses and other current liabilities included the following: December 31, (in thousands) 2021 2020 Research and development costs $ 1,570 $ 2,800 Accrued professional fees 363 2,185 Compensation and benefit costs 2,403 1,492 Accrued development milestone — 1,531 Refundable contract liability — 836 Other 358 162 Total accrued expenses and other current liabilities $ 4,694 $ 9,006 Income Taxes The provision for income taxes primarily relates to projected federal, state, and foreign income taxes. To determine the quarterly provision for income taxes, the Company uses an estimated annual effective tax rate, which is generally based on expected annual income and statutory tax rates in the various jurisdictions in which the Company operates. In addition, the tax effects of certain significant or unusual items are recognized discretely in the quarter during which they occur and can be a source of variability in the effective tax rates from quarter to quarter. Income taxes are computed using the asset and liability approach that requires the recognition of deferred tax assets and liabilities for the expected future tax consequences of events that have been recognized in the Company’s financial statements. In estimating future tax consequences, the Company considers all expected future events including the enactment of changes in tax laws or rates. A valuation allowance is recorded, if necessary, to reduce net deferred tax assets to their realizable values if management does not believe it is more likely than not that the net deferred tax assets will be realized. In making such a determination, management considers all available positive and negative evidence, including future reversals of existing taxable temporary differences, projected future taxable income, and ongoing prudent and feasible tax planning strategies in assessing the amount of the valuation allowance. When the Company establishes or reduces the valuation allowance against its deferred tax assets, its provision for income taxes will increase or decrease, respectively, in the period such determination is made. The Company assesses accounting for uncertainty in income taxes by modeling for the recognition, measurement and disclosure in financial statements any uncertain income tax positions that the Company has taken or expects to take on a tax return. As of each balance sheet date, unresolved uncertain tax positions are reassessed. The Company accrues interest and related penalties, if applicable, on all tax exposures for which reserves have been established consistent with jurisdictional tax laws. Common Stock Valuation Due to the absence of an active market for the Company’s common stock prior to the completion of the IPO in February 2021, the Company utilized methodologies to estimate the fair value of its common stock. In determining the fair value of options granted prior to the IPO, the Company has considered the estimated fair value of the common stock as of the measurement date. The estimated fair value of the common stock prior to the IPO was determined at each grant date based upon a variety of factors, including: • the prices at which the Company sold shares of convertible preferred stock and the superior rights and preferences of the convertible preferred stock relative to its common stock at the time of each grant; • the progress of the Company’s research and development programs, including the status and results of clinical and nonclinical studies for its drugs; • the Company’s stage of development and commercialization and its business strategy; • external market conditions affecting the biotechnology industry and trends within the biotechnology industry; • the Company’s financial position, including cash on hand, and its historical and forecasted performance and operating results; • the lack of an active public market for the Company’s common stock and convertible preferred stock; • the likelihood of achieving a liquidity event, such as an IPO or sale of the Company in light of prevailing market conditions; and • the analysis of IPOs and the market performance of similar companies in the biotechnology industry. Significant changes to the key assumptions underlying the factors used could have resulted in different fair values of common stock at each valuation date. Comprehensive Loss Comprehensive loss is defined as the change in equity of a business enterprise during a period from transactions and other events and circumstances from non-owner sources. Stock-Based Compensation Stock-based compensation expense, including grants of stock options and restricted stock awards issued under the Company’s equity incentive plan and rights to acquire stock granted under the Company’s employee stock purchase plan (ESPP) , is measured at the grant date based on the fair value of the awards and is recognized as an expense on a straight-line basis over the requisite service period, which is generally the vesting period. The Company’s determination of the fair value of stock options with time-based vesting and rights to acquire stock under the ESPP utilizes the Black-Scholes option-pricing model. The Company lacks sufficient company-specific historical and implied volatility information. Therefore, it estimates its expected stock volatility based on the historical volatility of a publicly traded set of peer companies and expects to continue to do so until such time as it has adequate historical data regarding the volatility of its own traded stock price. The Company estimates risk-free rates using the implied yield currently available on U.S. Treasury zero-coupon issues with a remaining term equal to the expected term and dividend yield using the Company’s expectations and historical data. The Company uses the simplified method to calculate the expected term of stock option grants. Under the simplified method, the expected term is estimated to be the mid-point between the vesting date and the contractual term of the option. The fair value of each stock option grant and right to acquire stock under the ESPP is calculated based upon the Company’s common stock valuation on the date of the grant. The Company accounts for forfeitures of stock option grants as they occur. Net Loss Per Share of Common Stock The Company follows the two-class method when computing net income (loss) per share of common stock as the Company has issued shares that meet the definition of participating securities. The two-class method determines net income (loss) per share of common stock for each class of common and participating securities according to dividends declared or accumulated and participation rights in undistributed earnings. The two-class method requires income available to common stockholders for the period to be allocated between common and participating securities based upon their respective rights to receive dividends as if all income for the period had been distributed. Basic net income (loss) per share of common stock is computed by dividing the net income (loss) per share of common stock by the weighted average number of shares of common stock outstanding for the period. Diluted net income (loss) per share of common stock is computed by adjusting net income (loss) to reallocate undistributed earnings based on the potential impact of dilutive securities. Diluted net loss per share of common stock is computed by dividing the diluted net loss by the weighted average number of shares of common stock outstanding for the period, including potential dilutive shares. For purposes of this calculation, outstanding stock options and convertible preferred stock are considered potential dilutive shares. The Company’s convertible preferred stock outstanding prior to the IPO contractually entitled the holders of such shares to participate in dividends but did not contractually require the holders of such shares to participate in losses of the Company. Accordingly, in periods in which the Company reported a net loss, such losses were not allocated to such securities. In periods in which the Company reported a net loss, diluted net loss per share of common stock was the same as basic net loss per share of common stock, since dilutive shares were not assumed to have been issued if their effect is anti-dilutive. The Company reported a net loss for the years ended December 31, 2021 and 2020 . Deferred Offering Costs The Company capitalizes certain legal, professional accounting and other third-party fees that are directly associated with in-process equity financings as deferred offering costs until such financings are consummated. After consummation of the equity financing, these costs are recorded as a reduction to the carrying value of stockholders’ equity (deficit) as a reduction of additional paid-in capital or equity generated as a result of such offering. Should an in-process equity financing be abandoned, the deferred offering costs will be expensed immediately as a charge to operating expenses in the consolidated statements of operations and comprehensive loss. Property and Equipment Property and equipment are stated at cost, net of accumulated depreciation. Depreciation is computed using the straight-line method over the estimated useful lives. The general range of useful lives of equipment is 3 to 5 years. When assets are sold or retired, the cost and related accumulated depreciation are removed from the accounts, with any resulting gain or loss recorded in operating expenses in the consolidated statements of operations and comprehensive loss. Costs of repairs and maintenance are expensed as incurred. Property and equipment, net consisted of the following: December 31, (in thousands) Estimated Useful Lives 2021 2020 Leasehold improvements Shorter of remaining life of lease or useful life of asset $ 928 $ 897 Furniture and fixtures 5 years 281 218 Computer equipment 3 years 202 156 Office equipment 5 years 102 41 Lab equipment 3 to 5 years 718 552 Property and equipment, gross 2,231 1,864 Less: Accumulated depreciation ( 1,185 ) ( 689 ) Total property and equipment, net $ 1,046 $ 1,175 The Company recognized depreciation expense related to these assets of $ 0.5 million and $ 0.4 million during the years ended December 31, 2021 and 2020 , respectively. Impairment of Long-Lived Assets The Company’s long-lived assets are evaluated for impairment whenever events or changes in circumstances indicate that the carrying amount of the asset or asset group may not be recoverable. Recoverability of an asset to be held and used is measured by a comparison of the carrying amount of an asset or asset group to the future undiscounted cash flows expected to be generated by the asset or asset group. If such asset is considered to be impaired, the impairment to be recognized is measured by the amount by which the carrying amount of the asset exceeds its fair value. There were no impairments of long-lived assets for any of the periods presented. Functional Currencies and Foreign Currency Translation The Company’s reporting currency is U.S. dollars. The functional currency of Terns U.S. Opco and Terns H.K. is U.S. dollars, while the functional currency of Terns Suzhou and Terns China is the Chinese Yuan (CNY). Transactions denominated in other than the functional currencies are remeasured into the functional currency of the entity at the exchange rates prevailing on the transaction dates. Financial assets a |