Summary of Significant Accounting Policies | 2. Summary of Significant Accounting Policies Basis of Presentation The Company’s unaudited interim condensed consolidated financial statements have been prepared in accordance with accounting principles generally accepted in the United States (“U.S. GAAP”). Any reference in these notes to applicable guidance is meant to refer to the authoritative United States generally accepted accounting principles as found in the Accounting Standards Codification (“ASC”) and Accounting Standards Updates (ASU) of the Financial Accounting Standards Board (“FASB”). Certain information and footnote disclosures normally included in financial statements prepared in accordance with U.S. GAAP have been condensed or omitted from this report, as is permitted by such rules and regulations. Accordingly, these financial statements should be read in conjunction with the audited financial statements as of and for the year ended December 31, 2018 and notes thereto, included in the Company’s Annual Report on Form 10-K for the year ended December 31, 2018 filed with the SEC on March 7, 2019. The unaudited interim consolidated financial statements have been prepared on the same basis as the audited financial statements with the exception of the 2019 adoption of the new leasing standard as discussed below. In the opinion of the Company’s management, the accompanying unaudited interim condensed consolidated financial statements contain all adjustments which are necessary to present fairly the Company’s financial position as of June 30, 2019, the results of its operations for the three and six months ended June 30, 2019 and June 30, 2018 and cash flows for the six months ended June 30, 2019 and June 30, 2018. Such adjustments are of a normal and recurring nature. The results for the three months ended June 30, 2019 are not necessarily indicative of the results for the year ending December 31, 2019, or for any future period. Principles of Consolidation The consolidated financial statements include the accounts of Allena Pharmaceuticals, Inc. and its wholly owned subsidiaries Allena Pharmaceuticals Security Corporation (“Security Corporation”), which was incorporated in December 2014, and Allena Pharmaceuticals Ireland Limited, which was incorporated in March 2017. All intercompany transactions and balances have been eliminated. Fair Value of Financial Instruments Fair value is defined as the price that would be received upon sale of an asset or paid to transfer a liability between market participants at measurement dates. ASC Topic 820, Fair Value Measurement Level 1 inputs: Quoted prices in active markets for identical assets or liabilities. Level 2 inputs: Inputs other than quoted prices included within Level 1 that are either directly or indirectly observable, such as quoted market prices, interest rates and yield curves. Level 3 inputs: Unobservable inputs developed using estimates or assumptions developed by the Company, which reflect those that a market participant would use in pricing the asset or liability. To the extent that the valuation is based on models or inputs that are less observable or unobservable in the market, the determination of fair value requires more judgment. Accordingly, the degree of judgment exercised by the Company in determining fair value is greatest for instruments categorized in Level 3. A financial instrument’s level within the fair value hierarchy is based on the lowest level of any input that is significant to the fair value measurement. Leases The Company adopted ASU No. 2016-02, Leases (Topic 842) A lease qualifies as a finance lease if any of the following criteria are met at the inception of the lease: (i) there is a transfer of ownership of the leased asset to the Company by the end of the lease term, (ii) the Company holds an option to purchase the leased asset that it is reasonably certain to exercise, (iii) the lease term is for a major part of the remaining economic life of the leased asset, (iv) the present value of the sum of lease payments equals or exceeds substantially all of the fair value of the leased asset, (v) the nature of the leased asset is specialized to the point that it is expected to provide the lessor no alternative use at the end of the lease term. All other leases are recorded as operating leases. Finance and operating lease assets and liabilities are recognized at the lease commencement date based on the present value of the lease payments over the lease term using the discount rate implicit in the lease. If the rate implicit is not readily determinable, the Company’s utilizes its incremental borrowing rate at the lease commencement date. Operating lease assets are further adjusted for prepaid or accrued lease payments. Operating lease payments are expensed using the straight-line method as an operating expense over the lease term. Finance lease assets are amortized to depreciation expense using the straight-line method over the shorter of the useful life of the related asset or the lease term. Finance lease payments are bifurcated into (i) a portion that is recorded as imputed interest expense and (ii) a portion that reduces the finance liability associated with the lease. The Company separates lease and non-lease components when determining which lease payments to include in the calculation of its lease assets and liabilities. Variable lease payments are expensed as incurred. If a lease includes an option to extend or terminate the lease, the Company reflects the option in the lease term if it is reasonably certain it will exercise the option. Operating leases are recorded in “Operating lease assets,” “Operating lease liabilities” and “Operating lease liabilities, net of current portion” on the Company’s condensed consolidated balance sheet. The Company did not have any finance leases recorded on its condensed consolidated balance sheet as of June 30, 2019. The remainder of the Company’s significant accounting policies are described in the Annual Report filed on Form 10-K for the year ended December 31, 2018 that was filed with the United States Securities and Exchange Commission on March 7, 2019. Recently Adopted Accounting Pronouncements In 2016, the FASB issued ASC 842, which amends a number of aspects of lease accounting and requires entities to recognize right-of-use assets and liabilities on the balance sheet. ASC 842 was effective on January 1, 2019. In July 2018, the FASB issued ASU No. 2018-11, Leases (Topic 842): Targeted Improvements The Company elected the package of transition practical expedients for leases that commenced prior to January 1, 2019, allowing it not to reassess (i) whether any expired or existing contracts contain leases, (ii) the lease classification for any expired or existing leases and (iii) the initial indirect costs for any existing leases. The Company recorded, upon adoption of ASC 842 on January 1, 2019, right-of-use assets of $1.0 million and corresponding liabilities of $1.0 million related to its operating leases. The Company did not have any leases at January 1, 2019 that would qualify as finance leases. These adjustments had no impact on the Company’s consolidated statement of operations and had no impact on the Company’s accumulated deficit. Refer to Note 6, “Commitments and Contingencies,” for further information regarding the Company’s leases as well as certain disclosures required by ASC 842. In June 2018, the FASB issued ASU No. 2018-07, Compensation-Stock Compensation (Topic 718): Improvements to Nonemployee Share-Based Payment Accounting Recently Issued Accounting Pronouncements In 2018, the FASB issued ASU 2018-15, Intangibles—Goodwill and Other—Internal-Use Software (Subtopic 350-40): Customer’s Accounting for Implementation Costs Incurred in a Cloud Computing Arrangement That Is a Service Contract In 2018, the FASB issued ASU 2018-13, Fair Value Measurement (Topic 820): Disclosure Framework-Changes to the Disclosure Requirements for Fair Value Measurement In 2016, the FASB issued ASU 2016-13, Financial Instruments - Credit Losses (Topic 326): Measurement of Credit Losses on Financial Instruments |