v3.8.0.1

NET INCOME PER COMMON UNIT Table - Net Income per Common Unit (Details) - USD ($) $ / shares in Units, $ in Thousands | 3 Months Ended
--- | ---
Mar. 31, 2018 | Mar. 31, 2017
Earnings Per Share [Abstract] |  |
Net income attributable to NuStar Energy L.P. | $ 126,133 | $ 57,940
Less: Distributions to preferred limited partners | 15,990 | 4,813
Less: Distributions to general partner (including incentive distribution rights) | 1,141 | 15,255
Less: Distributions to common limited partners | 55,916 | 101,913
Less: Distribution equivalents rights to restricted units | 445 | 715
Distributions less than (in excess of) earnings | 52,641 | (64,756)
Net income attributable to common units: |  |
Common limited partners’ distribution | 55,916 | 101,913
Allocation of distributions less than (in excess of) earnings | 51,148 | (63,461)
Total | $ 107,064 | $ 38,452
Basic weighted-average common units outstanding | 93,181,781 | 78,642,888
Basic net income per common unit | $ 1.15 | $ 0.49

X
- Definition Distribution amount earned during the period allocated to the common limited partners. + References No definition available. + Details
Name: | ns_CommonLimitedPartnerDistribution
Namespace Prefix: | ns_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Allocation of distributed and undistributed earnings (loss) to the common limited partners in the EPU calculation. + References No definition available. + Details
Name: | ns_EPUCommonLimitedPartnerAllocation
Namespace Prefix: | ns_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Net income less general and limited partner distributions. + References No definition available. + Details
Name: | ns_EpuDistributionsLessThanGreaterThanEarnings
Namespace Prefix: | ns_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Distributions less than or (greater than) earnings, allocated to the limited partners. + References No definition available. + Details
Name: | ns_EpuDistributionsLessThanGreaterThanEarningsAllocatedToLimitedPartners
Namespace Prefix: | ns_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Distributions to the general partner earned during the period comprised of those allocated to its general partner ownership interest and incentive distribution rights. + References No definition available. + Details
Name: | ns_GeneralPartnerDistributionsIncludingIncentiveDistributions
Namespace Prefix: | ns_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Distribution amount earned during the period allocated to the preferred limited partners. + References No definition available. + Details
Name: | ns_PreferredLimitedPartnerDistribution
Namespace Prefix: | ns_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of paid and unpaid cash dividends declared and applicable to holders of share-based compensation, for example, but not limited to, non-vested shares, stock options, or restricted stock units. + References No definition available. + Details
Name: | us-gaap_DividendsShareBasedCompensationCash
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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

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

X
- Definition The portion of profit or loss for the period, net of income taxes, which is attributable to the parent. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3602-108585 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 225 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04(22)) -URI http://asc.fasb.org/extlink&oid=6879574&loc=d3e536633-122882 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 225 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-04(18)) -URI http://asc.fasb.org/extlink&oid=6879464&loc=d3e573970-122913 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 225 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(20)) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 + Details
Name: | us-gaap_NetIncomeLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Per unit of ownership amount after tax of income (loss) available to outstanding limited partnership (LP) unit-holder. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 5 -Subparagraph (SAB Topic 4.F) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187171-122770 + Details
Name: | us-gaap_NetIncomeLossPerOutstandingLimitedPartnershipUnitBasicNetOfTax
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition Weighted average number of limited partnership units outstanding determined by relating the portion of time within a reporting period that limited partnership units have been outstanding to the total time in that period. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 5 -Subparagraph (SAB Topic 4.F) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187171-122770 + Details
Name: | us-gaap_WeightedAverageLimitedPartnershipUnitsOutstanding
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration