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. Unless the context otherwise requires, references to “Sprague Resources,” and the “Partnership,” refer to Sprague Resources LP and its subsidiaries; references to “Axel Johnson” or the “Parent” 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, and references to the “General Partner” refer to Sprague Resources GP LLC. The Partnership owns, operates and/or controls a network of refined products and materials handling terminals located in the Northeast United States 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 business 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, sells and distributes natural gas to commercial and industrial customers. The Partnership purchases the natural gas it sells from natural gas producers and trading companies. • 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 purchase 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, 2018 , the Parent, through its ownership of Sprague Holdings, owned 12,106,348 common units representing 53% of the limited partner interest in the Partnership. 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, up to a maximum of 50.0% , of the cash the Partnership distributes from distributable cash flow in excess of $0.474375 per unit per quarter. The maximum distribution of 50% does not include any distributions that Sprague Holdings may receive on any limited partner units that it owns. See Note 21 - Earnings per Unit and Note 23 - Partnership Distributions. Prior to February 16, 2017, Sprague Holdings owned, directly or indirectly, all of the Partnership’s subordinated units. The principal difference between the Partnership’s common units and subordinated units is that during the subordination period, the common units had the right to receive a minimum quarterly distribution of $0.4125 per common unit, plus any arrearages in the payment of the minimum quarterly distribution on the common units from prior quarters, before any distributions of cash from distributable cash flow could be made on the subordinated units. On February 16, 2017, based upon meeting certain distribution and performance tests provided in the Partnership's partnership agreement, all 10,071,970 subordinated units outstanding converted to common units on a one -for-one basis. 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, 2018 , the General Partner employed approximately 800 full-time employees who support the Partnership’s operations, 60 of whom were covered by five collective bargaining agreements. One of these agreements, covering six employees is up for renewal in 2019. As of December 31, 2018 , the Partnership's Canadian subsidiary had 101 employees, 37 of whom were covered by one collective bargaining agreement which expires on March 18, 2021. 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. 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 asset and liability valuations as part of an acquisition, the fair value of derivative assets and liabilities, valuation of contingent consideration, 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 risk of loss 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 $7.7 million , $5.9 million and $3.7 million for the years ended December 31, 2018 , 2017 and 2016 , 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. These accounting policy elections are consistent with the way the Partnership historically recorded shipping and handling fees and taxes. 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, 2018 will settle prior to June 30, 2020. 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, 2018 or 2017 . 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 effective portion of changes in fair value of the swaps are included as a component of comprehensive income (loss) and accumulated other comprehensive income (loss), net of tax. Any ineffective portion of the changes in fair value of the swaps is recorded in interest expense. 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 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. The Partnership utilizes fair value measurements based on Level 3 inputs for its contingent consideration obligation. Long-Term Incentive Plan The General Partner adopted 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. The board of directors of the General Partner grants 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 pre-determined performance criteria. The Partnership uses authorized but unissued units to satisfy its unit-based obligations. TUR-based Phantom Units Phantom unit awards granted through 2015 include a market condition criteria that considers the Partnership's total unitholder return ("TUR") over the three year vesting period, compared with the total unitholder return of a peer group of other master limited partnership energy companies over the same period. These awards are equity awards with both service and market-based conditions, which results in compensation cost being recognized over the requisite service period, provided that the requisite service period is fulfilled, regardless of when, if ever, the market based conditions are satisfied. The fair value of the TUR based phantom units was estimated at the date of grant based on a Monte Carlo model that estimates the most likely performance outcome based on the terms of the award. The key inputs in the model include the market price of the Partnership’s common units as of the valuation date, the historical volatility of the market price of the Partnership’s common units, the historical volatility of the market price of the common units or common stock of the peer companies and the correlation between changes in the market price of the Partnership’s common units and those of the peer companies. OCF-based Phantom Units Phantom unit awards granted since 2015 include a performance criteria that considers 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 are 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 is 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 is 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 estimates are probable to vest could change over the vesting period. Any such change in estimate is recognized as a cumulative adjustment calculated as if the new estimate had been in effect from the grant date. Distribution Equivalent Rights The Partnership's performance-based phantom unit awards include tandem distribution equivalent rights ("DERs") which entitle 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 are recorded as a distribution in unitholders' equity. Earnings (Loss) Per Unit The Partnership computes income (loss) per unit using the two-class method. Net income (loss) attributable to common unitholders and subordinated unitholders for purposes of the basic income (loss) per unit computation was allocated between the common unitholders and subordinated unitholders by applying the provisions of the partnership agreement. Under the two-class method, any excess of distributions declared over net income (loss) was allocated to the partners based on their respective sharing of income specified in the partnership agreement. Net income (loss) per unit was determined by dividing the net income (loss) allocated to the common unitholders and the subordinated unitholders under the two-class method by the number of common units and subordinated units outstanding in the period. As previously noted, on February 16, 2017, based upon meeting certain distribution and performance tests provided in the Partnership's partnership agreement, all 10,071,970 subordinated units outstanding converted to common units on a one -for-one basis. As discussed in Note 21 - Earnings Per Unit, there was no allocation between the common unitholders and subordinated unitholders for the year ended December 31, 2017 since all subordinated units outstanding were converted to common units on February 16, 2017, and the subordinated units did not share in any distribution of cash generated during 2017. 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. Purchase Price Allocation The cost of an acquired entity is allocated to the assets acquired and liabilities assumed based on their respective fair values at the date of acquisition. Property, plant and equipment and goodwill generally represent large components of these acquisitions. In addition to goodwill, intangible assets acquired generally include customer relationships and non-compete agreements. Goodwill is calculated as the excess of the cost of the acquired entity over the net of the fair value of the assets acquired and the liabilities assumed. For all material acquisitions the Partnership determines the fair value of the assets acquired and liabilities assumed, including goodwill, based on recognized business valuation methodologies. An income, market or cost valuation method may be utilized to estimate the fair value of the assets acquired or liabilities assumed. The income valuation method represents the present value of future cash flows over the life of the asset using: (i) discrete financial forecasts, based on management’s estimates of revenue and operating expenses; (ii) long-term growth rates; and (iii) appropriate discount rates. The market valuation method uses prices paid for a reasonably similar asset by other purchasers in the market, with adjustments relating to any differences between the assets. The cost valuation method is based on the replacement cost of a comparable asset at prices at the time of the acquisition reduced for depreciation of the asset. For contingent consideration arrangements, a liability is recognized at fair value as of the acquisition date with subsequent fair value adjustments recorded in operations. Additional information regarding the Partnership's contingent consideration arrangements may be found in Note 3 - Business Combinations, Note 14 - Other Obligations and Note 18 - Financial Instruments and Off-Balance Sheet Risk. Other assets acquired and liabilities assumed typically include, but are not limited to, inventory, accounts receivable, accounts payable and other working capital items. Because of their short-term nature, the fair values of these other assets and liabilities generally approximate the book values on the acquired entity’s balance sheet. Goodwill Goodwill is not amortized but tested for impairment at the reporting unit level, at least annually (as of October 31 each year ), by determining the fair value of the reporting unit and comparing it to its carrying value, including goodwill. If the fair value of the reporting unit exceeds its carrying value, goodwill is not impaired. If the carrying value of the reporting unit exceeds its fair value, the Partnership will determine if there is a potential impairment by comparing the implied fair value of goodwill with the carrying amount. If the implied fair value of goodwill is less than the carrying amount, an impairment loss would be reported. The Partnership assesses the fair value of its reporting units based on a discounted cash flow valuation model (Level 3 measurement). The key assumptions used are discount rates and growth rates, applied to cash flow projections. These assumptions contemplate business, market and overall economic conditions. After applying the discounted cash flow methods to measure the fair value of its reporting units, including the consideration of reasonably likely adverse changes in the rates and assumptions described above, the Partnership determined that there have been no goodwill impairments to date. In performing the discounted cash flow analysis, the Partnership also used a range of discount rate assumptions to evaluate the sensitivity on the fair values resulting from the discounted cash flow valuation. 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 (loss) 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. Sprague Energy Solutions, Inc. is subject to U.S. federal and state income tax and pays any income taxes related to the results of its operations. For the year ended December 31, 2018 , the Partnership’s non-qualifying income did not exceed the statutory limit. The Partnership is subject to income tax and franchise tax in certain domestic state and local as well as foreign jurisdictions. Income taxes ( e.g ., deferred tax assets, deferred tax liabilities, taxes currently payable and tax expense) are recorded based on amounts refundable or payable in the current year and include the impact of temporary differences between the amount of assets and liabilities recognized for financial reporting purposes and such amounts recognized for tax purposes. Deferred taxes are measured by applying currently enacted tax rates. The Partnership establishes a valuation allowance for deferred tax assets when it is more likely than not that these assets will not be realized. The Partnership's Canadian operations are conducted within entities that are treated as corporations for Canadian tax purposes and are subject to Canadian federal and provincial taxes. Additionally, payments of dividends from the Partnership's Canadian entities to other Sprague entities are subject to Canadian withholding tax that is treated as income tax expense. The partnership's foreign subsidiaries record investment tax credits under the deferral method. The Partnership recognizes the financial statement effect of an uncertain tax position only when management believes that it is more likely than not, that based on the technical merits, the position will be sustained upon examination. The Partnership classifies interest and penalties associated with uncertain tax positions as income tax expense. During the years ended December 31, 2018 , 2017 and 2016 , the interest and penalties recognized by the Partnership were immaterial. The Partnership and its subsidiaries tax returns are subject to examination by the Internal Revenue Service and by the Canada Revenue Agency for the years ended December 31, 2017 , 2016 and 2015 . On December 22, 2017, the President signed into law Public Law No. 115-97, a comprehensive tax reform bill commonly referred to as the Tax Cuts and Jobs Act (the “Tax Act”) that makes significant changes to the U.S. Internal Revenue Code. Among other changes, the Tax Act includes a new deduction on certain pass-through income, a repeal of the partnership |