XML 86 R72.htm IDEA: XBRL DOCUMENT
v3.10.0.1

NOTES PAYABLE (Details) |  | 3 Months Ended | 6 Months Ended |  |  |
--- | --- | --- | --- | --- | --- | ---
Oct. 22, 2018 USD ($) | Jan. 26, 2019 USD ($) | Jan. 26, 2019 USD ($) quarter | Jan. 27, 2018 USD ($) | Oct. 19, 2018 USD ($) | Aug. 29, 2018 USD ($) | Jul. 28, 2018 USD ($)
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Long-term debt |  | $ 2,965,336,000 | $ 2,965,336,000 |  |  |  | $ 308,836,000
Debt Issuance Costs, Net |  | 60,631,000 | 60,631,000 |  |  |  | 1,164,000
Repayments of Long-term Debt |  |  | 713,366,000 | $ 6,054,000 |  |  |
Gain (Loss) on Extinguishment of Debt |  |  | (2,117,000) | $ 0 |  |  |
Debt Instrument, Unamortized Discount |  | 43,638,000 | 43,638,000 |  |  |  | $ 0
Assets Held-in-trust |  | 566,400,000 | 566,400,000 |  |  |  |
LIBOR |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Minimum LIBOR rate | 0.00% |  |  |  |  |  |
Line of Credit | Revolving Credit Facility |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Unused available credit |  | 731,234,000 | $ 731,234,000 |  |  |  |
Unused facility fees |  |  | 0.375% |  |  |  |
364-day Tranche | Secured Debt [Member] |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Debt Instrument, Face Amount | $ 150,000,000 | 103,000,000 | $ 103,000,000 |  |  |  |
Debt Instrument, Term | 364 days |  |  |  |  |  |
Repayments of Debt |  | 47,000,000 |  |  |  |  |
Unamortized Debt Issuance Expense |  | 1,000,000 | 1,000,000 |  |  |  |
Debt, Current |  | 103,000,000 | $ 103,000,000 |  |  |  |
364-day Tranche | Secured Debt [Member] | Base Rate |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread on variable rate | 1.00% |  |  |  |  |  |
364-day Tranche | Secured Debt [Member] | LIBOR |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread on variable rate | 2.00% |  |  |  |  |  |
Term Loan Facility |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread on variable rate |  |  | 6.65% |  |  |  |
Term Loan Facility | Secured Debt [Member] |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Debt Issuance Costs, Net |  | 46,400,000 | $ 46,400,000 |  |  |  |
Debt Instrument, Face Amount | $ 1,950,000,000 |  |  |  |  |  |
Line of Credit, Additional Borrowing Capacity | 656,250,000 |  |  |  |  |  |
Debt Instrument, Guarantees Exception, Carrying Value of Owned Real Property | 10,000,000 |  |  |  |  |  |
Debt Instrument, Unamortized Discount |  | 43,600,000 | $ 43,600,000 |  |  |  |
ABL Credit Facility |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread on variable rate |  |  | 3.81% |  |  |  |
ABL Credit Facility | Line of Credit | Revolving Credit Facility |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Maximum borrowing capacity |  |  |  |  | $ 2,100,000,000.0 |  |
Line Of Credit Facility, Maximum Borrowing Capacity, Including Optional Increase |  |  |  |  | 2,700,000,000 |  |
Maximum borrowing capacity, optional increase |  |  |  |  | 600,000,000.0 |  |
Long-term debt |  | 1,242,000,000 | $ 1,242,000,000 |  |  |  |
Debt Issuance Costs, Net |  | 14,200,000 | 14,200,000 |  |  |  |
Letters of credit outstanding, amount |  | 76,800,000 | 76,800,000 |  |  |  |
Unused available credit |  | 766,400,000 | $ 766,400,000 |  |  |  |
Unused facility fees |  |  | 0.375% |  |  |  |
ABL Credit Facility | Line of Credit | Revolving Credit Facility | CANADA |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Maximum borrowing capacity |  |  |  |  | 50,000,000.0 |  |
Line of credit facility, reserves |  | 3,300,000 | $ 3,300,000 |  |  |  |
Current borrowing capacity | $ 2,085,200,000 | 35,200,000 | 35,200,000 |  |  |  |
ABL Credit Facility | Line of Credit | Revolving Credit Facility | CANADA | Prime Rate |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread on variable rate | 0.25% |  |  |  |  |  |
ABL Credit Facility | Line of Credit | Revolving Credit Facility | CANADA | Bankers Acceptance Equivalent Rate |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread on variable rate | 1.25% |  |  |  |  |  |
ABL Credit Facility | Line of Credit | Revolving Credit Facility | UNITED STATES |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Maximum borrowing capacity |  | 2,050,000,000.0 | 2,050,000,000.0 |  | $ 2,050,000,000.0 |  |
Line of credit facility, reserves |  | 88,800,000 | 88,800,000 |  |  |  |
Current borrowing capacity |  | 2,259,600,000 | $ 2,259,600,000 |  |  |  |
ABL Credit Facility | Line of Credit | Revolving Credit Facility | UNITED STATES | Base Rate |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread on variable rate | 0.25% |  |  |  |  |  |
ABL Credit Facility | Line of Credit | Revolving Credit Facility | UNITED STATES | LIBOR |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread on variable rate | 1.25% |  |  |  |  |  |
ABL Credit Facility | Line of Credit | Revolving Credit Facility | Accounts Receivable |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Borrowing base, eligibility percent |  |  |  |  | 90.00% |  |
ABL Credit Facility | Line of Credit | Revolving Credit Facility | Credit Card Receivable |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Borrowing base, eligibility percent |  |  |  |  | 90.00% |  |
ABL Credit Facility | Line of Credit | Revolving Credit Facility | Inventories |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Borrowing base, eligibility percent |  |  |  |  | 90.00% |  |
ABL Credit Facility | Line of Credit | Revolving Credit Facility | Pharmacy Receivable |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Borrowing base, eligibility percent |  |  |  |  | 90.00% |  |
ABL Credit Facility | Line of Credit | Letter of Credit |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Fronting fee percentage |  |  | 0.125% |  |  |  |
Fixed charge coverage ratio, minimum |  |  | 1.0 |  |  |  |
Fixed charge coverage ratio, number of quarters | quarter |  |  | 4 |  |  |  |
Maximum aggregate availability of the aggregate borrowing base |  | 235,000,000 | $ 235,000,000 |  |  |  |
Maximum percentage of aggregate availability of the aggregate borrowing base |  |  | 10.00% |  |  |  |
ABL Credit Facility | Line of Credit | Letter of Credit | CANADA |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Maximum borrowing capacity |  |  |  |  | $ 5,000,000.0 |  |
ABL Credit Facility | Line of Credit | Letter of Credit | UNITED STATES |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Maximum borrowing capacity |  |  |  |  | 125,000,000.0 |  |
ABL Credit Facility | Line of Credit | Bridge Loan | CANADA |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Maximum borrowing capacity |  |  |  |  | 3,500,000.0 |  |
ABL Credit Facility | Line of Credit | Bridge Loan | UNITED STATES |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Maximum borrowing capacity |  |  |  |  | $ 100,000,000.0 |  |
Former ABL Credit Facility | Line of Credit | Revolving Credit Facility |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Maximum borrowing capacity |  |  |  |  |  | $ 900,000,000.0 |
Term B Tranche | Secured Debt [Member] |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Debt Instrument, Face Amount | $ 1,800,000,000 | 1,800,000,000 | $ 1,800,000,000 |  |  |  |
Debt Instrument, Term | 7 years |  |  |  |  |  |
Debt, Current |  | 18,000,000 | 18,000,000 |  |  |  |
Term B Tranche | Secured Debt [Member] | Base Rate |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread on variable rate | 3.25% |  |  |  |  |  |
Term B Tranche | Secured Debt [Member] | LIBOR |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread on variable rate | 4.25% |  |  |  |  |  |
Supervalu Senior Notes |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Senior Notes | $ 350,000,000 | $ 180,000,000 | $ 180,000,000 |  |  |  |
Debt Instrument, Interest Rate, Stated Percentage | 7.75% | 6.75% | 6.75% |  |  |  |
Supervalu |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Payments for business acquisitions | $ 1,300,000,000 |  |  |  |  |  |
Supervalu | ABL Credit Facility | Line of Credit | Revolving Credit Facility |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Payments for business acquisitions | $ 1,475,000,000 |  |  |  |  |  |
Outstanding Borrowings Less Than 25% Of Aggregate Commitments | ABL Credit Facility | Line of Credit | Revolving Credit Facility |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Unused facility fees |  |  | 0.375% |  |  |  |
Outstanding Borrowings Equal Or Greater Than 25% Of Aggregate Commitments | ABL Credit Facility | Line of Credit | Revolving Credit Facility |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Unused facility fees |  |  | 0.25% |  |  |  |

X
- Definition Represents the numerator of the minimum fixed charge coverage ratio allowable under the financial covenant. + References No definition available. + Details
Name: | unfi_DebtInstrumentCovenantFixedChargeCoverageRatioMinimum
Namespace Prefix: | unfi_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Represents the number of rolling quarters used to calculate the fixed charge coverage ratio under the debt instrument covenants. + References No definition available. + Details
Name: | unfi_DebtInstrumentFixedChargeCoverageRatioNumberOfQuarters
Namespace Prefix: | unfi_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Guarantees Exception, Carrying Value of Owned Real Property + References No definition available. + Details
Name: | unfi_DebtInstrumentGuaranteesExceptionCarryingValueofOwnedRealProperty
Namespace Prefix: | unfi_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Debt Instrument, Minimum Variable Rate + References No definition available. + Details
Name: | unfi_DebtInstrumentMinimumVariableRate
Namespace Prefix: | unfi_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line Of Credit Facility, Borrowing Base, Eligibility Percent + References No definition available. + Details
Name: | unfi_LineOfCreditFacilityBorrowingBaseEligibilityPercent
Namespace Prefix: | unfi_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Line Of Credit Facility, Borrowing Capacity, Reserves + References No definition available. + Details
Name: | unfi_LineOfCreditFacilityBorrowingCapacityReserves
Namespace Prefix: | unfi_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Line Of Credit Facility, Fronting Fee Percentage + References No definition available. + Details
Name: | unfi_LineOfCreditFacilityFrontingFeePercentage
Namespace Prefix: | unfi_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The maximum amount of borrowing capacity under a line of credit that is used for calculating to minimum fixed charge ration. + References No definition available. + Details
Name: | unfi_LineOfCreditFacilityMaximumAggregateAvailabilityOfTheAggregateBorrowingBase
Namespace Prefix: | unfi_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Line Of Credit Facility, Maximum Borrowing Capacity, Including Optional Increase + References No definition available. + Details
Name: | unfi_LineOfCreditFacilityMaximumBorrowingCapacityIncludingOptionalIncrease
Namespace Prefix: | unfi_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Line Of Credit Facility, Maximum Borrowing Capacity, Optional Increase + References No definition available. + Details
Name: | unfi_LineOfCreditFacilityMaximumBorrowingCapacityOptionalIncrease
Namespace Prefix: | unfi_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The percentage of maximum amount of borrowing capacity under a line of credit that is used for calculating to minimum fixed charge ration. + References No definition available. + Details
Name: | unfi_LineOfCreditFacilityMaximumPercentageOfAggregateAvailabilityOfTheAggregateBorrowingBase
Namespace Prefix: | unfi_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line of Credit, Additional Borrowing Capacity + References No definition available. + Details
Name: | unfi_LineofCreditAdditionalBorrowingCapacity
Namespace Prefix: | unfi_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The total amount of cash and securities held by third party trustees pursuant to terms of debt instruments or other agreements as of the date of each statement of financial position presented, which can be used by the trustee only to pay the noncurrent portion of specified obligations. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(b)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 + Details
Name: | us-gaap_AssetsHeldInTrust
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of short-term debt and current maturity of long-term debt and capital lease obligations due within one year or the normal operating cycle, if longer. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19,20) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Percentage points added to the reference rate to compute the variable rate on the debt instrument. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentBasisSpreadOnVariableRate1
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Face (par) amount of debt instrument at time of issuance. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=64930739&loc=d3e28878-108400 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=64930785&loc=d3e28551-108399 + Details
Name: | us-gaap_DebtInstrumentFaceAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Contractual interest rate for funds borrowed, under the debt agreement. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentInterestRateStatedPercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Period of time between issuance and maturity of debt instrument, in PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentTerm
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, after accumulated amortization, of debt discount. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 1A -URI http://asc.fasb.org/extlink&oid=64930785&loc=d3e28541-108399 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=64930739&loc=d3e28878-108400 + Details
Name: | us-gaap_DebtInstrumentUnamortizedDiscount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, after accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=64930785&loc=d3e28555-108399 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.17) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_DeferredFinanceCostsNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Difference between the fair value of payments made and the carrying amount of debt which is extinguished prior to maturity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 50 -Section 40 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=49170532&loc=d3e12317-112629 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3602-108585 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 50 -Section 40 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=49170532&loc=d3e12355-112629 + Details
Name: | us-gaap_GainsLossesOnExtinguishmentOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The total amount of the contingent obligation under letters of credit outstanding as of the reporting date. + References No definition available. + Details
Name: | us-gaap_LettersOfCreditOutstandingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of current borrowing capacity under the credit facility considering any current restrictions on the amount that could be borrowed (for example, borrowings may be limited by the amount of current assets), but without considering any amounts currently outstanding under the facility. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_LineOfCreditFacilityLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of borrowing capacity currently available under the credit facility (current borrowing capacity less the amount of borrowings outstanding). + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The fee, expressed as a percentage of the line of credit facility, for available but unused credit capacity under the credit facility. + References No definition available. + Details
Name: | us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Including the current and noncurrent portions, aggregate carrying amount of all types of notes payable, as of the balance sheet date, with initial maturities beyond one year or beyond the normal operating cycle, if longer. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(16)) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 + Details
Name: | us-gaap_NotesPayable
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The cash outflow associated with the acquisition of business during the period. The cash portion only of the acquisition price. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 13 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3213-108585 + Details
Name: | us-gaap_PaymentsToAcquireBusinessesGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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 No definition available. + Details
Name: | us-gaap_RepaymentsOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow for debt initially having maturity due after one year or beyond the normal operating cycle, if longer. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3291-108585 + Details
Name: | us-gaap_RepaymentsOfLongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Including the current and noncurrent portions, carrying value as of the balance sheet date of Notes with the highest claim on the assets of the issuer in case of bankruptcy or liquidation (with maturities initially due after one year or beyond the operating cycle if longer). Senior note holders are paid off in full before any payments are made to junior note holders. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03.16(a)) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03.16) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 + Details
Name: | us-gaap_SeniorNotes
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The remaining balance of debt issuance expenses that were capitalized and are being amortized against income over the lives of the respective bond issues. This does not include the amounts capitalized as part of the cost of the utility plant or asset. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.17) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_UnamortizedDebtIssuanceExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_LondonInterbankOfferedRateLIBORMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_LineOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_RevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=unfi_A2018TermLoanFacility364dayTrancheMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_SecuredDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_BaseRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=unfi_A2018TermLoanFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=unfi_ABLCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementGeographicalAxis=country_CA
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_PrimeRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=unfi_BankersAcceptanceEquivalentRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementGeographicalAxis=country_US
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | unfi_BorrowingBaseEligibleAssetAxis=us-gaap_AccountsReceivableMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | unfi_BorrowingBaseEligibleAssetAxis=us-gaap_CreditCardReceivablesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | unfi_BorrowingBaseEligibleAssetAxis=us-gaap_InventoriesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | unfi_BorrowingBaseEligibleAssetAxis=unfi_PharmacyReceivableMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_LetterOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_BridgeLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=unfi_FormerABLCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=unfi_A2018TermLoanFacilityTermBTrancheMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=unfi_SupervaluSeniorNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=unfi_SUPERVALUMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | unfi_DebtCovenantTermsAxis=unfi_OutstandingBorrowingsLessThan25PercentOfAggregateCommitmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | unfi_DebtCovenantTermsAxis=unfi_OutstandingBorrowingsEqualOrGreaterThan25PercentOfAggregateCommitmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |