v3.20.2

CONDENSED CONSOLIDATING FINANCIAL STATEMENTS Table 3 - Condensed Consolidating Statements of Cash Flows (Details) - USD ($) $ in Thousands | 6 Months Ended
--- | ---
Jun. 30, 2020 | Jun. 30, 2019
Cash flows from operating activities: |  |
Net cash provided by operating activities | $ 270,441 | $ 240,894
Cash flows from investing activities: |  |
Capital expenditures | (96,358) | (319,961)
Change in accounts payable related to capital expenditures | (15,509) | 16,144
Proceeds from sale or disposition of assets | 5,787 | 143
Investment in subsidiaries |  | 0
Net cash (used in) provided by investing activities | (106,080) | (303,674)
Cash flows from financing activities: |  |
Debt borrowings | 842,035 | 594,300
Proceeds from note offering, net of issuance costs | 0 | 491,665
Debt repayments | (762,215) | (807,800)
Distributions to preferred unitholders | (60,846) | (60,846)
Distributions to common unitholders | (108,846) | (129,025)
Payments for termination of interest rate swaps | (49,225) | 0
Contributions from (distributions to) affiliates | 0 | 0
Net intercompany activity | 0 | 0
Payment of tax withholding for unit-based compensation | (8,820) | (6,368)
Other, net | (14,402) | (8,169)
Net cash (used in) provided by financing activities | (162,319) | 73,757
Effect of foreign exchange rate changes on cash | (945) | 261
Net increase (decrease) in cash, cash equivalents and restricted cash | 1,097 | 11,238
Cash, cash equivalents and restricted cash as of the beginning of the period | 24,980 | 13,644
Cash, cash equivalents and restricted cash as of the end of the period | 26,077 | 24,882
Eliminations [Member] |  |
Cash flows from operating activities: |  |
Net cash provided by operating activities | (484,635) | (284,816)
Cash flows from investing activities: |  |
Capital expenditures | 0 | 0
Change in accounts payable related to capital expenditures | 0 | 0
Proceeds from sale or disposition of assets | 0 | 0
Investment in subsidiaries |  | 11,999
Net cash (used in) provided by investing activities | 0 | 11,999
Cash flows from financing activities: |  |
Debt borrowings | 0 | 0
Proceeds from note offering, net of issuance costs |  | 0
Debt repayments | 0 | 0
Distributions to preferred unitholders | 91,272 | 91,272
Distributions to common unitholders | 163,277 | 193,544
Payments for termination of interest rate swaps | 0 |
Contributions from (distributions to) affiliates | 230,086 | (11,999)
Net intercompany activity | 0 | 0
Payment of tax withholding for unit-based compensation | 0 | 0
Other, net | 0 | 0
Net cash (used in) provided by financing activities | 484,635 | 272,817
Effect of foreign exchange rate changes on cash | 0 | 0
Net increase (decrease) in cash, cash equivalents and restricted cash | 0 | 0
Cash, cash equivalents and restricted cash as of the beginning of the period | 0 | 0
Cash, cash equivalents and restricted cash as of the end of the period | 0 | 0
Parent Company Guarantor [Member] | NuStar Energy | Reportable Legal Entities [Member] |  |
Cash flows from operating activities: |  |
Net cash provided by operating activities | 167,758 | 187,265
Cash flows from investing activities: |  |
Capital expenditures | 0 | 0
Change in accounts payable related to capital expenditures | 0 | 0
Proceeds from sale or disposition of assets | 0 | 0
Investment in subsidiaries |  | 0
Net cash (used in) provided by investing activities | 0 | 0
Cash flows from financing activities: |  |
Debt borrowings | 0 | 0
Proceeds from note offering, net of issuance costs |  | 0
Debt repayments | 0 | 0
Distributions to preferred unitholders | (60,846) | (60,846)
Distributions to common unitholders | (108,846) | (129,025)
Payments for termination of interest rate swaps | 0 |
Contributions from (distributions to) affiliates | 0 | 0
Net intercompany activity | 12,059 | 9,641
Payment of tax withholding for unit-based compensation | (8,820) | (6,368)
Other, net | (1,217) | (1,436)
Net cash (used in) provided by financing activities | (167,670) | (188,034)
Effect of foreign exchange rate changes on cash | 0 | 0
Net increase (decrease) in cash, cash equivalents and restricted cash | 88 | (769)
Cash, cash equivalents and restricted cash as of the beginning of the period | 176 | 1,255
Cash, cash equivalents and restricted cash as of the end of the period | 264 | 486
Subsidiary Issuer [Member] | NuStar Logistics | Reportable Legal Entities [Member] |  |
Cash flows from operating activities: |  |
Net cash provided by operating activities | 73,526 | 77,144
Cash flows from investing activities: |  |
Capital expenditures | (25,787) | (167,647)
Change in accounts payable related to capital expenditures | (12,492) | 11,708
Proceeds from sale or disposition of assets | 335 | 71
Investment in subsidiaries |  | (11,999)
Net cash (used in) provided by investing activities | (37,944) | (167,867)
Cash flows from financing activities: |  |
Debt borrowings | 827,435 | 570,500
Proceeds from note offering, net of issuance costs |  | 491,665
Debt repayments | (734,015) | (785,000)
Distributions to preferred unitholders | (30,424) | (30,424)
Distributions to common unitholders | (54,423) | (64,512)
Payments for termination of interest rate swaps | (49,225) |
Contributions from (distributions to) affiliates | 0 | 0
Net intercompany activity | 18,680 | (75,900)
Payment of tax withholding for unit-based compensation | 0 | 0
Other, net | (12,918) | (6,581)
Net cash (used in) provided by financing activities | (34,890) | 99,748
Effect of foreign exchange rate changes on cash | 0 | 0
Net increase (decrease) in cash, cash equivalents and restricted cash | 692 | 9,025
Cash, cash equivalents and restricted cash as of the beginning of the period | 8,812 | 51
Cash, cash equivalents and restricted cash as of the end of the period | 9,504 | 9,076
Guarantor Subsidiaries [Member] | NuPOP | Reportable Legal Entities [Member] |  |
Cash flows from operating activities: |  |
Net cash provided by operating activities | 297,417 | 60,539
Cash flows from investing activities: |  |
Capital expenditures | (5,596) | (9,131)
Change in accounts payable related to capital expenditures | (1,325) | 522
Proceeds from sale or disposition of assets | 117 | 26
Investment in subsidiaries |  | 0
Net cash (used in) provided by investing activities | (6,804) | (8,583)
Cash flows from financing activities: |  |
Debt borrowings | 0 | 0
Proceeds from note offering, net of issuance costs |  | 0
Debt repayments | 0 | 0
Distributions to preferred unitholders | (30,424) | (30,423)
Distributions to common unitholders | (54,423) | (64,512)
Payments for termination of interest rate swaps | 0 |
Contributions from (distributions to) affiliates | 0 | 0
Net intercompany activity | (205,545) | 43,009
Payment of tax withholding for unit-based compensation | 0 | 0
Other, net | (221) | (30)
Net cash (used in) provided by financing activities | (290,613) | (51,956)
Effect of foreign exchange rate changes on cash | 0 | 0
Net increase (decrease) in cash, cash equivalents and restricted cash | 0 | 0
Cash, cash equivalents and restricted cash as of the beginning of the period | 0 | 0
Cash, cash equivalents and restricted cash as of the end of the period | 0 | 0
Non-Guarantor Subsidiaries [Member] | Reportable Legal Entities [Member] |  |
Cash flows from operating activities: |  |
Net cash provided by operating activities | 216,375 | 200,762
Cash flows from investing activities: |  |
Capital expenditures | (64,975) | (143,183)
Change in accounts payable related to capital expenditures | (1,692) | 3,914
Proceeds from sale or disposition of assets | 5,335 | 46
Investment in subsidiaries |  | 0
Net cash (used in) provided by investing activities | (61,332) | (139,223)
Cash flows from financing activities: |  |
Debt borrowings | 14,600 | 23,800
Proceeds from note offering, net of issuance costs |  | 0
Debt repayments | (28,200) | (22,800)
Distributions to preferred unitholders | (30,424) | (30,425)
Distributions to common unitholders | (54,431) | (64,520)
Payments for termination of interest rate swaps | 0 |
Contributions from (distributions to) affiliates | (230,086) | 11,999
Net intercompany activity | 174,806 | 23,250
Payment of tax withholding for unit-based compensation | 0 | 0
Other, net | (46) | (122)
Net cash (used in) provided by financing activities | (153,781) | (58,818)
Effect of foreign exchange rate changes on cash | (945) | 261
Net increase (decrease) in cash, cash equivalents and restricted cash | 317 | 2,982
Cash, cash equivalents and restricted cash as of the beginning of the period | 15,992 | 12,338
Cash, cash equivalents and restricted cash as of the end of the period | $ 16,309 | $ 15,320

X
- Definition Contributions from (distributions to) subsidiaries and/or parent + References No definition available. + Details
Name: | ns_ContributionsFromDistributionsToAffiliates
Namespace Prefix: | ns_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The increase (decrease) in accounts payable related to capital expenditures that have been incurred but not yet paid. + References No definition available. + Details
Name: | ns_IncreaseDecreaseinAccountsPayableRelatedtoCapitalExpenditures
Namespace Prefix: | ns_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Investments in subsidiaries + References No definition available. + Details
Name: | ns_InvestmentInSubsidiaries
Namespace Prefix: | ns_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Net Intercompany Borrowings (Repayments) + References No definition available. + Details
Name: | ns_NetIntercompanyBorrowingsRepayments
Namespace Prefix: | ns_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The net cash proceeds from (payments for) other types of financing activities. + References No definition available. + Details
Name: | ns_ProceedsFromPaymentsForOtherFinancingActivitiesCondensedFinancialStatements
Namespace Prefix: | ns_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Proceeds from (payments for) termination of interest rate swap agreements + References No definition available. + Details
Name: | ns_ProceedsFromPaymentsForTerminationOfInterestRateSwaps
Namespace Prefix: | ns_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage. Excludes amount for disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 24 -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3521-108585 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3044-108585 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=98513485&loc=SL98516268-108586 + Details
Name: | us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of increase (decrease) in cash, cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including effect from exchange rate change. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 230 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=98513438&loc=d3e33268-110906 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 24 -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3521-108585 + Details
Name: | us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of increase (decrease) from the effect of exchange rate changes on cash and cash equivalent balances held in foreign currencies. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 230 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=98513438&loc=d3e33268-110906 + Details
Name: | us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of cash inflow (outflow) from financing activities, including discontinued operations. Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 24 -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3521-108585 + Details
Name: | us-gaap_NetCashProvidedByUsedInFinancingActivities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cash inflow (outflow) from investing activities, including discontinued operations. Investing activity cash flows include making and collecting loans and acquiring and disposing of debt or equity instruments and property, plant, and equipment and other productive assets. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 24 -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3521-108585 + Details
Name: | us-gaap_NetCashProvidedByUsedInInvestingActivities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 25 -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3536-108585 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 24 -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3521-108585 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3602-108585 + Details
Name: | us-gaap_NetCashProvidedByUsedInOperatingActivities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cash outflow in the form of ordinary dividends to common shareholders of the parent entity. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3291-108585 + Details
Name: | us-gaap_PaymentsOfDividendsCommonStock
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of cash outflow in the form of ordinary dividends to preferred shareholders of the parent entity. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3291-108585 + Details
Name: | us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of cash outflow to satisfy grantee's tax withholding obligation for award under share-based payment arrangement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3291-108585 + Details
Name: | us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow for purchases of and capital improvements on property, plant and equipment (capital expenditures), software, and other intangible assets. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 13 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3213-108585 + Details
Name: | us-gaap_PaymentsToAcquireProductiveAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash inflow during the period from additional borrowings in aggregate debt. Includes proceeds from short-term and long-term debt. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromIssuanceOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of cash inflow from issuance of long-term debt classified as other. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash inflow from the sale of property, plant and equipment (capital expenditures), software, and other intangible assets. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 12 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3179-108585 + Details
Name: | us-gaap_ProceedsFromSaleOfProductiveAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash outflow during the period from the repayment of aggregate short-term and long-term debt. Excludes payment of capital lease obligations. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3291-108585 + Details
Name: | us-gaap_RepaymentsOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | srt_ConsolidationItemsAxis=srt_ConsolidationEliminationsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidatedEntitiesAxis=ns_ParentCompanyGuarantorMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=ns_NustarEnergyLpMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidationItemsAxis=srt_ReportableLegalEntitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidatedEntitiesAxis=srt_SubsidiaryIssuerMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=ns_NustarLogisticsLpMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidatedEntitiesAxis=srt_GuarantorSubsidiariesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=ns_NustarPipelineOperatingPartnershipLpMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidatedEntitiesAxis=srt_NonGuarantorSubsidiariesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |