v3.20.1

CONDENSED CONSOLIDATING FINANCIAL STATEMENTS Table 3 - Condensed Consolidating Statements of Cash Flows (Details) - USD ($) $ in Thousands | 3 Months Ended
--- | ---
Mar. 31, 2020 | Mar. 31, 2019
Cash flows from operating activities: |  |
Net cash provided by operating activities | $ 151,428 | $ 103,568
Cash flows from investing activities: |  |
Capital expenditures | (56,283) | (159,429)
Change in accounts payable related to capital expenditures | (15,706) | 19,401
Proceeds from sale or disposition of assets | 565 | 79
Net cash (used in) provided by investing activities | (71,424) | (139,949)
Cash flows from financing activities: |  |
Debt borrowings | 187,200 | 311,500
Debt repayments | (152,115) | (158,100)
Distributions to preferred unitholders | (30,423) | (30,423)
Distributions to common unitholders | (65,169) | (64,367)
Contributions from (distributions to) affiliates | 0 |
Net intercompany activity | 0 | 0
Payment of tax withholding for unit-based compensation | (8,820) | (6,366)
Other, net | (7,762) | (5,127)
Net cash (used in) provided by financing activities | (77,089) | 47,117
Effect of foreign exchange rate changes on cash | (1,403) | 154
Net increase (decrease) in cash, cash equivalents and restricted cash | 1,512 | 10,890
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,492 | 24,534
Cash and cash equivalents as of the end of the period | 17,694 |
Eliminations [Member] |  |
Cash flows from operating activities: |  |
Net cash provided by operating activities | (373,479) | (142,190)
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
Net cash (used in) provided by investing activities | 0 | 0
Cash flows from financing activities: |  |
Debt borrowings | 0 | 0
Debt repayments | 0 | 0
Distributions to preferred unitholders | 45,636 | 45,635
Distributions to common unitholders | 97,757 | 96,555
Contributions from (distributions to) affiliates | 230,086 |
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 | 373,479 | 142,190
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
Cash and cash equivalents as of the end of the period | 0 |
Parent Company Guarantor [Member] | NuStar Energy | Reportable Legal Entities [Member] |  |
Cash flows from operating activities: |  |
Net cash provided by operating activities | 94,676 | 93,209
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
Net cash (used in) provided by investing activities | 0 | 0
Cash flows from financing activities: |  |
Debt borrowings | 0 | 0
Debt repayments | 0 | 0
Distributions to preferred unitholders | (30,423) | (30,423)
Distributions to common unitholders | (65,169) | (64,367)
Contributions from (distributions to) affiliates | 0 |
Net intercompany activity | 10,469 | 8,948
Payment of tax withholding for unit-based compensation | (8,820) | (6,366)
Other, net | (658) | (893)
Net cash (used in) provided by financing activities | (94,601) | (93,101)
Effect of foreign exchange rate changes on cash | 0 | 0
Net increase (decrease) in cash, cash equivalents and restricted cash | 75 | 108
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 | 251 | 1,363
Cash and cash equivalents as of the end of the period | 251 |
Subsidiary Issuer [Member] | NuStar Logistics | Reportable Legal Entities [Member] |  |
Cash flows from operating activities: |  |
Net cash provided by operating activities | 64,365 | 26,732
Cash flows from investing activities: |  |
Capital expenditures | (14,674) | (87,696)
Change in accounts payable related to capital expenditures | (12,807) | 14,894
Proceeds from sale or disposition of assets | 299 | 46
Net cash (used in) provided by investing activities | (27,182) | (72,756)
Cash flows from financing activities: |  |
Debt borrowings | 178,000 | 306,500
Debt repayments | (148,515) | (143,500)
Distributions to preferred unitholders | (15,212) | (15,212)
Distributions to common unitholders | (32,584) | (32,183)
Contributions from (distributions to) affiliates | 0 |
Net intercompany activity | (10,246) | (55,453)
Payment of tax withholding for unit-based compensation | 0 | 0
Other, net | (6,974) | (4,227)
Net cash (used in) provided by financing activities | (35,531) | 55,925
Effect of foreign exchange rate changes on cash | 0 | 0
Net increase (decrease) in cash, cash equivalents and restricted cash | 1,652 | 9,901
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 | 10,464 | 9,952
Cash and cash equivalents as of the end of the period | 1,666 |
Guarantor Subsidiaries [Member] | NuPOP | Reportable Legal Entities [Member] |  |
Cash flows from operating activities: |  |
Net cash provided by operating activities | 265,236 | 11,953
Cash flows from investing activities: |  |
Capital expenditures | (1,506) | (2,253)
Change in accounts payable related to capital expenditures | (3,390) | 15,532
Proceeds from sale or disposition of assets | 48 | 1
Net cash (used in) provided by investing activities | (4,848) | 13,280
Cash flows from financing activities: |  |
Debt borrowings | 0 | 0
Debt repayments | 0 | 0
Distributions to preferred unitholders | (15,212) | (15,212)
Distributions to common unitholders | (32,584) | (32,183)
Contributions from (distributions to) affiliates | 0 |
Net intercompany activity | (212,484) | 22,164
Payment of tax withholding for unit-based compensation | 0 | 0
Other, net | (108) | (2)
Net cash (used in) provided by financing activities | (260,388) | (25,233)
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
Cash and cash equivalents as of the end of the period | 0 |
Non-Guarantor Subsidiaries [Member] | Reportable Legal Entities [Member] |  |
Cash flows from operating activities: |  |
Net cash provided by operating activities | 100,630 | 113,864
Cash flows from investing activities: |  |
Capital expenditures | (40,103) | (69,480)
Change in accounts payable related to capital expenditures | 491 | (11,025)
Proceeds from sale or disposition of assets | 218 | 32
Net cash (used in) provided by investing activities | (39,394) | (80,473)
Cash flows from financing activities: |  |
Debt borrowings | 9,200 | 5,000
Debt repayments | (3,600) | (14,600)
Distributions to preferred unitholders | (15,212) | (15,211)
Distributions to common unitholders | (32,589) | (32,189)
Contributions from (distributions to) affiliates | (230,086) |
Net intercompany activity | 212,261 | 24,341
Payment of tax withholding for unit-based compensation | 0 | 0
Other, net | (22) | (5)
Net cash (used in) provided by financing activities | (60,048) | (32,664)
Effect of foreign exchange rate changes on cash | (1,403) | 154
Net increase (decrease) in cash, cash equivalents and restricted cash | (215) | 881
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 | 15,777 | $ 13,219
Cash and cash equivalents as of the end of the period | $ 15,777 |

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 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 Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes 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. Excludes cash and cash equivalents within disposal group and discontinued operation. + References Reference 1: 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 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section 45 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=118951113&loc=d3e6676-107765 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.1) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_CashAndCashEquivalentsAtCarryingValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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 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: |