Annual report pursuant to Section 13 and 15(d)

12. FAIR VALUE MEASUREMENTS (Details-Significant Assumptions and Fair Value)

v2.4.1.9
12. FAIR VALUE MEASUREMENTS (Details-Significant Assumptions and Fair Value) (USD $)
12 Months Ended
Dec. 31, 2014
Dec. 31, 2013
Significant assumptions used in the valuations    
Fair value (in dollars) $ 1,986,000us-gaap_WarrantsAndRightsOutstanding $ 8,215,000us-gaap_WarrantsAndRightsOutstanding
Original Issuance 09/26/2012    
Significant assumptions used in the valuations    
Exercise price $ 8.85us-gaap_FairValueAssumptionsExercisePrice
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssued20120926Member
 
Volatility 51.00%us-gaap_FairValueAssumptionsExpectedVolatilityRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssued20120926Member
 
Risk free interest rate 0.19%us-gaap_FairValueAssumptionsRiskFreeInterestRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssued20120926Member
 
Term (years) 8 months 26 days  
Discount for Marketability restrictions 37.00%peix_FairValueAssumptionsMarketabilityDiscount
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssued20120926Member
 
Warrants Outstanding 473,000us-gaap_ClassOfWarrantOrRightOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssued20120926Member
 
Fair value (in dollars) 748,000us-gaap_WarrantsAndRightsOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssued20120926Member
 
Original issuance 7/3/2012    
Significant assumptions used in the valuations    
Exercise price $ 6.09us-gaap_FairValueAssumptionsExercisePrice
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveMember
$ 6.09us-gaap_FairValueAssumptionsExercisePrice
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveMember
Volatility 56.10%us-gaap_FairValueAssumptionsExpectedVolatilityRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveMember
61.20%us-gaap_FairValueAssumptionsExpectedVolatilityRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveMember
Risk free interest rate 0.89%us-gaap_FairValueAssumptionsRiskFreeInterestRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveMember
1.27%us-gaap_FairValueAssumptionsRiskFreeInterestRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveMember
Term (years) 2 years 6 months 4 days 3 years 6 months 4 days
Discount for Marketability restrictions 32.80%peix_FairValueAssumptionsMarketabilityDiscount
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveMember
40.20%peix_FairValueAssumptionsMarketabilityDiscount
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveMember
Warrants Outstanding 211,000us-gaap_ClassOfWarrantOrRightOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveMember
1,812,000us-gaap_ClassOfWarrantOrRightOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveMember
Fair value (in dollars) 811,000us-gaap_WarrantsAndRightsOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveMember
3,008,000us-gaap_WarrantsAndRightsOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveMember
Original issuance 12/13/2011    
Significant assumptions used in the valuations    
Exercise price $ 8.43us-gaap_FairValueAssumptionsExercisePrice
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirteenDecemberTwoThousandTwelveMember
$ 8.43us-gaap_FairValueAssumptionsExercisePrice
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirteenDecemberTwoThousandTwelveMember
Volatility 54.30%us-gaap_FairValueAssumptionsExpectedVolatilityRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirteenDecemberTwoThousandTwelveMember
60.40%us-gaap_FairValueAssumptionsExpectedVolatilityRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirteenDecemberTwoThousandTwelveMember
Risk free interest rate 0.67%us-gaap_FairValueAssumptionsRiskFreeInterestRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirteenDecemberTwoThousandTwelveMember
0.78%us-gaap_FairValueAssumptionsRiskFreeInterestRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirteenDecemberTwoThousandTwelveMember
Term (years) 1 year 11 months 12 days 2 years 11 months 12 days
Discount for Marketability restrictions 28.70%peix_FairValueAssumptionsMarketabilityDiscount
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirteenDecemberTwoThousandTwelveMember
37.90%peix_FairValueAssumptionsMarketabilityDiscount
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirteenDecemberTwoThousandTwelveMember
Warrants Outstanding 138,000us-gaap_ClassOfWarrantOrRightOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirteenDecemberTwoThousandTwelveMember
306,000us-gaap_ClassOfWarrantOrRightOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirteenDecemberTwoThousandTwelveMember
Fair value (in dollars) 427,000us-gaap_WarrantsAndRightsOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirteenDecemberTwoThousandTwelveMember
455,000us-gaap_WarrantsAndRightsOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirteenDecemberTwoThousandTwelveMember
Original Issuance 03/28/2013    
Significant assumptions used in the valuations    
Exercise price   $ 7.59us-gaap_FairValueAssumptionsExercisePrice
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnTwentyEightMarchTwoThousandThirteenMember
Volatility   52.40%us-gaap_FairValueAssumptionsExpectedVolatilityRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnTwentyEightMarchTwoThousandThirteenMember
Risk free interest rate   0.13%us-gaap_FairValueAssumptionsRiskFreeInterestRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnTwentyEightMarchTwoThousandThirteenMember
Term (years)   1 year 2 months 12 days
Discount for Marketability restrictions   22.70%peix_FairValueAssumptionsMarketabilityDiscount
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnTwentyEightMarchTwoThousandThirteenMember
Warrants Outstanding   788,000us-gaap_ClassOfWarrantOrRightOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnTwentyEightMarchTwoThousandThirteenMember
Fair value (in dollars)   495,000us-gaap_WarrantsAndRightsOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnTwentyEightMarchTwoThousandThirteenMember
Original Issuance 06/21/2013    
Significant assumptions used in the valuations    
Exercise price   $ 7.59us-gaap_FairValueAssumptionsExercisePrice
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssued20130621Member
Volatility   52.40%us-gaap_FairValueAssumptionsExpectedVolatilityRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssued20130621Member
Risk free interest rate   0.13%us-gaap_FairValueAssumptionsRiskFreeInterestRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssued20130621Member
Term (years)   1 year 2 months 26 days
Discount for Marketability restrictions   22.70%peix_FairValueAssumptionsMarketabilityDiscount
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssued20130621Member
Warrants Outstanding   1,051,000us-gaap_ClassOfWarrantOrRightOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssued20130621Member
Fair value (in dollars)   660,000us-gaap_WarrantsAndRightsOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssued20130621Member
Original issuance 1/11/2013    
Significant assumptions used in the valuations    
Exercise price   $ 6.32us-gaap_FairValueAssumptionsExercisePrice
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnElevenJanuaryTwoThousandThirteenMember
Volatility   63.30%us-gaap_FairValueAssumptionsExpectedVolatilityRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnElevenJanuaryTwoThousandThirteenMember
Risk free interest rate   1.27%us-gaap_FairValueAssumptionsRiskFreeInterestRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnElevenJanuaryTwoThousandThirteenMember
Term (years)   4 years 11 days
Discount for Marketability restrictions   43.80%peix_FairValueAssumptionsMarketabilityDiscount
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnElevenJanuaryTwoThousandThirteenMember
Warrants Outstanding   1,709,000us-gaap_ClassOfWarrantOrRightOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnElevenJanuaryTwoThousandThirteenMember
Fair value (in dollars)   2,892,000us-gaap_WarrantsAndRightsOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnElevenJanuaryTwoThousandThirteenMember
Original issuance 9/26/2012    
Significant assumptions used in the valuations    
Exercise price   $ 8.85us-gaap_FairValueAssumptionsExercisePrice
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnTwentySixSeptemberTwoThousandTwelveMember
Volatility   58.50%us-gaap_FairValueAssumptionsExpectedVolatilityRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnTwentySixSeptemberTwoThousandTwelveMember
Risk free interest rate   0.38%us-gaap_FairValueAssumptionsRiskFreeInterestRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnTwentySixSeptemberTwoThousandTwelveMember
Term (years)   1 year 8 months 26 days
Discount for Marketability restrictions   42.30%peix_FairValueAssumptionsMarketabilityDiscount
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnTwentySixSeptemberTwoThousandTwelveMember
Warrants Outstanding   1,771,000us-gaap_ClassOfWarrantOrRightOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnTwentySixSeptemberTwoThousandTwelveMember
Fair value (in dollars)   702,000us-gaap_WarrantsAndRightsOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnTwentySixSeptemberTwoThousandTwelveMember
Original issuance 7/3/2012 (2nd one)    
Significant assumptions used in the valuations    
Exercise price   $ 5.47us-gaap_FairValueAssumptionsExercisePrice
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveOneMember
Volatility   52.80%us-gaap_FairValueAssumptionsExpectedVolatilityRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveOneMember
Risk free interest rate   0.01%us-gaap_FairValueAssumptionsRiskFreeInterestRate
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveOneMember
Term (years)   4 days
Discount for Marketability restrictions   42.30%peix_FairValueAssumptionsMarketabilityDiscount
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveOneMember
Warrants Outstanding   804,000us-gaap_ClassOfWarrantOrRightOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveOneMember
Fair value (in dollars)   $ 3,000us-gaap_WarrantsAndRightsOutstanding
/ us-gaap_FinancialInstrumentAxis
= peix_WarrantIssuedOnThirdJulyTwoThousandTwelveOneMember