XML 98 R78.htm IDEA: XBRL DOCUMENT
v3.20.2

LONG-TERM DEBT (Details) - USD ($) |  | 12 Months Ended |  |  |  |  |
--- | --- | --- | --- | --- | --- | --- | ---
Oct. 22, 2018 | Aug. 01, 2020 | Aug. 14, 2020 | Oct. 21, 2019 | Aug. 03, 2019 | Oct. 19, 2018 | Aug. 29, 2018
Debt Instrument [Line Items] |  |  |  |  |  |  |
Long-term debt |  | $ 2,426,994,000 |  |  | $ 2,819,050,000 |  |
Debt issuance costs, net |  | 45,846,000 |  |  | 54,891,000 |  |
Owned real property pledged as collateral |  | 599,900,000 |  |  |  |  |
Unamortized debt issuance expense |  | 100,000 |  |  |  |  |
Original issue discount on debt |  | $ 35,508,000 |  |  | $ 41,175,000 |  |
ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Spread on reference rate (percent) |  | 1.58% |  |  |  |  |
Term Loan Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Spread on reference rate (percent) |  | 4.41% |  |  |  |  |
Secured Debt | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Excess cash flow |  | $ 72,000,000.0 |  |  |  |  |
Secured Debt | Term Loan Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Debt issuance costs, net |  | $ 36,000,000.0 |  |  |  |  |
Debt instrument, face amount | $ 1,950,000,000.0 |  |  |  |  |  |
Line of credit, additional borrowing capacity | 656,300,000 |  |  |  |  |  |
Debt instrument, guarantees exception, carrying value of owned real property | 10,000,000.0 |  |  |  |  |  |
Percentage of net cash proceeds |  | 100.00% |  |  |  |  |
Loans outstanding prepaid, number of days after the fiscal year end |  | 130 days |  |  |  |  |
Excess cash flow |  | $ 10,000,000 |  |  |  |  |
Original issue discount on debt |  | $ 35,200,000 |  |  |  |  |
Secured Debt | Term Loan Facility | Minimum |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Percentage of aggregate principal amount |  | 0.00% |  |  |  |  |
Secured Debt | Term Loan Facility | Maximum |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Percentage of aggregate principal amount |  | 75.00% |  |  |  |  |
Secured Debt | 2018 Term Loan Facility, Term B Tranche |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Debt instrument, face amount | $ 1,800,000,000.0 | $ 1,773,000,000.0 |  |  |  |  |
Debt instrument, term | 7 years |  |  |  |  |  |
Debt, current |  | 72,000,000.0 |  |  |  |  |
Secured Debt | 2018 Term Loan Facility, 364-day Tranche |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Long-term debt |  |  |  | $ 52,800,000 |  |  |
Debt instrument, face amount | $ 150,000,000.0 |  |  |  |  |  |
Debt instrument, term | 364 days |  |  |  |  |  |
Mandatory prepayments |  | 15,300,000 |  |  |  |  |
Voluntary prepayments |  | 5,800,000 |  |  |  |  |
Revolving Credit Facility | Line of Credit |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Remaining availability of credit facility |  | $ 1,234,758,000 |  |  |  |  |
Annual commitment fee, percentage (as a percent) |  | 0.25% |  |  |  |  |
Revolving Credit Facility | Line of Credit | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Maximum borrowing base |  |  |  |  |  | $ 2,100,000,000.0 |
Maximum borrowing capacity |  |  |  |  |  | 600,000,000.0 |
Maximum borrowing base |  |  |  |  |  | 2,700,000,000.0 |
Notes payable |  | $ 756,700,000 |  |  |  |  |
Debt issuance costs, net |  | 9,900,000 |  |  |  |  |
Outstanding letters of credit |  | 95,900,000 |  |  |  |  |
Remaining availability of credit facility |  | 1,234,800,000 |  |  |  |  |
Revolving Credit Facility | Line of Credit | Former ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Maximum borrowing base |  |  |  |  |  |  | $ 900,000,000.0
Revolving Credit Facility | Line of Credit | UNITED STATES | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Maximum borrowing base |  | 2,050,000,000.0 |  |  |  | 2,050,000,000.0 |
Borrowing base, reserves |  | 254,700,000 |  |  |  |  |
Borrowing base, based on eligible accounts receivable and inventory levels |  | 2,047,800,000 |  |  |  |  |
Revolving Credit Facility | Line of Credit | CANADA | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Maximum borrowing base |  |  |  |  |  | 50,000,000.0 |
Borrowing base, reserves |  | 3,900,000 |  |  |  |  |
Borrowing base, based on eligible accounts receivable and inventory levels | $ 2,087,400,000 | $ 39,600,000 |  |  |  |  |
Letter of Credit | Line of Credit | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Minimum fixed charge coverage ratio, numerator |  | 1.0 |  |  |  |  |
Percentage of maximum aggregate availability of the aggregate borrowing base (as a percent) |  | 10.00% |  |  |  |  |
Maximum aggregate availability of aggregate borrowing base |  | $ 235,000,000.0 |  |  |  |  |
Fronting fee percentage |  | 0.125% |  |  |  |  |
Letter of Credit | Line of Credit | UNITED STATES | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Maximum borrowing base |  |  |  |  |  | 300,000,000.0 |
Letter of Credit | Line of Credit | CANADA | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Maximum borrowing base |  |  |  |  |  | 25,000,000.0 |
Bridge Loan | Line of Credit | UNITED STATES | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Maximum borrowing base |  |  |  |  |  | 100,000,000.0 |
Bridge Loan | Line of Credit | CANADA | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Maximum borrowing base |  |  |  |  |  | $ 3,500,000 |
SUPERVALU |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Total consideration paid in cash | 1,300,000,000 |  |  |  |  |  |
SUPERVALU | Revolving Credit Facility | Line of Credit | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Total consideration paid in cash | $ 1,475,000,000.0 |  |  |  |  |  |
Accounts Receivable | Revolving Credit Facility | Line of Credit | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Borrowing base, eligibility percentage |  |  |  |  |  | 90.00% |
Credit Card Receivable | Revolving Credit Facility | Line of Credit | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Borrowing base, eligibility percentage |  |  |  |  |  | 90.00% |
Inventories | Revolving Credit Facility | Line of Credit | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Borrowing base, eligibility percentage |  |  |  |  |  | 90.00% |
Pharmacy Receivable | Revolving Credit Facility | Line of Credit | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Borrowing base, eligibility percentage |  |  |  |  |  | 90.00% |
Base Rate | Secured Debt | 2018 Term Loan Facility, Term B Tranche |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Spread on reference rate (percent) | 3.25% |  |  |  |  |  |
Base Rate | Revolving Credit Facility | Line of Credit | UNITED STATES | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Spread on reference rate (percent) | 0.25% |  |  |  |  |  |
London Interbank Offered Rate (LIBOR) |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Debt instrument, minimum variable rate | 0.00% |  |  |  |  |  |
London Interbank Offered Rate (LIBOR) | Secured Debt | 2018 Term Loan Facility, Term B Tranche |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Spread on reference rate (percent) | 4.25% |  |  |  |  |  |
London Interbank Offered Rate (LIBOR) | Revolving Credit Facility | Line of Credit | UNITED STATES | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Spread on reference rate (percent) | 1.25% |  |  |  |  |  |
Prime Rate | Revolving Credit Facility | Line of Credit | CANADA | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Spread on reference rate (percent) | 0.25% |  |  |  |  |  |
Bankers Acceptance Equivalent Rate | Revolving Credit Facility | Line of Credit | CANADA | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Spread on reference rate (percent) | 1.25% |  |  |  |  |  |
Outstanding Borrowings Less Than 25 Percent Of Aggregate Commitments | Revolving Credit Facility | Line of Credit | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Annual commitment fee, percentage (as a percent) |  | 0.375% |  |  |  |  |
Percentage of maximum aggregate availability of the aggregate borrowing base (as a percent) |  | 25.00% |  |  |  |  |
Percentage of minimum aggregate availability of the aggregate borrowing base |  | 25.00% |  |  |  |  |
Outstanding Borrowings Equal Or Greater Than 25 Percent Of Aggregate Commitments | Revolving Credit Facility | Line of Credit | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Annual commitment fee, percentage (as a percent) |  | 0.25% |  |  |  |  |
Forecast | Letter of Credit | Line of Credit | UNITED STATES | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Maximum borrowing base |  |  | $ 300,000,000 |  |  |  |
Forecast | Letter of Credit | Line of Credit | CANADA | ABL Credit Facility |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |
Maximum borrowing base |  |  | $ 25,000,000 |  |  |  |

X
- Definition Debt Instrument, Covenant Compliance, Number of Days By Which Loans Outstanding Must Be Prepaid + References No definition available. + Details
Name: | unfi_DebtInstrumentCovenantComplianceNumberofDaysByWhichLoansOutstandingMustBePrepaid
Namespace Prefix: | unfi_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Covenant Compliance, Percentage Of Loans Outstanding Required To Be Paid Following Specified Term Following Fiscal Year End + References No definition available. + Details
Name: | unfi_DebtInstrumentCovenantCompliancePercentageOfLoansOutstandingRequiredToBePaidFollowingSpecifiedTermFollowingFiscalYearEnd
Namespace Prefix: | unfi_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Covenant Compliance, Percentage Of Proceeds From Certain Types Of Asset Sales To Be Used To Prepay Loans Outstanding + References No definition available. + Details
Name: | unfi_DebtInstrumentCovenantCompliancePercentageOfProceedsFromCertainTypesOfAssetSalesToBeUsedToPrepayLoansOutstanding
Namespace Prefix: | unfi_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Covenant Compliance, Threshold, Loans Outstanding Required To Be Paid Following Specified Term Following Fiscal Year End + References No definition available. + Details
Name: | unfi_DebtInstrumentCovenantComplianceThresholdLoansOutstandingRequiredToBePaidFollowingSpecifiedTermFollowingFiscalYearEnd
Namespace Prefix: | unfi_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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 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 Line of Credit Facility, Minimum Percentage of Aggregate Availability of the Aggregate Borrowing Base + References No definition available. + Details
Name: | unfi_LineofCreditFacilityMinimumPercentageofAggregateAvailabilityoftheAggregateBorrowingBase
Namespace Prefix: | unfi_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

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://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.19,20) -URI http://asc.fasb.org/extlink&oid=120391452&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://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=119993939&loc=d3e28551-108399 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=114775985&loc=d3e28878-108400 + Details
Name: | us-gaap_DebtInstrumentFaceAmount
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_DebtInstrumentLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 1A -URI http://asc.fasb.org/extlink&oid=119993939&loc=d3e28541-108399 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=114775985&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://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.17) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=119993939&loc=d3e28555-108399 + Details
Name: | us-gaap_DeferredFinanceCostsNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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://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.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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://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.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=120391452&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://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.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=120391452&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 Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b)(3) -URI http://asc.fasb.org/extlink&oid=120520924&loc=SL6031897-161870 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -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=120400017&loc=d3e572229-122910 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -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=120398452&loc=d3e534808-122878 Reference 4: 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(22)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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://fasb.org/us-gaap/role/ref/legacyRef -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=120400017&loc=d3e572229-122910 Reference 2: 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(22)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -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=120398452&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/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (b)(1) -URI http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 13 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121586364&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 fair value, as of the date of each statement of financial position presented, of real estate which is owned but transferred to serve as collateral for the payment of the related debt obligation, and that is reclassified and separately reported in the statement of financial position because the transferee has the right by contract or custom to sell or re-pledge it. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 30 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=66007379&loc=d3e113888-111728 + Details
Name: | us-gaap_PledgedAssetsSeparatelyReportedRealEstatePledgedAsCollateralAtFairValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The cash outflow to settle a bank borrowing during the year. + 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 (b) -URI http://asc.fasb.org/extlink&oid=121586364&loc=d3e3291-108585 + Details
Name: | us-gaap_RepaymentsOfBankDebt
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 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=121586364&loc=d3e3291-108585 + Details
Name: | us-gaap_RepaymentsOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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://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.17) -URI http://asc.fasb.org/extlink&oid=120391452&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_DebtInstrumentAxis=unfi_ABLCreditFacilityMember
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_LongtermDebtTypeAxis=us-gaap_SecuredDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
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_A2018TermLoanFacility364dayTrancheMember
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_LongtermDebtTypeAxis=us-gaap_LineOfCreditMember
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: | srt_StatementGeographicalAxis=country_US
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=country_CA
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_BusinessAcquisitionAxis=unfi_SUPERVALUMember
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_VariableRateAxis=us-gaap_BaseRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_LondonInterbankOfferedRateLIBORMember
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: | 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: |

X
- Details
Name: | srt_StatementScenarioAxis=srt_ScenarioForecastMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |