XML 46 R71.htm IDEA: XBRL DOCUMENT
v3.19.3.a.u2

DEBT. (Details Narrative) - USD ($) $ in Thousands |  |  |  |  |  |  |  |  |  | 1 Months Ended | 9 Months Ended | 12 Months Ended |  |  |
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Mar. 21, 2019 | Mar. 30, 2018 | Sep. 15, 2017 | Aug. 07, 2017 | Jun. 30, 2017 | May 20, 2017 | Dec. 15, 2016 | Dec. 12, 2016 | Dec. 31, 2015 | Jul. 31, 2019 | Sep. 30, 2019 | Dec. 31, 2018 | Dec. 31, 2017 | Dec. 31, 2016 | Dec. 31, 2015 | Aug. 20, 2019 | Aug. 06, 2019 | Feb. 26, 2016
Debt maturity date |  |  |  |  |  |  |  |  |  |  |  | Dec. 15, 2019 |  |  |  |  |  |  |
Debt discount |  |  |  |  |  |  |  |  |  |  | $ 150 | $ 690 |  | $ 1,409 |  |  |  |  |
Principal balance |  |  |  |  |  |  |  |  |  |  | 244,385 | 233,505 |  | 244,425 |  |  |  |  |
Net assets |  |  |  |  |  |  |  |  |  |  | 652,860 | 659,981 | [1] | 720,296 |  |  |  |  |
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 |  |  |
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 service coverage ratio of not less than 1.50 to 1.00 beginning for the year ending December 31, 2018. |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Credit Agreement [Member] | Term Loan [Member] | Illinois Corn Processing, LLC [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt face amount |  |  | $ 24,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Interest rate term |  |  | Accrues at a rate equal to 3.75% plus the one-month LIBOR |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
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 |  |  |  |  |  |  |  | $ 55,000 |  |  |  |  |  |  |  |  |  |  |
Description of borrowing terms |  |  |  |  |  |  |  | Private offering for aggregate gross proceeds of 97% of the principal amount of the Notes sold. |  |  |  |  |  |  |  |  |  |  |
Repayment of debt |  |  |  |  |  |  |  |  |  |  |  | 2,000 |  |  |  |  |  |  |
Note Purchase Agreement [Member] | Total Notes Payable [Member] | Five Accredited Investors [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt maturity date |  |  |  |  |  |  | Dec. 15, 2019 |  |  |  |  |  |  |  |  |  |  |  |
Interest rate term |  |  |  |  |  |  | (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] | 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 |  |  |  |  |  |  |  |  |  |  | 2,200 | 10,200 |  |  |  |  |  |  |
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 |  |  |  |  |  |  |  |  |  |  |  | 4.31% |  |  |  |  |  |  |
Interest margin rate |  |  |  |  |  |  |  |  |  |  |  | 1.50% |  |  |  |  |  |  |
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 |  |  |  |  |  |  |  |  |  |  | 4,430 | $ 10,200 |  |  |  |  |  |  |
Interest rate term |  |  |  |  |  |  |  |  |  | Accrue interest at an annual rate equal to the daily three month LIBOR plus an applicable margin of 4.00%. |  |  |  |  |  |  |  |  |
Line of credit |  |  |  |  |  |  |  |  |  |  | 79,685 | $ 57,057 |  | $ 49,477 |  |  |  |  |
Description of borrowing capacity |  |  |  |  |  |  |  |  |  | The borrowing base under the credit facility at 90% of eligible accounts receivable, plus the lesser of (a) $50,000,000, (b) 80% of eligible inventory, or (c) 95% of the estimated recovery value of eligible inventory. |  |  |  |  |  |  |  |  |
Additional borrowing |  |  |  |  |  |  |  |  |  |  | 4,430 |  |  |  |  |  |  |  |
Kinergy Marketing LLC [Member] | Line of Credit [Member] | Minimum [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Unused facility fees |  |  |  |  |  |  |  |  |  |  |  | 0.25% |  |  |  |  |  |  |
Kinergy Marketing LLC [Member] | Line of Credit [Member] | Maximum [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Unused facility fees |  |  |  |  |  |  |  |  |  |  |  | 0.38% |  |  |  |  |  |  |
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] | Term Loan [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt face amount |  |  |  |  |  |  |  |  |  |  |  | $ 3,500 |  |  |  |  |  | $ 3,500 |
Debt maturity date |  | May 31, 2018 |  |  |  |  |  |  |  |  |  | Mar. 31, 2018 |  |  |  |  |  |  |
Description of debt covenant |  | One of the Company's subsidiaries, amended its term loan facility by reducing the amount of working capital it is required to maintain to not less than $13.0 million from March 31, 2018 through November 30, 2018 and not less than $16.0 million from December 1, 2018 and continuing at all times thereafter. |  |  |  |  |  |  |  |  |  | Pekin amended its term loan facility by reducing the amount of working capital it is required to maintain to not less than $13.0 million from March 31, 2018 through November 30, 2018 and not less than $16.0 million from December 1, 2018 and continuing at all times thereafter. |  |  |  |  |  |  |
Pacific Ethanol Pekin, Inc [Member] | Credit Agreement [Member] | 1st Farm Credit Services [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Interest rate term |  |  |  |  |  |  | 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] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Interest rate term |  |  |  | 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 ended December 31, 2017. |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Description of debt covenant subsequent |  |  |  | Working capital covenant requirement to $13.0 million for the month ended February 28, 2018. |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Pacific Ethanol Pekin, Inc [Member] | Line of Credit [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt face amount |  |  |  |  |  |  |  |  |  |  | 10,500 |  |  |  |  |  |  |  |
Net assets |  |  |  |  |  |  |  |  |  |  | $ 184,800 |  |  |  |  |  |  |  |
Date of first required principal payment |  |  |  |  |  |  |  |  |  |  | Nov. 15, 2019 |  |  |  |  |  |  |  |
Pacific Ethanol Pekin, Inc [Member] | Line of Credit [Member] | Lender [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt face amount |  |  |  |  |  |  |  |  |  |  | $ 3,500 |  |  |  |  |  | $ 3,500 |  |
Debt maturity date |  |  |  |  |  |  |  |  |  |  | Feb. 20, 2019 |  |  |  |  |  |  |  |
Interest rate term | Interest rate under the facilities by 125 basis points to an annual rate equal to the 30-day LIBOR plus 5.00%. |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Description of maintain working capital | Working capital of not less than $15,000,000 from March 21, 2019 through July15, 2019 and working capital of not less than $30,000,000 from July 15, 2019 and continuing at all times thereafter. |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Description of event of default |  |  |  |  |  |  |  |  |  |  | At which time the waivers will become permanent if Pacific Ethanol Central, LLC (“PE Central”), PE Pekin’s parent, has made a contribution to PE Pekin in an amount equal to $30,000,000, minus the then-existing amount of PE Pekin’s working capital, plus the amount of any accounts receivable owed by PE Central to PE Pekin, plus $12,000,000 (the “PE Central Contribution Amount”). |  |  |  |  |  |  |  |
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 |  |  |  |  |  | $ 3,500 |  |  |  |  |  |  |
Frequency of periodic payments |  |  |  |  |  | Quarterly |  |  |  |  |  |  |  |  |  |  |  |  |
Description payment terms |  |  |  |  |  | Principal payment of $4.5 million at maturity on August 20, 2021 |  |  |  |  |  |  |  |  |  |  |  |  |
Pacific Aurora Line of Credit [Member] | Line of Credit [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Deferred financing fees |  |  |  |  |  |  |  |  |  |  |  | $ 300 |  |  |  |  |  |  |
[1] | Amounts derived from the audited consolidated financial statements for the year ended December 31, 2018.

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 Face (par) amount of debt instrument at time of issuance. + References No definition available. + Details
Name: | peix_DebtInstrumentFaceAmount1
Namespace Prefix: | peix_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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 Information pertaining to maintain working capital. + References No definition available. + Details
Name: | peix_DecsriptionOfMaintainWorkingCapital
Namespace Prefix: | peix_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition It represents as a deferred financing fees. + References No definition available. + Details
Name: | peix_DeferredFinancingFees
Namespace Prefix: | peix_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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 Sum of the carrying amounts as of the balance sheet date of all assets that are recognized. Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events. + References Reference 1: 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(11)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -URI http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599 Reference 3: 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)(12)) -URI http://asc.fasb.org/extlink&oid=119400593&loc=d3e572229-122910 + Details
Name: | us-gaap_Assets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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://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(a)(1)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -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://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=6877327&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -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://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(16)) -URI http://asc.fasb.org/extlink&oid=119400593&loc=d3e572229-122910 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=109259400&loc=d3e21475-112644 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=6876686&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=6877327&loc=d3e13212-122682 Reference 5: 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(13)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 6: 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)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -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 + 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://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=114775744&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 Description of the frequency of periodic payments (monthly, quarterly, annual). + 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.22) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -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_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://fasb.org/us-gaap/role/ref/legacyRef -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://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(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/disclosureRef -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 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (bbb)(2) -URI http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258 + 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://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(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://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(a)(3)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -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://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=6877327&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -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://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=114775744&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 Discussion of the facts and amounts pertaining to each failure to comply with an affirmative or negative covenant of a long-term debt instrument, including violating payment terms or an inability to meet certain minimum financial requirements or achieve or maintain certain financial ratios. The discussion would generally be expected to also include whether or not the failure can and will be overcome and a description of the terms of any waivers, including the amount of the waiver and the period of time covered by the waiver, and if reclassification of long-term debt to current has been made in the current balance sheet. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(c)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 10 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=6802200&loc=SL6230698-112601 + Details
Name: | us-gaap_DefaultLongtermDebtDescriptionOfViolationOrEventOfDefault
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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://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=6877327&loc=d3e13212-122682 Reference 2: 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=6876686&loc=d3e534808-122878 Reference 3: 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(16)) -URI http://asc.fasb.org/extlink&oid=119400593&loc=d3e572229-122910 + Details
Name: | us-gaap_LineOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Description of the credit facility's borrowing capacity including discussion of how the borrowing capacity is determined (for example, borrowing capacity based on the amount of current assets). + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)(b)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -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 + Details
Name: | us-gaap_LineOfCreditFacilityBorrowingCapacityDescription
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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://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=6877327&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -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 3: 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(16)) -URI http://asc.fasb.org/extlink&oid=119400593&loc=d3e572229-122910 Reference 4: 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(13)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 5: 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)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 6: 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=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 first payment under the line of credit must be paid, in CCYY-MM-DD format. + 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=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityDateOfFirstRequiredPayment1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition Date the credit facility terminates, in CCYY-MM-DD format. + 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=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://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=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://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=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://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=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://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=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/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=109500613&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=119400593&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=6876686&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=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 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=118932676&loc=d3e3291-108585 + 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_TermLoan1Member
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_BusinessAcquisitionAxis=peix_IllinoisCornProcessingLLCMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=peix_TermLoanMember
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: | srt_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: | 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: | srt_ConsolidatedEntitiesAxis=peix_PacificAgProductsLLCMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_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_LineOfCreditFacilityAxis=peix_LenderMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidatedEntitiesAxis=peix_PacificAuroraLineOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |