Description of Business and Summary of Significant Accounting Policies | 1. Description of Business and Summary of Significant Accounting Policies Partnership Businesses Sprague Resources LP (the “Partnership”) is a Delaware limited partnership formed on June 23, 2011 by Sprague Holdings and its General Partner and engages in the purchase, storage, distribution and sale of refined products and natural gas, and provides storage and handling services for a broad range of materials. On April 20, 2021, the Partnership and Hartree Partners, LP ("Hartree") announced that Sprague Holdings entered into an agreement to sell to Sprague HP Holdings, LLC (a wholly owned subsidiary of Hartree) the interest of Sprague Holdings in the General Partner, the incentive distribution rights and all the common units representing limited partner interest that Sprague Holdings owned in the Partnership (the "Transaction"). The Transaction was completed and effective on May 28, 2021 and the aggregate purchase price was $290.0 million, consisting of approximately $265.0 million attributable to the purchase of 16,058,484 common units and approximately $25.0 million attributable to the general partner interest and incentive distribution rights. The Partnership elected to not to apply push-down accounting in its consolidated financial statements upon the change in control on May 28, 2021. Unless the context otherwise requires, prior to May 28, 2021, references referring to “Sprague Resources,” and the “Partnership,” refer to Sprague Resources LP and its subsidiaries; references to the "General Partner" refer to Sprague Resources GP LLC; references to “Axel Johnson” or the "Sponsor" refer to Axel Johnson Inc. and its controlled affiliates, collectively, other than Sprague Resources, its subsidiaries and its General Partner; references to “Sprague Holdings” refer to Sprague Resources Holdings LLC, a wholly owned subsidiary of Axel Johnson and the owner of the General Partner. Unless the context otherwise requires, effective May 28, 2021, references referring to Sprague Resources, and the Partnership, refer to Sprague Resources LP and its subsidiaries; references to the General Partner refer to Sprague Resources GP LLC; references to “Hartree” or the Sponsor refer to Hartree Partners, LP, and its controlled affiliates, collectively, other than Sprague Resources, its subsidiaries and its General Partner; references to “Sprague Holdings” refer to Sprague HP Holdings LLC, a wholly owned subsidiary of Hartree and the owner of the General Partner. The Partnership owns, operates and/or controls a network of refined products and materials handling terminals and storage facilities predominantly located in the Northeast United States from New York to Maine and in Quebec, Canada. The Partnership also utilizes third-party terminals in the Northeast United States through which it sells or distributes refined products pursuant to rack, exchange and throughput agreements. The Partnership has four reportable segments: refined products, natural gas, materials handling and other operations. • The refined products segment purchases a variety of refined products, such as heating oil, diesel fuel, residual fuel oil, kerosene, jet fuel, and gasoline - primarily from refining companies, trading organizations and producers - and sells them to wholesale and commercial customers. • The natural gas segment purchases natural gas from natural gas producers and trading companies and sells and distributes natural gas to commercial and industrial customers. • The materials handling segment offloads, stores and prepares for delivery a variety of customer-owned products, including asphalt, clay slurry, salt, gypsum, crude oil, residual fuel oil, coal, petroleum coke, caustic soda, tallow, pulp and heavy equipment. • The other operations segment primarily includes the marketing and distribution of coal and certain commercial trucking activities. See Note 2 - Revenue for a description of the Partnership's revenue activities within these business segments. As of December 31, 2021, the Sponsor, through its ownership of Sprague Holdings, owned 19,548,849 common units representing 74.5% of the limited partner interest in the Partnership. On October 31, 2021, Hartree Bulk Storage, LLC ("Bulk Storage") ceased to be managed by HP Bulk Storage Manager, LLC and became managed by HBS Acquisition Co., LLC a wholly owned subsidiary of the Sponsor, Hartree. As a result of this change, the Sponsor was deemed to beneficially own the 1,375,000 common units held by Bulk Storage in addition to the 18,173,849 units held by Sprague Holdings, for a total of 19,548,849 common units representing 74.5% of the limited partner interests in the Partnership. Subsequent to this change, on December 3, 2021, the 1,375,000 common units held by Bulk Storage were transferred to Sprague Holdings in a transfer between two wholly owned subsidiaries of the Sponsor. As a result of this transfer, Sprague Holdings directly owns 19,548,849 common units, which consists of all of the common units beneficially owned by Hartree. Sprague Holdings also owns the General Partner, which in turn owns a non-economic interest in the Partnership. Sprague Holdings currently holds incentive distribution rights ("IDRs") that entitle it to receive increasing percentages of the cash the Partnership distributes from distributable cash flow in excess of $0.7676 per unit per quarter, up to a maximum of 50.0%. The maximum distribution of 50% does not include any distributions that Sprague Holdings may receive on any limited partner units that it owns. Services Agreement The Partnership, the General Partner and Sprague Holdings operate under a services agreement (the “Services Agreement”) pursuant to which the General Partner provides certain general and administrative and operational services to the Partnership and Sprague Holdings, and the Partnership and Sprague Holdings reimburse the General Partner for all costs and expenses incurred in connection with providing such services to the Partnership and Sprague Holdings. The Services Agreement does not limit the amount that may be reimbursed or paid by the Partnership to the General Partner. The initial term of the Services Agreement expired on October 30, 2018 and automatically renewed at the end of the initial term for successive one-year terms until terminated in accordance with the terms thereof. The Services Agreement does not limit the ability of the officers and employees of the General Partner to provide services to other affiliates of Sprague Holdings or unaffiliated third parties. See Note 13 - Related Party Transactions. As of December 31, 2021, the General Partner employed approximately 654 full-time employees who support the Partnership’s operations, 75 of whom were covered by five collective bargaining agreements. One of these agreements, covering 9 employees, is up for renewal in May 31, 2022. As of December 31, 2021, the Partnership's Canadian subsidiary had 103 employees, 40 of whom were covered by one collective bargaining agreement which expires on March 18, 2024. Basis of Presentation The Consolidated Financial Statements include the accounts of the Partnership and its wholly owned subsidiaries. Intercompany transactions between the Partnership and its subsidiaries have been eliminated. COVID-19 The global outbreak of the novel coronavirus ("COVID-19") was declared a pandemic by the World Health Organization and a national emergency by the U.S. Government in March 2020 and has negatively affected the U.S. and global economy, disrupted global supply chains, resulted in significant travel and transport restrictions, including mandated closures and orders to “shelter-in-place,” and created significant disruption of the financial markets. Beginning in the quarterly period ended March 31, 2020, a wide array of sectors including but not limited to the energy, transportation, manufacturing and commercial, along with global economic conditions generally, were significantly disrupted by the pandemic. A number of the Partnership’s customers in these industries also experienced substantial reductions in their operations due to travel restrictions as well as the extended shutdown of various businesses in affected regions. Furthermore, government measures initially led to a precipitous decline in fuel prices in response to concerns about demand for fuel. Through December 31, 2020, the pandemic and associated impacts on economic activity had an adverse effect on the Partnership’s operating results, specifically, the Partnership had seen a decline in demand and related sales volume as large sectors of the global economy were adversely impacted by the crisis. However, the easing of restrictions, health advancements and other ongoing measures to alleviate the pandemic, have led to a subsequent recovery of demand and fuel prices are at higher levels than pre-pandemic. In order to continue to mitigate the effects of the pandemic, even as market conditions have improved, the Partnership continues to focus on the safety of employees and other stakeholders as well as a number of initiatives relating to cost reduction, liquidity and operating efficiencies. The Partnership makes estimates and assumptions that affect the reported amounts on these consolidated financial statements and accompanying notes as of the date of the financial statements. The Partnership assessed accounting estimates that require consideration of forecasted financial information, including, but not limited to, the allowance for credit losses, the carrying value of goodwill, intangible assets, and other long-lived assets. This assessment was conducted in the context of information reasonably available to the Partnership, as well as consideration of the future potential impacts of COVID-19 on the Partnership’s business as of December 31, 2021. While market conditions for our products and services have improved when compared to a year ago, the pandemic remains fluid, indicating that the full impact may not have been realized across our business and operations. The economics and operational landscape has been altered, and it is difficult to determine whether such changes are temporary or permanent, with challenges related to staffing, supply chain, and transportation globally. The Partnership continues to monitor the evolving impacts of COVID-19 and variants closely and respond to changing conditions. Use of Estimates The preparation of financial statements requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities in the balance sheet and the reported net sales and expenses in the income statement. Actual results could differ from those estimates. Among the estimates made by management are the fair value of derivative assets and liabilities, valuation of contingent consideration, allowance for credit losses, valuation of reporting units within the goodwill impairment assessment, and if necessary long-lived asset impairments and environmental and legal obligations. Revenue Recognition and Cost of Products Sold Revenue is recognized when performance obligations under the terms of a contract with a customer are satisfied. The majority of the Partnership’s revenue is generated from refined products and natural gas contracts that have a single performance obligation which is the delivery of the related energy product. Accordingly, the Partnership recognizes revenue for refined products and natural gas when title and control have been transferred to the customer which is generally at the time of shipment or delivery of products. Revenue for the Partnership’s materials handling segment is recorded on a straight-line basis under leasing arrangements or as services are performed. Revenue is measured as the amount of consideration the Partnership expects to receive in exchange for transferring products or providing services and is generally based upon a negotiated index, formula, list or fixed price. An allowance for doubtful accounts is recorded to reflect an estimate of the ultimate realization of the Partnership's accounts receivable and includes an assessment of the customers’ creditworthiness and the probability of collection. The provision for the allowance for doubtful accounts is included in cost of products sold (exclusive of depreciation and amortization). Estimated discounts are included in the transaction price of the contracts with customers as a reduction to net sales. Cash discounts were $5.9 million, $4.1 million and $7.5 million for the years ended December 31, 2021, 2020 and 2019, respectively. The Partnership sells its products or provides its services directly to commercial customers and wholesale distributors generally under agreements with payment terms typically less than 30 days. The Partnership has elected to account for shipping and handling as activities to fulfill the promise to transfer the good. As such, shipping and handling fees billed to customers in a sales transaction are recorded in net sales and shipping and handling costs incurred are recorded in cost of products sold (exclusive of depreciation and amortization). The Partnership has elected to exclude from net sales any value add, sales and other taxes which it collects concurrently with revenue-producing activities. The majority of the Partnership's revenue is derived from contracts (i) with an original expected length of one year or less and (ii) contracts for which it recognizes revenue at the amount in which it has the right to invoice the customer as product is delivered. The Partnership has elected the practical expedient not to disclose the value of remaining performance obligations associated with these types of contracts. Commodity Derivatives The Partnership utilizes derivative instruments consisting of futures contracts, forward contracts, swaps, options and other derivatives individually or in combination, to mitigate its exposure to fluctuations in prices of refined petroleum products and natural gas. The use of these derivative instruments within the Partnership's risk management policy may, on a limited basis, generate gains or losses from changes in market prices. The Partnership enters into futures and over-the-counter ("OTC") transactions either on regulated exchanges or in the OTC market. Futures contracts are exchange-traded contractual commitments to either receive or deliver a standard amount or value of a commodity at a specified future date and price, with some futures contracts based on cash settlement rather than a delivery requirement. Futures exchanges typically require margin deposits as security. OTC contracts, which may or may not require margin deposits as security, involve parties that have agreed either to exchange cash payments or deliver or receive the underlying commodity at a specified future date and price. The Partnership posts initial margin with futures transaction brokers, along with variation margin, which is paid or received on a daily basis, and is included in other current assets and other current liabilities. In addition, the Partnership may either pay or receive margin based upon exposure with counterparties. Payments made by the Partnership are included in other current assets, whereas payments received by the Partnership are included in accrued liabilities. Substantially all of the Partnership’s commodity derivative contracts outstanding as of December 31, 2021 will settle prior to June 30, 2023. The Partnership enters into some master netting arrangements to mitigate credit risk with significant counterparties. Master netting arrangements are standardized contracts that govern all specified transactions with the same counterparty and allow the Partnership to terminate all contracts upon occurrence of certain events, such as a counterparty’s default. The Partnership has elected not to offset the fair value of its derivatives, even where these arrangements provide the right to do so. The Partnership’s derivative instruments are recorded at fair value, with changes in fair value recognized in net income (loss) each period. The Partnership’s fair value measurements are determined using the market approach and includes non-performance risk and time value of money considerations. Counterparty credit is considered for receivable balances, and the Partnership’s credit is considered for payable balances. The Partnership does not offset fair value amounts recognized for the right to reclaim cash collateral (a receivable) or the obligation to return cash collateral (a payable) against the fair value of derivative instruments executed with the same counterparty under the same master netting arrangement. The Partnership had no right to reclaim or obligation to return cash collateral as of December 31, 2021 or 2020. Interest Rate Derivatives The Partnership manages its exposure to variable LIBOR borrowings by using interest rate swaps to convert a portion of its variable rate debt to fixed rates. These interest rate swaps are designated as cash flow hedges and the changes in fair value of the swaps are included as a component of comprehensive (loss) income and accumulated other comprehensive loss, net of tax. To designate a derivative as a cash flow hedge, the Partnership documents at inception the assessment that the derivative will be highly effective in offsetting expected changes in cash flows from the item hedged. The assessment, updated at least quarterly, is based on the most recent relevant historical correlation between the derivative and the item hedged. If during the term of the derivative, the hedge is found to be less than highly effective, hedge accounting is prospectively discontinued and the remaining gains and losses are reclassified to income in the current period. Market and Credit Risk The Partnership manages the risk of fluctuations in the price and transportation costs of its commodities through the use of derivative instruments. The volatility of prices for energy commodities can be significantly influenced by market supply and demand, changes in seasonal demand, weather conditions, transportation availability, and federal and state regulations. The Partnership monitors and manages its exposure to market risk on a daily basis in accordance with approved policies. The Partnership has a number of financial instruments that are potentially at risk including cash and cash equivalents, receivables and derivative contracts. The Partnership’s primary exposure is credit risk related to its receivables and counterparty performance risk related to its derivative assets, which is the loss that may result from a customer’s or counterparty’s non-performance. The Partnership uses credit policies to control credit risk, including utilizing an established credit approval process, monitoring customer and counterparty limits, employing credit mitigation measures such as analyzing customer financial statements, and accepting personal guarantees and various forms of collateral. The Partnership believes that the counterparties to its derivative contracts will be able to satisfy their contractual obligations. Credit risk is limited by the large number of customers and counterparties comprising the Partnership’s business and their dispersion across different industries. The Partnership’s cash is in demand deposits placed with federally insured financial institutions. Such deposit accounts at times may exceed federally insured limits. The Partnership has not experienced any losses on such accounts. Fair Value Measurements The Partnership determines fair value based on a hierarchy for the inputs used to measure the fair value of financial assets and liabilities based on the source of the input, which generally range from quoted prices for identical instruments in a principal trading market (Level 1) to estimates determined using significant unobservable inputs (Level 3). Multiple inputs may be used to measure fair value; however, the level of fair value is based on the lowest significant input level within this fair value hierarchy. Details on the methods and assumptions used to determine the fair values are as follows: Fair value measurements based on Level 1 inputs: Measurements that are most observable and are based on quoted prices of identical instruments obtained from the principal markets in which they are traded. Closing prices are both readily available and representative of fair value. Market transactions occur with sufficient frequency and volume to assure liquidity. Fair value measurements based on Level 2 inputs: Measurements derived indirectly from observable inputs or from quoted prices from markets that are less liquid are considered Level 2. Measurements based on Level 2 inputs include OTC derivative instruments that are priced on an exchange traded curve, but have contractual terms that are not identical to exchange traded contracts. The Partnership utilizes fair value measurements based on Level 2 inputs for its fixed forward contracts, over-the-counter commodity price swaps, interest rate swaps and forward currency contracts. Fair value measurements based on Level 3 inputs: Measurements that are least observable are estimated from significant unobservable inputs determined from sources with little or no market activity for comparable contracts or for positions with longer durations. Long-Term Incentive Plan The General Partner has the Sprague Resources LP 2013 Long-Term Incentive Plan (the “LTIP”), for the benefit of employees, consultants and directors of the General Partner and its affiliates, who provide services to the General Partner or an affiliate. The LTIP provides the Partnership with the flexibility to grant unit options, restricted units, phantom units, unit appreciation rights, cash awards, distribution equivalent rights, substitute awards and other unit-based awards or any combination of the foregoing. The LTIP will expire upon the earlier of (i) its termination by the board of directors of the General Partner, (ii) the date common units are no longer available under the LTIP for grants or (iii) the tenth anniversary of the date the LTIP was approved by the General Partner. Prior to March 5, 2021, the board of directors of the General Partner granted performance-based phantom unit awards to key employees that vest over a period of time (usually three years). Upon vesting, a holder of performance-based phantom units is entitled to receive a number of common units of the Partnership equal to a percentage (between 0 and 200%) of the phantom units granted, based on the Partnership’s achieving predetermined performance criteria. The Partnership uses authorized but unissued units to satisfy its unit-based obligations. Phantom unit awards granted since 2015 included a performance criteria that considered Sprague Holdings operating cash flow, as defined therein ("OCF"), over a three year performance period. The number of common units that may be received in settlement of each phantom unit award can range between 0 and 200% of the number of phantom units granted based on the level of OCF achieved during the vesting period. These awards were equity awards with performance and service conditions which result in compensation cost being recognized over the requisite service period once payment is determined to be probable. Compensation expense related to the OCF based awards was estimated each reporting period by multiplying the number of common units underlying such awards that, based on the Partnership's estimate of OCF, are probable to vest, by the grant-date fair value of the award and was recognized over the requisite service period using the straight-line method. The fair value of the OCF based phantom units was the grant date closing price listed on the New York Stock Exchange. The number of units that the Partnership estimated were probable to vest could change over the vesting period. Any such change in estimate was recognized as a cumulative adjustment calculated as if the new estimate had been in effect from the grant date. The Partnership's performance-based phantom unit awards included tandem distribution equivalent rights ("DERs") which entitled the participant to a cash payment only upon vesting that is equal to any cash distribution paid on a common unit between the grant date and the date the phantom units were settled. Payments made in connection with DERs were recorded as a distribution in unitholders' equity. Effective March 5, 2021, the board of directors used its discretion to terminate all phantom unit awards granted in 2018, 2019 and 2020. In consideration for this termination, the board of directors paid a higher 2020 cash bonus, issued 172,702 vested common units to each of the Partnership's Named Executive Officers and certain other employees and issued new long-term inventive awards payable in units or cash which vest over a three-year service period. The 2020 cash bonus amounts were expensed during the year ended December 31, 2020 and accrued for as of December 31, 2020. The Partnership accounted for the cancellation of the previously outstanding phantom unit awards and the issuance of the vested units and long-term incentive awards as a modification which resulted in immaterial incremental compensation expense. Earnings Per Unit The Partnership computes (loss) income per unit using the two-class method. The Partnership has identified the IDRs as participating securities and uses the two-class method when calculating the net income per unit applicable to limited partners. Earnings per unit applicable to limited partners is computed by dividing limited partners’ interest in net income, after deducting any incentive distributions, by the weighted-average number of outstanding common units. The Partnership’s net (loss) income is allocated to the limited partners in accordance with their respective ownership percentages, after giving effect to priority income allocations for incentive distributions that have been or will be distributed to the incentive distribution right holder, which are declared and paid following the close of each quarter. Earnings in excess of distributions are allocated to the limited partners based on their respective ownership interests. Cash and Cash Equivalents Cash and cash equivalents include cash and highly liquid investments which are readily convertible into cash and have maturities of three months or less when purchased. Inventories The Partnership’s inventories are valued at the lower of cost or net realizable value. Cost is primarily determined using the first-in, first-out method, except for the Partnership's Canadian subsidiary, which used the weighted average method. Inventory consists of petroleum products, natural gas and coal. The Partnership uses derivative instruments, primarily futures, forwards and swaps, to economically hedge substantially all of its inventory. Property, Plant and Equipment, Net Property, plant and equipment, net are recorded at historical cost. Depreciation is computed on a straight-line basis over the following estimated useful lives: Furniture and Fixtures 5 to 10 years Plant and Machinery 5 to 30 years Building and Leasehold Improvements 10 to 25 years Leasehold improvements are amortized over the term of the lease or the estimated useful life of the improvement, whichever is shorter. Maintenance and repairs are charged to expense as incurred. Costs and related accumulated depreciation of properties sold or otherwise disposed of are removed from the respective accounts, and any resulting gains or losses are recorded at that time. Long-lived Asset Impairment The Partnership evaluates the carrying value of its property, plant and equipment and finite lived intangible assets for impairment when events or changes in circumstances indicate the carrying amount of an individual asset or asset group may not be recoverable based on estimated future undiscounted cash flows. Future cash flow projections include assumptions of future sales levels, the impact of controllable cost reduction programs, and the level of working capital needed to support each business. To the extent the carrying amount of the asset group is not recoverable based on undiscounted cash flows, the amount of impairment is measured by the difference between the carrying value and the fair value of the individual assets or asset group. Goodwill Goodwill is defined as the excess of cost over the fair value of assets acquired and liabilities assumed in a business combination. The Partnership tests goodwill at the reporting unit level annually as of October 31 or on an as needed basis, for indicators of impairment at each reporting unit that has recorded goodwill. In performing the test, the Partnership either uses a qualitative assessment or a single step quantitative approach. Under the qualitative approach the Partnership considers a number of factors, including the amount by which the previous quantitative test's fair value exceeded the carrying value of the reporting unit, actual performance as compared to internal forecasts used in the previous quantitative test, an evaluation of discount rates, and an evaluation of current economic factors for both the worldwide economy and specifically the oil and gas industry, and any significant changes in customer and supplier relationships. The Partnership weighs these factors to determine if it is more likely than not that the fair value of the reporting unit exceeds its carrying value. If after performing a qualitative assessment, indicators are present, or the Partnership identifies factors that cause it to believe it is appropriate to perform a more precise calculation of fair value, the Partnership would move beyond the qualitative assessment and perform a quantitative impairment test. Under the quantitative impairment test, the Partnership performs a comparison of the reporting unit’s carrying value to its fair value. The Partnership estimates the fair value of a reporting unit based upon future net discounted cash flows (Level 3 measurement). In calculating these estimates, the Partnership develops a discounted cash flow model based on forecasted operating results, discount rates, and growth rates, which contemplate business, market and overall economic conditions. Further, the discount rates used require estimates of the cost of equity and debt financing. The estimates of fair value of these reporting units could change if actual operating results or discount rates vary from these estimates. The Partnership performed sensitivity analyses on the fair values resulting from the discounted cash flows valuation utilizing more conservative assumptions that reflect reasonably likely future changes in the discount rates and perpetual growth rate in each of the reporting units. Based upon the Partnership's 2021 annual impairment testing analyses, including the consideration of reasonably likely adverse changes in assumptions described above, the Partnership determined that all of its reporting units had fair value exceeding their carrying values. As of December 31, 2021, there was $35.5 million of goodwill allocated to the natural gas reporting unit which had a negative carrying value with respect to the annual goodwill test performed. Intangibles, Net Intangibles, net consist of intangible assets with finite lives, primarily customer relationships and non-compete agreements. Intangibles and other assets are amortized over their respective estimated useful lives. The Partnership believes the sum-of-the-years’-digits method of amortization properly reflects the timing of the recognition of the economic benefits realized from its intangible assets. Income Taxes The Partnership is organized as a pass-through entity for U.S. federal income tax purposes. As a result, the partners are responsible for U.S. federal income taxes based on their respective share of taxable income. Net income for financial statement purposes may differ significantly from taxable income reportable to unitholders as a result of differences between the tax bases and financial reporting bases of assets and liabilities and the taxable income allocation requirements under the partnership agreement. The Partnership, however, is subject to a statutory requirement that non-qualifying income cannot exceed 10% of total gross income, determined on a calendar year basis under the applicable income tax provisions. If the amount of non-qualifying income exceeds this statutory limit, the Partnership would be taxed as a corporation. Accordingly, certain activities that generate non-qualifying income are conducted through Sprague Energy Solutions, Inc., a taxable corporate subsidiary. Sp |