v3.8.0.1

NET INCOME PER COMMON UNIT Table - Net Income (Loss) per Unit (Details) - USD ($) $ / shares in Units, $ in Thousands | 3 Months Ended | 12 Months Ended
--- | --- | ---
Dec. 31, 2017 | Sep. 30, 2017 | Jun. 30, 2017 | Mar. 31, 2017 | Dec. 31, 2016 | Sep. 30, 2016 | Jun. 30, 2016 | Mar. 31, 2016 | Dec. 31, 2017 | Dec. 31, 2016 | Dec. 31, 2015
Earnings Per Share [Abstract] |  |  |  |  |  |  |  |  |  |  |
Net income (loss) attributable to NuStar Energy L.P. | $ 25,182 | $ 38,592 | $ 26,250 | $ 57,940 | $ (11,056) | $ 51,141 | $ 52,517 | $ 57,401 | $ 147,964 | $ 150,003 | $ 306,720
Less: Distributions to general partner (including incentive distribution rights) |  |  |  |  |  |  |  |  | 54,921 | 51,284 | 51,064
Less: Distributions to common limited partners |  |  |  |  |  |  |  |  | 407,681 | 342,598 | 341,140
Less: Distributions to preferred limited partners |  |  |  |  |  |  |  |  | 40,448 | 1,925 | 0
Less: Distribution equivalent rights to restricted units |  |  |  |  |  |  |  |  | 2,965 | 2,697 | 0
Distributions in excess of earnings |  |  |  |  |  |  |  |  | (358,051) | (248,501) | (85,484)
Net income attributable to common units: |  |  |  |  |  |  |  |  |  |  |
Common limited partners' distribution |  |  |  |  |  |  |  |  | 407,681 | 342,598 | 341,140
Allocation of distributions in excess of earnings |  |  |  |  |  |  |  |  | (350,890) | (243,530) | (83,774)
Total |  |  |  |  |  |  |  |  | $ 56,791 | $ 99,068 | $ 257,366
Basic weighted-average common units outstanding |  |  |  |  |  |  |  |  | 88,825,964 | 78,080,484 | 77,886,078
Diluted common units outstanding: |  |  |  |  |  |  |  |  |  |  |
Basic weighted-average common units outstanding |  |  |  |  |  |  |  |  | 88,825,964 | 78,080,484 | 77,886,078
Effect of dilutive potential common units |  |  |  |  |  |  |  |  | 0 | 32,518 | 0
Diluted weighted-average common units outstanding |  |  |  |  |  |  |  |  | 88,825,964 | 78,113,002 | 77,886,078
Basic net income per common unit | $ 0.00 | $ 0.15 | $ 0.05 | $ 0.49 | $ (0.31) | $ 0.49 | $ 0.52 | $ 0.57 | $ 0.64 | $ 1.27 | $ 3.30
Diluted net income per common unit | $ 0.00 | $ 0.15 | $ 0.05 | $ 0.49 | $ (0.31) | $ 0.49 | $ 0.52 | $ 0.57 | $ 0.64 | $ 1.27 | $ 3.30

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 Distributions less than or (greater than) earnings, allocated to the common limited partners. + References No definition available. + Details
Name: | ns_EPUDistributionsLessThanGreaterThanEarningsAllocatedtoCommonLimitedPartner
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 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 limited partnership (LP) unit-holder and units that would have been outstanding assuming the issuance of limited partner units for dilutive potential units outstanding. + 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_NetIncomeLossNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
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

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. Used in the calculation of diluted net income or loss per limited partnership unit. + 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_WeightedAverageLimitedPartnershipUnitsOutstandingDiluted
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition The sum of dilutive potential limited partnership units used in the calculation of the diluted per-unit computation. + References No definition available. + Details
Name: | us-gaap_WeightedAverageNumerDilutedLimitedPartnershipUnitsOutstandingAdjustment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration