Annual report pursuant to Section 13 and 15(d)

6. DEBT (Details-Long term borrowings)

v2.4.1.9
6. DEBT (Details-Long term borrowings) (USD $)
In Thousands, unless otherwise specified
Dec. 31, 2014
Dec. 31, 2013
Long-term borrowings are summarized as follows    
Plant Owner's third-party term debt $ 17,003us-gaap_MediumTermNotes $ 31,678us-gaap_MediumTermNotes
Senior unsecured notes 0us-gaap_SeniorNotes 13,984us-gaap_SeniorNotes
Note payable to related party 0us-gaap_NotesPayableRelatedPartiesCurrentAndNoncurrent 750us-gaap_NotesPayableRelatedPartiesCurrentAndNoncurrent
Total debt 34,533us-gaap_LongTermDebtAndCapitalLeaseObligations 100,832us-gaap_LongTermDebtAndCapitalLeaseObligations
Less: Unamortized discount on senior unsecured notes 0us-gaap_DebtInstrumentUnamortizedDiscount (1,674)us-gaap_DebtInstrumentUnamortizedDiscount
Long-term Debt, current and non-current 34,533us-gaap_LongTermDebt 100,832us-gaap_LongTermDebt
Less short-term portion 0us-gaap_LongTermDebtCurrent (750)us-gaap_LongTermDebtCurrent
Long-term debt 34,533us-gaap_LongTermDebtNoncurrent 98,408us-gaap_LongTermDebtNoncurrent
Line of Credit [Member] | Kinergy [Member]    
Long-term borrowings are summarized as follows    
Line of credit 17,530us-gaap_LineOfCredit
/ us-gaap_CreditFacilityAxis
= peix_KinergyMember
/ us-gaap_DebtInstrumentAxis
= us-gaap_LineOfCreditMember
19,042us-gaap_LineOfCredit
/ us-gaap_CreditFacilityAxis
= peix_KinergyMember
/ us-gaap_DebtInstrumentAxis
= us-gaap_LineOfCreditMember
Line of Credit [Member] | Plant Owners    
Long-term borrowings are summarized as follows    
Line of credit $ 0us-gaap_LineOfCredit
/ us-gaap_CreditFacilityAxis
= peix_PlantOwnersMember
/ us-gaap_DebtInstrumentAxis
= us-gaap_LineOfCreditMember
$ 35,378us-gaap_LineOfCredit
/ us-gaap_CreditFacilityAxis
= peix_PlantOwnersMember
/ us-gaap_DebtInstrumentAxis
= us-gaap_LineOfCreditMember