XML 76 R61.htm IDEA: XBRL DOCUMENT
v3.8.0.1

DEBT (Details Narrative) - USD ($) $ in Thousands |  |  |  |  |  |  |  |  |  |  | 12 Months Ended |
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Sep. 15, 2017 | Sep. 01, 2017 | Aug. 07, 2017 | Jun. 30, 2017 | May 20, 2017 | Dec. 15, 2016 | Dec. 12, 2016 | Dec. 31, 2015 | Dec. 15, 2015 | Jul. 01, 2015 | Dec. 31, 2017 | Dec. 31, 2016 | Dec. 31, 2015 | Feb. 26, 2016
Debt discount |  |  |  |  |  |  |  |  |  |  | $ 1,409 | $ 1,626 |  |
Principal balance |  |  |  |  |  |  |  |  |  |  | 244,425 | 201,862 |  |
Term Loan [Member] | Illinois Corn Processing, LLC [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Line of credit |  |  |  |  |  |  |  |  |  |  |  | 32,000 |  |
A-1 Term Loan (Pacific Ethanol West Plants' Term Debt) [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Line of credit |  |  |  |  |  |  |  | $ 17,003,000 |  |  |  |  | $ 17,003,000 |
Description of maturity date |  |  |  |  |  |  |  | mature in June 2016 |  |  |  |  |  |
Debt retiremnt amount |  |  |  |  |  |  |  |  |  |  |  |  |  | $ 17,003,000
Increased in debt amount |  |  |  |  |  |  |  |  |  |  | 58,766 | 58,766 | $ 41,763 |
A-1 Term Loan (Pacific Ethanol Central Plants' Term Debt) [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt maturity date |  |  |  |  |  |  |  |  |  | Sep. 24, 2017 |  |  |  |
Description of interest rate |  |  |  |  |  |  |  |  |  | Interest on the term loan facility accrued and could either be paid in cash at a rate of 10.5% per annum or paid in-kind at a rate of 15.0% per annum by adding such interest to the outstanding principal balance. |  |  |  |
Line of credit |  |  |  |  |  |  |  |  |  | $ 142,744 |  |  |  |
Description of debt collateral |  |  |  |  |  |  |  |  |  | Secured through a first-priority lien on substantially all of the Pacific Ethanol Central Plants |  |  |  |
Debt discount |  |  |  |  |  |  |  |  |  | $ 2,875 |  | 1,152 |  |
Paid in kind interest |  |  |  |  |  |  |  |  |  |  |  | 9,451 |  |
Principal balance |  |  |  |  |  |  |  |  | $ 155,070,205 |  |  |  |  |
Repayment of debt |  |  |  |  |  |  |  |  | $ 155,070,205 |  |  |  |  |
Credit Agreement [Member] | Illinois Corn Processing, LLC [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Description payment terms | Maintain working capital of not less than $8.0 million. In addition, ICP is required to maintain an annual debt coverage ratio of not less than 1.5 to 1.0 beginning for the year ending December 31, 2018. |  |  |  |  |  |  |  |  |  |  |  |  |
Credit Agreement [Member] | Term Loan [Member] | Illinois Corn Processing, LLC [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt face amount | $ 24,000 |  |  |  |  |  |  |  |  |  |  |  |  |
Description of interest rate | Accrues at a rate equal to 3.75% plus the one-month LIBOR index rate. |  |  |  |  |  |  |  |  |  |  |  |  |
Principal payments | $ 1,500 |  |  |  |  |  |  |  |  |  |  |  |  |
Frequency of periodic payments | Quarterly |  |  |  |  |  |  |  |  |  |  |  |  |
Description payment terms | Principal payments in sixteen equal consecutive quarterly installments of $1,500,000 each until September 20, 2021 |  |  |  |  |  |  |  |  |  |  |  |  |
Note Purchase Agreement [Member] | Notes Payable [Member] | Five Accredited Investors [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt face amount |  |  |  |  |  |  | $ 50,000 |  |  |  |  |  |  |
Description of borrowing terms |  |  |  |  |  |  | Private offering for aggregate gross proceeds of 97% of the principal amount of the Notes sold. |  |  |  |  |  |  |
Note Purchase Agreement [Member] | Total Notes Payable [Member] | Five Accredited Investors [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt maturity date |  |  |  |  |  | Dec. 15, 2019 |  |  |  |  |  |  |  |
Description of interest rate |  |  |  |  |  | (i) the greater of 1% and the three-month LIBOR, plus 7.0% from the closing through December 14, 2017, (ii) the greater of 1% and LIBOR, plus 9% between December 15, 2017 and December 14, 2018, and (iii) the greater of 1% and LIBOR plus 11% between December 15, 2018 and the Maturity Date. |  |  |  |  |  |  |  |
Debt default interest rate |  |  |  |  |  | 2.00% |  |  |  |  |  |  |  |
Description of debt collateral |  |  |  |  |  | Secured by a first-priority security interest in the equity interest held by Pacific Ethanol in its wholly-owned subsidiary, PE Op. Co., which indirectly owns the Company’s plants located on the West Coast. |  |  |  |  |  |  |  |
Second Note Purchase Agreement [Member] | Notes Payable [Member] | Five Accredited Investors [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt face amount |  |  |  | $ 13,900 |  |  |  |  |  |  |  |  |  |
Description of borrowing terms |  |  |  | Private offering for aggregate gross proceeds of 97% of the principal amount of the notes sold. |  |  |  |  |  |  |  |  |  |
Revolving Credit Facility [Member] | Illinois Corn Processing, LLC [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Line of credit |  |  |  |  |  |  |  |  |  |  | 18,000 | 0 |  |
Revolving Credit Facility [Member] | Credit Agreement [Member] | Illinois Corn Processing, LLC [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Maximum borrowing capacity | $ 18,000 |  |  |  |  |  |  |  |  |  |  |  |  |
Unused facility fees | 0.75% |  |  |  |  |  |  |  |  |  |  |  |  |
Kinergy Marketing LLC [Member] | Line of Credit [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Maximum borrowing capacity |  |  |  |  |  |  |  |  |  |  | $ 100,000 |  |  |
Line of credit maturity date |  |  |  |  |  |  |  |  |  |  | Aug. 02, 2022 |  |  |
Description of interest rate |  |  |  |  |  |  |  |  |  |  | Interest accrues under the line of credit at a rate equal to (i) the three-month London Interbank Offered Rate (“LIBOR”), plus (ii) a specified applicable margin ranging between 1.50% and 2.00%. |  |  |
Interest rate at end of period |  |  |  |  |  |  |  |  |  |  | 3.44% |  |  |
Interest margin rate |  |  |  |  |  |  |  |  |  |  | 1.75% |  |  |
Description of payment made to company |  |  |  |  |  |  |  |  |  |  | Payments that may be made by Kinergy to the Company as reimbursement for management and other services provided by the Company to Kinergy are limited under the terms of the credit facility to $1,500,000 per fiscal quarter. |  |  |
Description of collateral |  |  |  |  |  |  |  |  |  |  | The credit facility is based on Kinergy’s eligible accounts receivable and inventory levels, subject to certain concentration reserves. The credit facility is subject to certain other sublimits, including inventory loan limits. |  |  |
Unused borrowing capacity |  |  |  |  |  |  |  |  |  |  | $ 27,399 |  |  |
Line of credit |  |  |  |  |  |  |  |  |  |  | $ 49,477 | 49,862 |  |
Kinergy Marketing LLC [Member] | Line of Credit [Member] | Maximum [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Unused facility fees |  |  |  |  |  |  |  |  |  |  | 0.38% |  |  |
Kinergy Marketing LLC [Member] | Line of Credit [Member] | Minimum [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Unused facility fees |  |  |  |  |  |  |  |  |  |  | 0.25% |  |  |
Pacific Ag. Products, LLC [Member] | Line of Credit [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Description of payment made to company |  |  |  |  |  |  |  |  |  |  | Payments that may be made by PAP to the Company as reimbursement for management and other services provided by the Company to PAP are limited under the terms of the credit facility to $500,000 per fiscal quarter. |  |  |
Description of collateral |  |  |  |  |  |  |  |  |  |  | The credit facility also includes the accounts receivable of PAP as additional collateral |  |  |
Pacific Ethanol Pekin, Inc [Member] | Credit Agreement [Member] | 1st Farm Credit Services [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Description of interest rate |  |  |  |  |  | Annual rate equal to the 30-day LIBOR plus 3.75%, payable monthly |  |  |  |  |  |  |  |
Description of debt covenant |  |  |  |  |  | Under the terms of the Pekin Credit Agreement, Pekin is required to maintain not less than $20.0 million in working capital and an annual debt coverage ratio of not less than 1.25 to 1.0. |  |  |  |  |  |  |  |
Pacific Ethanol Pekin, Inc [Member] | Credit Agreement [Member] | 1st Farm Credit Services [Member] | Term Loan [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt face amount |  |  |  |  |  | $ 64,000 |  |  |  |  |  |  |  |
Debt maturity date |  |  |  |  |  | Aug. 20, 2021 |  |  |  |  |  |  |  |
Pacific Ethanol Pekin, Inc [Member] | Amendment Credit Agreement [Member] | 1st Farm Credit Services [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Description of interest rate |  |  | Increase the interest rate under the facilities by 25 basis points to an annual rate equal to the 30-day LIBOR plus 4.00%. |  |  |  |  |  |  |  |  |  |  |
Principal payments |  |  | $ 3,500 |  |  |  |  |  |  |  |  |  |  |
Description of debt covenant |  |  | Maintain working capital of not less than $17.5 million from August 31, 2017 through December 31, 2017 and working capital of not less than $20.0 million from January 1, 2018 and continuing at all times thereafter. In addition, the required Debt Service Coverage Ratio was reduced to 0.15 to 1.00 for the fiscal year ending December 31, 2017. |  |  |  |  |  |  |  |  |  |  |
Description of debt covenant subsequent |  |  | Working capital covenant requirement to be at least $13.0 million for the month ended February, 28, 2018. |  |  |  |  |  |  |  |  |  |  |
Pacific Ethanol Pekin, Inc [Member] | Revolving Credit Facility [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Line of credit |  |  |  |  |  |  |  |  |  |  | $ 32,000 |  |  |
Pacific Ethanol Pekin, Inc [Member] | Revolving Credit Facility [Member] | Credit Agreement [Member] | 1st Farm Credit Services [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Maximum borrowing capacity |  |  |  |  |  | $ 32,000 |  |  |  |  |  |  |  |
Line of credit maturity date |  |  |  |  |  | Feb. 01, 2022 |  |  |  |  |  |  |  |
Unused facility fees |  |  |  |  |  | 0.75% |  |  |  |  |  |  |  |
Description of collateral |  |  |  |  |  | Secured by a first-priority security interest in all of Pekin’s assets under the terms of a Security Agreement |  |  |  |  |  |  |  |
Principal payments |  |  |  |  | $ 3,500 |  |  |  |  |  |  |  |  |
Frequency of periodic payments |  |  |  |  | Quarterly |  |  |  |  |  |  |  |  |
Description payment terms |  |  |  |  | Principal payment of $4.5 million at maturity on August 20, 2021 |  |  |  |  |  |  |  |  |
Pacific Aurora [Member] | Line of Credit [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Line of credit |  |  |  |  |  |  |  |  |  |  | $ 0 | $ 1,000 |  |
Pacific Aurora [Member] | Revolving Credit Facility [Member] | Credit Agreement [Member] | CoBank [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |
Maximum borrowing capacity |  |  |  |  |  | $ 30,000 |  |  |  |  |  |  |  |
Line of credit maturity date |  |  |  |  |  | Feb. 01, 2022 |  |  |  |  |  |  |  |
Description of interest rate |  |  |  |  |  | Annual rate equal to the 30-day LIBOR plus 4.0%, payable monthly. |  |  |  |  |  |  |  |
Unused facility fees |  |  |  |  |  | 0.75% |  |  |  |  |  |  |  |
Description of collateral |  |  |  |  |  | Secured by a first-priority security interest in all of Pacific Aurora’s assets under the terms of a Security Agreement |  |  |  |  |  |  |  |
Description of debt covenant |  | Maintain working capital of not less than $18.0 million from September 30, 2017 through February 28, 2018 and working capital of not less than $20.0 million from March 1, 2018 and continuing at all times thereafter. In addition, the required Debt Service Coverage Ratio was reduced to 0.00 to 1.00 for the fiscal year ending December 31, 2017 and 1.50 to 1.00 for the fiscal year ending December 31, 2018 |  |  |  | Maintain not less than $22.5 million in working capital through June 30, 2017, not less than $24.0 million in working capital after June 30, 2017, and an annual debt coverage ratio of not less than 1.50 to 1.00. |  |  |  |  |  |  |  |
Description of borrowing terms |  |  |  |  |  | Borrowing availability under the Pacific Aurora Credit Facility automatically declines by $2.5 million on the first day of each June and December beginning on June 1, 2017 through and including December 1, 2020. |  |  |  |  |  |  |  |

X
- Definition It represents percentage of debt default long-term debt interest. + References No definition available. + Details
Name: | peix_DebtDefaultLongtermDebtInterestRate
Namespace Prefix: | peix_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition It represents value of debt instrument retiremnt. + References No definition available. + Details
Name: | peix_DebtInstrumentRetiremntAmount
Namespace Prefix: | peix_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Description related to payment made to company. + References No definition available. + Details
Name: | peix_DescriptionOfPaymentMadeToCompany
Namespace Prefix: | peix_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition It represents percentage of line of credit facility interest margin rate. + References No definition available. + Details
Name: | peix_LineOfCreditFacilityInterestMarginRate
Namespace Prefix: | peix_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Description of subsequent debt instrument covenant. + References No definition available. + Details
Name: | peix_SubsequentDebtInstrumentCovenantDescription
Namespace Prefix: | peix_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Discussion of whether the debt instrument is secured or unsecured, and, if secured, a description of the collateral and guarantees required or provided. + 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 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823 + Details
Name: | us-gaap_DebtInstrumentCollateral
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Description of minimum financial levels (for example, tangible net worth and working capital) and achievement of certain financial ratios (for example, working capital ratio and debt service coverage ratio), and adherence to certain clauses which generally require or restrict certain actions (for example, entering into a debt arrangement with equal or greater seniority, and selling or discontinuing a certain business segment or material subsidiary) to be in compliance with the covenant clauses of the debt agreement. May also include a discussion of the adverse consequences that would result if the entity violates or fails to satisfy the covenants. + 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 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (g) -URI http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823 + Details
Name: | us-gaap_DebtInstrumentCovenantDescription
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Identification of the lender and information about a contractual promise to repay a short-term or long-term obligation, which includes borrowings under lines of credit, notes payable, commercial paper, bonds payable, debentures, and other contractual obligations for payment. This may include rationale for entering into the arrangement, significant terms of the arrangement, which may include amount, repayment terms, priority, collateral required, debt covenants, borrowing capacity, call features, participation rights, conversion provisions, sinking-fund requirements, voting rights, basis for conversion if convertible and remarketing provisions. The description may be provided for individual debt instruments, rational groupings of debt instruments, or by debt in total. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=84159872&loc=d3e21475-112644 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(19)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 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(13)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 4: 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 Reference 5: 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 6: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823 Reference 7: 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)) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 + Details
Name: | us-gaap_DebtInstrumentDescription
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
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 Description of the frequency of periodic payments (monthly, quarterly, annual). + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823 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.22) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentFrequencyOfPeriodicPayment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Net increase or decrease in the carrying amount of the debt instrument for the period. + 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.(f)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 + Details
Name: | us-gaap_DebtInstrumentIncreaseDecreaseForPeriodNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Description of the interest rate as being fixed or variable, and, if variable, identification of the index or rate on which the interest rate is based and the number of points or percentage added to that index or rate to set the rate, and other pertinent information, such as frequency of rate resets. + 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_DebtInstrumentInterestRateTerms
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Date when the debt instrument is scheduled to be fully repaid, in CCYY-MM-DD format. + 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)(2)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentMaturityDate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition Description of the maturity date of the debt instrument including whether the debt matures serially and, if so, a brief description of the serial maturities. + 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)(2)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentMaturityDateDescription
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Description of the payment terms of the debt instrument (for example, whether periodic payments include principal and frequency of payments) and discussion about any contingencies associated with the payment. + 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)(3)) -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 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823 + Details
Name: | us-gaap_DebtInstrumentPaymentTerms
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of the required periodic payments including both interest and principal payments. + 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 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823 + Details
Name: | us-gaap_DebtInstrumentPeriodicPayment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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 The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the 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)) -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(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_LineOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Discussion of whether the borrowings under the credit facility are secured or unsecured and, if secured, a description of collateral (for example, accounts receivable less than 120 days old, finished goods inventory). + 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 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 Reference 3: 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)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 4: 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)) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 Reference 5: 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 6: 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(13)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 + Details
Name: | us-gaap_LineOfCreditFacilityCollateral
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Date the credit facility terminates, in CCYY-MM-DD format. + 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_LineOfCreditFacilityExpirationDate1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition The effective interest rate at the end of the reporting period. + 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_LineOfCreditFacilityInterestRateAtPeriodEnd
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Description of the interest rate for the amounts borrowed under the credit facility, including the terms and the method for determining the interest rate (for example, fixed or variable, LIBOR plus a percentage, increasing rate, timing of interest rate resets, remarketing provisions). + 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_LineOfCreditFacilityInterestRateDescription
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 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/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 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 Reference 3: 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 + Details
Name: | us-gaap_LongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Interest paid other than in cash for example by issuing additional debt securities. As a noncash item, it is added to net income when calculating cash provided by or used in operations using the indirect method. + References Reference 1: 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 + Details
Name: | us-gaap_PaidInKindInterest
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 No definition available. + Details
Name: | us-gaap_RepaymentsOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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

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

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

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

X
- Details
Name: | us-gaap_TypeOfArrangementAxis=peix_CreditAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_TypeOfArrangementAxis=peix_NotePurchaseAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=peix_FiveAccreditedInvestorsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_TypeOfArrangementAxis=peix_SecondNotePurchaseAgreementMember
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_ConsolidatedEntitiesAxis=peix_KinergyMarketingLLCMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_RangeAxis=us-gaap_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RangeAxis=us-gaap_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConsolidatedEntitiesAxis=peix_PacificAgProductsLLCMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConsolidatedEntitiesAxis=peix_PacificEthanolPekinIncMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=peix_FarmCredit1stServicesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_TypeOfArrangementAxis=peix_AmendmentCreditAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ConsolidatedEntitiesAxis=peix_PacificAuroraMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=peix_CoBankMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |