<?xml version='1.0' encoding='UTF-8'?>
<FilingSummary>
  <Version>3.3.1.900</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>348</ContextCount>
  <ElementCount>462</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>132</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00000001 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00000002 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00000003 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00000004 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/ConsolidatedStatementsOfOperations</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00000005 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/ConsolidatedStatementsOfComprehensiveIncomeLoss</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00000006 - Statement - CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/ConsolidatedStatementsOfStockholdersEquity</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>00000007 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>00000008 - Disclosure - 1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/OrganizationAndSignificantAccountingPolicies</Role>
      <ShortName>1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>00000009 - Disclosure - 2. PACIFIC ETHANOL CENTRAL PLANTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PacificEthanolCentralPlants</Role>
      <ShortName>2. PACIFIC ETHANOL CENTRAL PLANTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>00000010 - Disclosure - 3. PACIFIC ETHANOL WEST PLANTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PacificEthanolWestPlants</Role>
      <ShortName>3. PACIFIC ETHANOL WEST PLANTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>00000011 - Disclosure - 4. INTERCOMPANY AGREEMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/IntercompanyAgreements</Role>
      <ShortName>4. INTERCOMPANY AGREEMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>00000012 - Disclosure - 5. SEGMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/Segments</Role>
      <ShortName>5. SEGMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>00000013 - Disclosure - 6. PROPERTY AND EQUIPMENT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PropertyAndEquipment</Role>
      <ShortName>6. PROPERTY AND EQUIPMENT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>00000014 - Disclosure - 7. INTANGIBLE ASSETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/IntangibleAssets</Role>
      <ShortName>7. INTANGIBLE ASSETS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>00000015 - Disclosure - 8. DERIVATIVES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/Derivatives</Role>
      <ShortName>8. DERIVATIVES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>00000016 - Disclosure - 9. DEBT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/Debt</Role>
      <ShortName>9. DEBT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>00000017 - Disclosure - 10. PENSION PLANS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PensionPlans</Role>
      <ShortName>10. PENSION PLANS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>00000018 - Disclosure - 11. INCOME TAXES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/IncomeTaxes</Role>
      <ShortName>11. INCOME TAXES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>00000019 - Disclosure - 12. PREFERRED STOCK</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PreferredStock</Role>
      <ShortName>12. PREFERRED STOCK</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>00000020 - Disclosure - 13. COMMON STOCK AND WARRANTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/CommonStockAndWarrants</Role>
      <ShortName>13. COMMON STOCK AND WARRANTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>00000021 - Disclosure - 14. STOCK BASED COMPENSATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/StockBasedCompensation</Role>
      <ShortName>14. STOCK BASED COMPENSATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>00000022 - Disclosure - 15. COMMITMENTS AND CONTINGENCIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/CommitmentsAndContingencies</Role>
      <ShortName>15. COMMITMENTS AND CONTINGENCIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>00000023 - Disclosure - 16. FAIR VALUE MEASUREMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/FairValueMeasurements</Role>
      <ShortName>16. FAIR VALUE MEASUREMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>00000024 - Disclosure - 17. PARENT COMPANY FINANCIALS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/ParentCompanyFinancials</Role>
      <ShortName>17. PARENT COMPANY FINANCIALS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>00000025 - Disclosure - 18. SUBSEQUENT EVENT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/SubsequentEvent</Role>
      <ShortName>18. SUBSEQUENT EVENT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>00000026 - Disclosure - 19. QUARTERLY FINANCIAL DATA (UNAUDITED)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/QuarterlyFinancialData</Role>
      <ShortName>19. QUARTERLY FINANCIAL DATA (UNAUDITED)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>00000027 - Disclosure - 1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/OrganizationAndSignificantAccountingPoliciesPolicies</Role>
      <ShortName>1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>00000028 - Disclosure - 1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/OrganizationAndSignificantAccountingPoliciesTables</Role>
      <ShortName>1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://paceth.com/role/OrganizationAndSignificantAccountingPolicies</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>00000029 - Disclosure - 2. PACIFIC ETHANOL CENTRAL PLANTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PacificEthanolCentralPlantsTables</Role>
      <ShortName>2. PACIFIC ETHANOL CENTRAL PLANTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://paceth.com/role/PacificEthanolCentralPlants</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>00000030 - Disclosure - 5. SEGMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/SegmentsTables</Role>
      <ShortName>5. SEGMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://paceth.com/role/Segments</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>00000031 - Disclosure - 6. PROPERTY AND EQUIPMENT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PropertyAndEquipmentTables</Role>
      <ShortName>6. PROPERTY AND EQUIPMENT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://paceth.com/role/PropertyAndEquipment</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>00000032 - Disclosure - 7. INTANGIBLE ASSETS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/IntangibleAssetsTables</Role>
      <ShortName>7. INTANGIBLE ASSETS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://paceth.com/role/IntangibleAssets</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>00000033 - Disclosure - 8. DERIVATIVES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/DerivativesTables</Role>
      <ShortName>8. DERIVATIVES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://paceth.com/role/Derivatives</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>00000034 - Disclosure - 9. DEBT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/DebtTables</Role>
      <ShortName>9. DEBT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://paceth.com/role/Debt</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>00000035 - Disclosure - 10. PENSION PLANS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PensionPlansTables</Role>
      <ShortName>10. PENSION PLANS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://paceth.com/role/PensionPlans</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>00000036 - Disclosure - 11. INCOME TAXES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/IncomeTaxesTables</Role>
      <ShortName>11. INCOME TAXES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://paceth.com/role/IncomeTaxes</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>00000037 - Disclosure - 12. PREFERRED STOCK (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PreferredStockTables</Role>
      <ShortName>12. PREFERRED STOCK (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://paceth.com/role/PreferredStock</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>00000038 - Disclosure - 13. COMMON STOCK AND WARRANTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/CommonStockAndWarrantsTables</Role>
      <ShortName>13. COMMON STOCK AND WARRANTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://paceth.com/role/CommonStockAndWarrants</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>00000039 - Disclosure - 14. STOCK BASED COMPENSATION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/StockBasedCompensationTables</Role>
      <ShortName>14. STOCK BASED COMPENSATION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://paceth.com/role/StockBasedCompensation</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>00000040 - Disclosure - 15. COMMITMENTS AND CONTINGENCIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/CommitmentsAndContingenciesTables</Role>
      <ShortName>15. COMMITMENTS AND CONTINGENCIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://paceth.com/role/CommitmentsAndContingencies</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>00000041 - Disclosure - 16. FAIR VALUE MEASUREMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/FairValueMeasurementsTables</Role>
      <ShortName>16. FAIR VALUE MEASUREMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://paceth.com/role/FairValueMeasurements</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>00000042 - Disclosure - 17. PARENT COMPANY FINANCIALS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/ParentCompanyFinancialsTables</Role>
      <ShortName>17. PARENT COMPANY FINANCIALS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://paceth.com/role/ParentCompanyFinancials</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>00000043 - Disclosure - 15. QUARTERLY FINANCIAL DATA (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/QuarterlyFinancialDataTables</Role>
      <ShortName>15. QUARTERLY FINANCIAL DATA (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>00000044 - Disclosure - 1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES (Details-Concentration sales)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/OrganizationAndSignificantAccountingPoliciesDetails-concentrationSales</Role>
      <ShortName>1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES (Details-Concentration sales)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/OrganizationAndSignificantAccountingPoliciesTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>00000045 - Disclosure - 1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES (Details-Purchase concentration)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/OrganizationAndSignificantAccountingPoliciesDetails-purchaseConcentration</Role>
      <ShortName>1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES (Details-Purchase concentration)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/OrganizationAndSignificantAccountingPoliciesTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>00000046 - Disclosure - 1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES (Details-Inventories)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/OrganizationAndSignificantAccountingPoliciesDetails-inventories</Role>
      <ShortName>1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES (Details-Inventories)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/OrganizationAndSignificantAccountingPoliciesTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>00000047 - Disclosure - 1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES (Details-Useful Lives)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/OrganizationAndSignificantAccountingPoliciesDetails-usefulLives</Role>
      <ShortName>1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES (Details-Useful Lives)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/OrganizationAndSignificantAccountingPoliciesTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>00000048 - Disclosure - 1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES (Details-EPS computation)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/OrganizationAndSignificantAccountingPoliciesDetails-epsComputation</Role>
      <ShortName>1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES (Details-EPS computation)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/OrganizationAndSignificantAccountingPoliciesTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>00000049 - Disclosure - 1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/OrganizationAndSignificantAccountingPoliciesDetailsNarrative</Role>
      <ShortName>1. ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/OrganizationAndSignificantAccountingPoliciesTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>00000050 - Disclosure - 2. PACIFIC ETHANOL CENTRAL PLANTS (Details - Purchase allocation)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PacificEthanolCentralPlantsDetails-PurchaseAllocation</Role>
      <ShortName>2. PACIFIC ETHANOL CENTRAL PLANTS (Details - Purchase allocation)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/PacificEthanolCentralPlantsTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>00000051 - Disclosure - 2. PACIFIC ETHANOL CENTRAL PLANTS (Details - Pro forma)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PacificEthanolCentralPlantsDetails-ProForma</Role>
      <ShortName>2. PACIFIC ETHANOL CENTRAL PLANTS (Details - Pro forma)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/PacificEthanolCentralPlantsTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>00000052 - Disclosure - 2. PACIFIC ETHANOL CENTRAL PLANTS (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PacificEthanolCentralPlantsDetailsNarrative</Role>
      <ShortName>2. PACIFIC ETHANOL CENTRAL PLANTS (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/PacificEthanolCentralPlantsTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>00000053 - Disclosure - 3. PACIFIC ETHANOL WEST PLANTS (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PacificEthanolWestPlantsDetailsNarrative</Role>
      <ShortName>3. PACIFIC ETHANOL WEST PLANTS (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/PacificEthanolWestPlants</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>00000054 - Disclosure - 4. INTERCOMPANY AGREEMENTS (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/IntercompanyAgreementsDetailsNarrative</Role>
      <ShortName>4. INTERCOMPANY AGREEMENTS (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/IntercompanyAgreements</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>00000055 - Disclosure - 5. SEGMENTS (Details - Income Statement)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/SegmentsDetails-IncomeStatement</Role>
      <ShortName>5. SEGMENTS (Details - Income Statement)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/SegmentsTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>00000056 - Disclosure - 5. SEGMENTS (Details - Assets)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/SegmentsDetails-Assets</Role>
      <ShortName>5. SEGMENTS (Details - Assets)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/SegmentsTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>00000057 - Disclosure - 5. SEGMENTS (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/SegmentsDetailsNarrative</Role>
      <ShortName>5. SEGMENTS (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/SegmentsTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>00000058 - Disclosure - 6. PROPERTY AND EQUIPMENT (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PropertyAndEquipmentDetails</Role>
      <ShortName>6. PROPERTY AND EQUIPMENT (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/PropertyAndEquipmentTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>00000059 - Disclosure - 6. PROPERTY AND EQUIPMENT (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PropertyAndEquipmentDetailsNarrative</Role>
      <ShortName>6. PROPERTY AND EQUIPMENT (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/PropertyAndEquipmentTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>00000060 - Disclosure - 7. INTANGIBLE ASSETS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/IntangibleAssetsDetails</Role>
      <ShortName>7. INTANGIBLE ASSETS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/IntangibleAssetsTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>00000061 - Disclosure - 7. INTANGIBLE ASSETS (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/IntangibleAssetsDetailsNarrative</Role>
      <ShortName>7. INTANGIBLE ASSETS (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/IntangibleAssetsTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>00000062 - Disclosure - 8. DERIVATIVES (Details - Fair value)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/DerivativesDetails-FairValue</Role>
      <ShortName>8. DERIVATIVES (Details - Fair value)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/DerivativesTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>00000063 - Disclosure - 8. DERIVATIVES (Details - Recognized gains/losses)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/DerivativesDetails-RecognizedGainslosses</Role>
      <ShortName>8. DERIVATIVES (Details - Recognized gains/losses)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/DerivativesTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>00000064 - Disclosure - 8. DERIVATIVES (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/DerivativesDetailsNarrative</Role>
      <ShortName>8. DERIVATIVES (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/DerivativesTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>00000065 - Disclosure - 9. DEBT (Details - Long term borrowings)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/DebtDetails-LongTermBorrowings</Role>
      <ShortName>9. DEBT (Details - Long term borrowings)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/DebtTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>00000066 - Disclosure - 9. DEBT (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/DebtDetailsNarrative</Role>
      <ShortName>9. DEBT (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/DebtTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>00000067 - Disclosure - 10. PENSION PLANS (Details - Retirement Plans)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PensionPlansDetails-RetirementPlans</Role>
      <ShortName>10. PENSION PLANS (Details - Retirement Plans)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/PensionPlansTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>00000068 - Disclosure - 10. PENSION PLANS (Details - Expected Benefit Payments)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PensionPlansDetails-ExpectedBenefitPayments</Role>
      <ShortName>10. PENSION PLANS (Details - Expected Benefit Payments)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/PensionPlansTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>00000069 - Disclosure - 10. PENSION PLANS (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PensionPlansDetailsNarrative</Role>
      <ShortName>10. PENSION PLANS (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/PensionPlansTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>00000070 - Disclosure - 11. INCOME TAXES (Details - Provision)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/IncomeTaxesDetails-Provision</Role>
      <ShortName>11. INCOME TAXES (Details - Provision)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/IncomeTaxesTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>00000071 - Disclosure - 11. INCOME TAXES (Details - Effective rate)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/IncomeTaxesDetails-EffectiveRate</Role>
      <ShortName>11. INCOME TAXES (Details - Effective rate)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/IncomeTaxesTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>00000072 - Disclosure - 11. INCOME TAXES (Details - Deferred tax assets)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/IncomeTaxesDetails-DeferredTaxAssets</Role>
      <ShortName>11. INCOME TAXES (Details - Deferred tax assets)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/IncomeTaxesTables</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>00000073 - Disclosure - 11. INCOME TAXES (Details - Operating loss carryovers)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/IncomeTaxesDetails-OperatingLossCarryovers</Role>
      <ShortName>11. INCOME TAXES (Details - Operating loss carryovers)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/IncomeTaxesTables</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>00000074 - Disclosure - 11. INCOME TAXES (Details - Operating loss carryovers by year)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/IncomeTaxesDetails-OperatingLossCarryoversByYear</Role>
      <ShortName>11. INCOME TAXES (Details - Operating loss carryovers by year)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/IncomeTaxesTables</ParentRole>
      <Position>74</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>00000075 - Disclosure - 11. INCOME TAXES (Details - Tax jurisdictions)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/IncomeTaxesDetails-TaxJurisdictions</Role>
      <ShortName>11. INCOME TAXES (Details - Tax jurisdictions)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/IncomeTaxesTables</ParentRole>
      <Position>75</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>00000076 - Disclosure - 11. INCOME TAXES (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/IncomeTaxesDetailsNarrative</Role>
      <ShortName>11. INCOME TAXES (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/IncomeTaxesTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>00000077 - Disclosure - 12. PREFERRED STOCK (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PreferredStockDetails</Role>
      <ShortName>12. PREFERRED STOCK (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/PreferredStockTables</ParentRole>
      <Position>77</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>00000078 - Disclosure - 12. PREFERRED STOCK (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/PreferredStockDetailsNarrative</Role>
      <ShortName>12. PREFERRED STOCK (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/PreferredStockTables</ParentRole>
      <Position>78</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>00000079 - Disclosure - 13. COMMON STOCK AND WARRANTS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/CommonStockAndWarrantsDetails</Role>
      <ShortName>13. COMMON STOCK AND WARRANTS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/CommonStockAndWarrantsTables</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>00000080 - Disclosure - 13. COMMON STOCK AND WARRANTS (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/CommonStockAndWarrantsDetailsNarrative</Role>
      <ShortName>13. COMMON STOCK AND WARRANTS (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/CommonStockAndWarrantsTables</ParentRole>
      <Position>80</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>00000081 - Disclosure - 14. STOCK-BASED COMPENSATION (Details - Option Activity)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/Stock-basedCompensationDetails-OptionActivity</Role>
      <ShortName>14. STOCK-BASED COMPENSATION (Details - Option Activity)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>00000082 - Disclosure - 14. STOCK-BASED COMPENSATION (Detail - Options Outstanding and Exercisable)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/Stock-basedCompensationDetail-OptionsOutstandingAndExercisable</Role>
      <ShortName>14. STOCK-BASED COMPENSATION (Detail - Options Outstanding and Exercisable)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>00000083 - Disclosure - 14. STOCK-BASED COMPENSATION (Details - Restricted Stock Activity)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/Stock-basedCompensationDetails-RestrictedStockActivity</Role>
      <ShortName>14. STOCK-BASED COMPENSATION (Details - Restricted Stock Activity)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>00000084 - Disclosure - 14. STOCK-BASED COMPENSATION (Details - Stock based compensation expense)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/Stock-basedCompensationDetails-StockBasedCompensationExpense</Role>
      <ShortName>14. STOCK-BASED COMPENSATION (Details - Stock based compensation expense)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>00000085 - Disclosure - 14. STOCK-BASED COMPENSATION (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/Stock-basedCompensationDetailsNarrative</Role>
      <ShortName>14. STOCK-BASED COMPENSATION (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>00000086 - Disclosure - 15. COMMITMENTS AND CONTINGENCIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/CommitmentsAndContingenciesDetails</Role>
      <ShortName>15. COMMITMENTS AND CONTINGENCIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/CommitmentsAndContingenciesTables</ParentRole>
      <Position>86</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>00000087 - Disclosure - 15. COMMITMENTS AND CONTINGENCIES (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/CommitmentsAndContingenciesDetailsNarrative</Role>
      <ShortName>15. COMMITMENTS AND CONTINGENCIES (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/CommitmentsAndContingenciesTables</ParentRole>
      <Position>87</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>00000088 - Disclosure - 16. FAIR VALUE MEASUREMENTS (Details - Significant Assumptions and Fair Value)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/FairValueMeasurementsDetails-SignificantAssumptionsAndFairValue</Role>
      <ShortName>16. FAIR VALUE MEASUREMENTS (Details - Significant Assumptions and Fair Value)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>88</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>00000089 - Disclosure - 16. FAIR VALUE MEASUREMENTS (Details - Other derivatives)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/FairValueMeasurementsDetails-OtherDerivatives</Role>
      <ShortName>16. FAIR VALUE MEASUREMENTS (Details - Other derivatives)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>89</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>00000090 - Disclosure - 16. FAIR VALUE MEASUREMENTS (Details - Level 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/FairValueMeasurementsDetails-Level3</Role>
      <ShortName>16. FAIR VALUE MEASUREMENTS (Details - Level 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>90</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>00000091 - Disclosure - 17. PARENT COMPANY FINANCIALS (Details - Balance Sheet)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/ParentCompanyFinancialsDetails-BalanceSheet</Role>
      <ShortName>17. PARENT COMPANY FINANCIALS (Details - Balance Sheet)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/ParentCompanyFinancialsTables</ParentRole>
      <Position>91</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>00000092 - Disclosure - 17. PARENT COMPANY FINANCIALS (Details - Statement of Operations)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/ParentCompanyFinancialsDetails-StatementOfOperations</Role>
      <ShortName>17. PARENT COMPANY FINANCIALS (Details - Statement of Operations)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/ParentCompanyFinancialsTables</ParentRole>
      <Position>92</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>00000093 - Disclosure - 17. PARENT COMPANY FINANCIALS (Details - Statements of Cash Flows)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/ParentCompanyFinancialsDetails-StatementsOfCashFlows</Role>
      <ShortName>17. PARENT COMPANY FINANCIALS (Details - Statements of Cash Flows)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/ParentCompanyFinancialsTables</ParentRole>
      <Position>93</Position>
    </Report>
    <Report instance="peix-20151231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>00000094 - Disclosure - 19. QUARTERLY FINANCIAL DATA (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://paceth.com/role/QuarterlyFinancialDataDetails</Role>
      <ShortName>19. QUARTERLY FINANCIAL DATA (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://paceth.com/role/QuarterlyFinancialData</ParentRole>
      <Position>94</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>peix-20151231.xml</File>
    <File>peix-20151231.xsd</File>
    <File>peix-20151231_cal.xml</File>
    <File>peix-20151231_def.xml</File>
    <File>peix-20151231_lab.xml</File>
    <File>peix-20151231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies/>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
