<?xml version="1.0" encoding="US-ASCII" standalone="no"?>
    <!-- Field: Doc-Info; Name: Generator; Value: GoFiler Complete; Version: 4.0a -->
    <!-- Field: Doc-Info; Name: VendorURI; Value: http://www.novaworks.co -->
    <!-- Field: Doc-Info; Name: Source; Value: paceth_10k%2D123113.xfr; Date: 2014%2D03%2D31T19:31:53 -->
    <!-- Field: Doc-Info; Name: Status; Value: 0x00000000 -->
<link:linkbase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrli="http://www.xbrl.org/2003/instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
    <link:roleRef roleURI="http://paceth.com/role/DocumentAndEntityInformation" xlink:href="peix-20131231.xsd#DocumentAndEntityInformation" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/ConsolidatedBalanceSheets" xlink:href="peix-20131231.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="peix-20131231.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/ConsolidatedStatementsOfOperations" xlink:href="peix-20131231.xsd#ConsolidatedStatementsOfOperations" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/ConsolidatedStatementsOfStockholdersEquity" xlink:href="peix-20131231.xsd#ConsolidatedStatementsOfStockholdersEquity" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="peix-20131231.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/OrganizationAndBasisOfPresentation" xlink:href="peix-20131231.xsd#OrganizationAndBasisOfPresentation" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/PacificEthanolPlants" xlink:href="peix-20131231.xsd#PacificEthanolPlants" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/PropertyAndEquipment" xlink:href="peix-20131231.xsd#PropertyAndEquipment" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/IntangibleAssets" xlink:href="peix-20131231.xsd#IntangibleAssets" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/Derivatives" xlink:href="peix-20131231.xsd#Derivatives" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/Debt" xlink:href="peix-20131231.xsd#Debt" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/IncomeTaxes" xlink:href="peix-20131231.xsd#IncomeTaxes" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/PreferredStock" xlink:href="peix-20131231.xsd#PreferredStock" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/CommonStockAndWarrants" xlink:href="peix-20131231.xsd#CommonStockAndWarrants" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/StockBasedCompensation" xlink:href="peix-20131231.xsd#StockBasedCompensation" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/CommitmentsAndContingencies" xlink:href="peix-20131231.xsd#CommitmentsAndContingencies" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/FairValueMeasurements" xlink:href="peix-20131231.xsd#FairValueMeasurements" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/RelatedPartyTransactions" xlink:href="peix-20131231.xsd#RelatedPartyTransactions" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/SubsequentEvents" xlink:href="peix-20131231.xsd#SubsequentEvents" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/OrganizationAndBasisOfPresentationPolicies" xlink:href="peix-20131231.xsd#OrganizationAndBasisOfPresentationPolicies" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/OrganizationAndBasisOfPresentationTables" xlink:href="peix-20131231.xsd#OrganizationAndBasisOfPresentationTables" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/PacificEthanolPlantsTables" xlink:href="peix-20131231.xsd#PacificEthanolPlantsTables" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/PropertyAndEquipmentTables" xlink:href="peix-20131231.xsd#PropertyAndEquipmentTables" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/IntangibleAssetsTables" xlink:href="peix-20131231.xsd#IntangibleAssetsTables" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/DerivativesTables" xlink:href="peix-20131231.xsd#DerivativesTables" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/DebtTables" xlink:href="peix-20131231.xsd#DebtTables" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/IncomeTaxesTables" xlink:href="peix-20131231.xsd#IncomeTaxesTables" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/PreferredStockTables" xlink:href="peix-20131231.xsd#PreferredStockTables" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/CommonStockAndWarrantsTables" xlink:href="peix-20131231.xsd#CommonStockAndWarrantsTables" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/StockBasedCompensationTables" xlink:href="peix-20131231.xsd#StockBasedCompensationTables" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/CommitmentsAndContingenciesTables" xlink:href="peix-20131231.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/FairValueMeasurementsTables" xlink:href="peix-20131231.xsd#FairValueMeasurementsTables" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/OrganizationAndBasisOfPresentationDetails-ConcentrationSales" xlink:href="peix-20131231.xsd#OrganizationAndBasisOfPresentationDetails-ConcentrationSales" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/OrganizationAndBasisOfPresentationDetails-PurchaseConcentration" xlink:href="peix-20131231.xsd#OrganizationAndBasisOfPresentationDetails-PurchaseConcentration" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/OrganizationAndBasisOfPresentationDetails-Inventories" xlink:href="peix-20131231.xsd#OrganizationAndBasisOfPresentationDetails-Inventories" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/OrganizationAndBasisOfPresentationDetails-UsefulLives" xlink:href="peix-20131231.xsd#OrganizationAndBasisOfPresentationDetails-UsefulLives" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/OrganizationAndBasisOfPresentationDetails-EpsComputation" xlink:href="peix-20131231.xsd#OrganizationAndBasisOfPresentationDetails-EpsComputation" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/OrganizationAndBasisOfPresentationDetailsNarrative" xlink:href="peix-20131231.xsd#OrganizationAndBasisOfPresentationDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/VariableInterestEntityDetails" xlink:href="peix-20131231.xsd#VariableInterestEntityDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/PacificEthanolPlantsDetailsNarrative" xlink:href="peix-20131231.xsd#PacificEthanolPlantsDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/PropertyAndEquipmentDetails" xlink:href="peix-20131231.xsd#PropertyAndEquipmentDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/PropertyAndEquipmentDetailsNarrative" xlink:href="peix-20131231.xsd#PropertyAndEquipmentDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/IntangibleAssetsDetails" xlink:href="peix-20131231.xsd#IntangibleAssetsDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/IntangibleAssetsDetailsNarrative" xlink:href="peix-20131231.xsd#IntangibleAssetsDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/DerivativesDetails-FairValue" xlink:href="peix-20131231.xsd#DerivativesDetails-FairValue" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/DerivativesDetails-RecognizedGainslosses" xlink:href="peix-20131231.xsd#DerivativesDetails-RecognizedGainslosses" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/DerivativesDetailsNarrative" xlink:href="peix-20131231.xsd#DerivativesDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/DebtDetails-LongTermBorrowings" xlink:href="peix-20131231.xsd#DebtDetails-LongTermBorrowings" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/DebtDetails-FutureDebtPayments" xlink:href="peix-20131231.xsd#DebtDetails-FutureDebtPayments" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/DebtDetailsNarrative" xlink:href="peix-20131231.xsd#DebtDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/IncomeTaxesDetails-EffectiveRate" xlink:href="peix-20131231.xsd#IncomeTaxesDetails-EffectiveRate" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/IncomeTaxesDetails-DeferredTaxAssets" xlink:href="peix-20131231.xsd#IncomeTaxesDetails-DeferredTaxAssets" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/IncomeTaxesDetails-TaxJurisdictions" xlink:href="peix-20131231.xsd#IncomeTaxesDetails-TaxJurisdictions" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/IncomeTaxesDetailsNarrative" xlink:href="peix-20131231.xsd#IncomeTaxesDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/PreferredStockDetails" xlink:href="peix-20131231.xsd#PreferredStockDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/CommonStockAndWarrantsDetails" xlink:href="peix-20131231.xsd#CommonStockAndWarrantsDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/Stock-BasedCompensationDetails-OptionActivity" xlink:href="peix-20131231.xsd#Stock-BasedCompensationDetails-OptionActivity" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/Stock-BasedCompensationDetail-OptionsOutstandingAndExercisable" xlink:href="peix-20131231.xsd#Stock-BasedCompensationDetail-OptionsOutstandingAndExercisable" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/Stock-BasedCompensationDetails-RestrictedStockActivity" xlink:href="peix-20131231.xsd#Stock-BasedCompensationDetails-RestrictedStockActivity" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/Stock-BasedCompensationDetails-StockBasedCompensationExpense" xlink:href="peix-20131231.xsd#Stock-BasedCompensationDetails-StockBasedCompensationExpense" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/Stock-BasedCompensationDetailsNarrative" xlink:href="peix-20131231.xsd#Stock-BasedCompensationDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/CommitmentsAndContingenciesDetails" xlink:href="peix-20131231.xsd#CommitmentsAndContingenciesDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/CommitmentsAndContingenciesDetailsNarrative" xlink:href="peix-20131231.xsd#CommitmentsAndContingenciesDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/FairValueMeasurementsDetails" xlink:href="peix-20131231.xsd#FairValueMeasurementsDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/FairValueMeasurementsDetails-OtherDerivatives" xlink:href="peix-20131231.xsd#FairValueMeasurementsDetails-OtherDerivatives" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/FairValueMeasurementsDetails-Level3" xlink:href="peix-20131231.xsd#FairValueMeasurementsDetails-Level3" xlink:type="simple" />
    <link:roleRef roleURI="http://paceth.com/role/RelatedPartyTransactionsDetailsNarrative" xlink:href="peix-20131231.xsd#RelatedPartyTransactionsDetailsNarrative" xlink:type="simple" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/DocumentAndEntityInformation" xlink:title="00000001 - Document - Document and Entity Information" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/ConsolidatedBalanceSheets" xlink:title="00000002 - Statement - CONSOLIDATED BALANCE SHEETS">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaapAssetsCurrent" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaapCashAndCashEquivalentsAtCarryingValue" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsCurrent" xlink:to="loc_us-gaapCashAndCashEquivalentsAtCarryingValue" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaapAccountsReceivableNetCurrent" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsCurrent" xlink:to="loc_us-gaapAccountsReceivableNetCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaapInventoryNet" />
      <link:calculationArc order="300" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsCurrent" xlink:to="loc_us-gaapInventoryNet" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_OtherAssetsCurrent" xlink:label="loc_us-gaapOtherAssetsCurrent" />
      <link:calculationArc order="400" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsCurrent" xlink:to="loc_us-gaapOtherAssetsCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaapPrepaidExpenseAndOtherAssetsCurrent" />
      <link:calculationArc order="500" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsCurrent" xlink:to="loc_us-gaapPrepaidExpenseAndOtherAssetsCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaapOtherAssets" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaapIntangibleAssetsNetExcludingGoodwill" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOtherAssets" xlink:to="loc_us-gaapIntangibleAssetsNetExcludingGoodwill" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaapOtherAssetsNoncurrent" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOtherAssets" xlink:to="loc_us-gaapOtherAssetsNoncurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaapAssets" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssets" xlink:to="loc_us-gaapAssetsCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaapPropertyPlantAndEquipmentNet" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssets" xlink:to="loc_us-gaapPropertyPlantAndEquipmentNet" xlink:type="arc" weight="1" />
      <link:calculationArc order="300" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssets" xlink:to="loc_us-gaapOtherAssets" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaapLiabilitiesCurrent" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="loc_us-gaapAccountsPayableCurrent" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesCurrent" xlink:to="loc_us-gaapAccountsPayableCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaapAccruedLiabilitiesCurrent" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesCurrent" xlink:to="loc_us-gaapAccruedLiabilitiesCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaapLongTermDebtCurrent" />
      <link:calculationArc order="300" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesCurrent" xlink:to="loc_us-gaapLongTermDebtCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_CapitalLeaseObligationsCurrent" xlink:label="loc_us-gaapCapitalLeaseObligationsCurrent" />
      <link:calculationArc order="400" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesCurrent" xlink:to="loc_us-gaapCapitalLeaseObligationsCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_OtherLiabilitiesCurrent" xlink:label="loc_us-gaapOtherLiabilitiesCurrent" />
      <link:calculationArc order="500" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesCurrent" xlink:to="loc_us-gaapOtherLiabilitiesCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaapLiabilities" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilities" xlink:to="loc_us-gaapLiabilitiesCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaapLongTermDebtNoncurrent" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilities" xlink:to="loc_us-gaapLongTermDebtNoncurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaapOtherLiabilitiesNoncurrent" />
      <link:calculationArc order="300" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilities" xlink:to="loc_us-gaapOtherLiabilitiesNoncurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_CapitalLeaseObligationsNoncurrent" xlink:label="loc_us-gaapCapitalLeaseObligationsNoncurrent" />
      <link:calculationArc order="400" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilities" xlink:to="loc_us-gaapCapitalLeaseObligationsNoncurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_DerivativeLiabilitiesNoncurrent" xlink:label="loc_us-gaapDerivativeLiabilitiesNoncurrent" />
      <link:calculationArc order="500" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilities" xlink:to="loc_us-gaapDerivativeLiabilitiesNoncurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_DividendsPayableCurrentAndNoncurrent" xlink:label="loc_us-gaapDividendsPayableCurrentAndNoncurrent" />
      <link:calculationArc order="600" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilities" xlink:to="loc_us-gaapDividendsPayableCurrentAndNoncurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaapStockholdersEquity" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaapPreferredStockValue" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquity" xlink:to="loc_us-gaapPreferredStockValue" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaapCommonStockValue" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquity" xlink:to="loc_us-gaapCommonStockValue" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaapAdditionalPaidInCapital" />
      <link:calculationArc order="300" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquity" xlink:to="loc_us-gaapAdditionalPaidInCapital" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaapRetainedEarningsAccumulatedDeficit" />
      <link:calculationArc order="400" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquity" xlink:to="loc_us-gaapRetainedEarningsAccumulatedDeficit" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:to="loc_us-gaapStockholdersEquity" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_MinorityInterestInJointVentures" xlink:label="loc_us-gaapMinorityInterestInJointVentures" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:to="loc_us-gaapMinorityInterestInJointVentures" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaapLiabilitiesAndStockholdersEquity" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesAndStockholdersEquity" xlink:to="loc_us-gaapLiabilities" xlink:type="arc" weight="1" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesAndStockholdersEquity" xlink:to="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:type="arc" weight="1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:title="00000003 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/ConsolidatedStatementsOfOperations" xlink:title="00000004 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaapGrossProfit" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_SalesRevenueNet" xlink:label="loc_us-gaapSalesRevenueNet" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapGrossProfit" xlink:to="loc_us-gaapSalesRevenueNet" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_CostOfGoodsSold" xlink:label="loc_us-gaapCostOfGoodsSold" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapGrossProfit" xlink:to="loc_us-gaapCostOfGoodsSold" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaapOperatingIncomeLoss" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOperatingIncomeLoss" xlink:to="loc_us-gaapGrossProfit" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense" xlink:label="loc_us-gaapSellingGeneralAndAdministrativeExpense" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOperatingIncomeLoss" xlink:to="loc_us-gaapSellingGeneralAndAdministrativeExpense" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="loc_us-gaapOperatingIncomeLoss" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaapInterestExpense" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="loc_us-gaapInterestExpense" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_OtherGeneralExpense" xlink:label="loc_us-gaapOtherGeneralExpense" />
      <link:calculationArc order="300" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="loc_us-gaapOtherGeneralExpense" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt" xlink:label="loc_us-gaapGainsLossesOnExtinguishmentOfDebt" />
      <link:calculationArc order="400" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="loc_us-gaapGainsLossesOnExtinguishmentOfDebt" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_FairValueAdjustmentOfWarrants" xlink:label="loc_us-gaapFairValueAdjustmentOfWarrants" />
      <link:calculationArc order="500" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="loc_us-gaapFairValueAdjustmentOfWarrants" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaapProfitLoss" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapProfitLoss" xlink:to="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaapIncomeTaxExpenseBenefit" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapProfitLoss" xlink:to="loc_us-gaapIncomeTaxExpenseBenefit" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaapNetIncomeLoss" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetIncomeLoss" xlink:to="loc_us-gaapProfitLoss" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsAttributableToNoncontrollingEntity" xlink:label="loc_us-gaapIncomeLossFromContinuingOperationsAttributableToNoncontrollingEntity" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetIncomeLoss" xlink:to="loc_us-gaapIncomeLossFromContinuingOperationsAttributableToNoncontrollingEntity" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaapNetIncomeLossAvailableToCommonStockholdersBasic" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetIncomeLossAvailableToCommonStockholdersBasic" xlink:to="loc_us-gaapNetIncomeLoss" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_DividendsPreferredStock" xlink:label="loc_us-gaapDividendsPreferredStock" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetIncomeLossAvailableToCommonStockholdersBasic" xlink:to="loc_us-gaapDividendsPreferredStock" xlink:type="arc" weight="-1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/ConsolidatedStatementsOfStockholdersEquity" xlink:title="00000005 - Statement - CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/ConsolidatedStatementsOfCashFlows" xlink:title="00000006 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:label="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaapProfitLoss" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapProfitLoss" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="peix-20131231.xsd#peix_FairValueAdjustmentOfWarrantsCashFlow" xlink:label="loc_peixFairValueAdjustmentOfWarrantsCashFlow" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_peixFairValueAdjustmentOfWarrantsCashFlow" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt" xlink:label="loc_us-gaapGainsLossesOnExtinguishmentOfDebt" />
      <link:calculationArc order="300" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapGainsLossesOnExtinguishmentOfDebt" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_InventoryWriteDown" xlink:label="loc_us-gaapInventoryWriteDown" />
      <link:calculationArc order="400" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapInventoryWriteDown" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1" xlink:label="loc_us-gaapChangeInUnrealizedGainLossOnFairValueHedgingInstruments1" />
      <link:calculationArc order="500" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapChangeInUnrealizedGainLossOnFairValueHedgingInstruments1" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts" xlink:label="loc_us-gaapAmortizationOfFinancingCostsAndDiscounts" />
      <link:calculationArc order="600" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapAmortizationOfFinancingCostsAndDiscounts" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_AmortizationOfDebtDiscountPremium" xlink:label="loc_us-gaapAmortizationOfDebtDiscountPremium" />
      <link:calculationArc order="700" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapAmortizationOfDebtDiscountPremium" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_OtherNoncashExpense" xlink:label="loc_us-gaapOtherNoncashExpense" />
      <link:calculationArc order="800" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapOtherNoncashExpense" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_ProvisionForDoubtfulAccounts" xlink:label="loc_us-gaapProvisionForDoubtfulAccounts" />
      <link:calculationArc order="900" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapProvisionForDoubtfulAccounts" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="peix-20131231.xsd#peix_InterestExpenseAddedToPlantOwnersDebt" xlink:label="loc_peixInterestExpenseAddedToPlantOwnersDebt" />
      <link:calculationArc order="1000" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_peixInterestExpenseAddedToPlantOwnersDebt" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="peix-20131231.xsd#peix_InterestOnConvertibleDebtPaidWithStock" xlink:label="loc_peixInterestOnConvertibleDebtPaidWithStock" />
      <link:calculationArc order="1100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_peixInterestOnConvertibleDebtPaidWithStock" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable" xlink:label="loc_us-gaapIncreaseDecreaseInAccountsReceivable" />
      <link:calculationArc order="1200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapIncreaseDecreaseInAccountsReceivable" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_IncreaseDecreaseInInventories" xlink:label="loc_us-gaapIncreaseDecreaseInInventories" />
      <link:calculationArc order="1300" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapIncreaseDecreaseInInventories" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" xlink:label="loc_us-gaapIncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" />
      <link:calculationArc order="1400" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapIncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_IncreaseDecreaseInOtherCurrentAssets" xlink:label="loc_us-gaapIncreaseDecreaseInOtherCurrentAssets" />
      <link:calculationArc order="1500" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapIncreaseDecreaseInOtherCurrentAssets" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities" xlink:label="loc_us-gaapIncreaseDecreaseInAccountsPayableAndAccruedLiabilities" />
      <link:calculationArc order="1600" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapIncreaseDecreaseInAccountsPayableAndAccruedLiabilities" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_DepreciationAndAmortization" xlink:label="loc_us-gaapDepreciationAndAmortization" />
      <link:calculationArc order="1700" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapDepreciationAndAmortization" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations" xlink:label="loc_us-gaapNetCashProvidedByUsedInInvestingActivitiesContinuingOperations" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaapPaymentsToAcquirePropertyPlantAndEquipment" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivitiesContinuingOperations" xlink:to="loc_us-gaapPaymentsToAcquirePropertyPlantAndEquipment" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesAndInterestInAffiliates" xlink:label="loc_us-gaapPaymentsToAcquireBusinessesAndInterestInAffiliates" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivitiesContinuingOperations" xlink:to="loc_us-gaapPaymentsToAcquireBusinessesAndInterestInAffiliates" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:label="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_ProceedsFromSecuredNotesPayable" xlink:label="loc_us-gaapProceedsFromSecuredNotesPayable" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:to="loc_us-gaapProceedsFromSecuredNotesPayable" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_ProceedsFromNotesPayable" xlink:label="loc_us-gaapProceedsFromNotesPayable" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:to="loc_us-gaapProceedsFromNotesPayable" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_ProceedsFromWarrantExercises" xlink:label="loc_us-gaapProceedsFromWarrantExercises" />
      <link:calculationArc order="300" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:to="loc_us-gaapProceedsFromWarrantExercises" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="peix-20131231.xsd#peix_NetProceedsFromSalesOfCommonStockAndWarrants" xlink:label="loc_peixNetProceedsFromSalesOfCommonStockAndWarrants" />
      <link:calculationArc order="400" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:to="loc_peixNetProceedsFromSalesOfCommonStockAndWarrants" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_ProceedsFromOtherDebt" xlink:label="loc_us-gaapProceedsFromOtherDebt" />
      <link:calculationArc order="500" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:to="loc_us-gaapProceedsFromOtherDebt" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_RepaymentsOfOtherDebt" xlink:label="loc_us-gaapRepaymentsOfOtherDebt" />
      <link:calculationArc order="600" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:to="loc_us-gaapRepaymentsOfOtherDebt" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="peix-20131231.xsd#peix_ParentPurchasesOfPlantOwnersDebt" xlink:label="loc_peixParentPurchasesOfPlantOwnersDebt" />
      <link:calculationArc order="700" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:to="loc_peixParentPurchasesOfPlantOwnersDebt" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_ProceedsFromRepaymentsOfLinesOfCredit" xlink:label="loc_us-gaapProceedsFromRepaymentsOfLinesOfCredit" />
      <link:calculationArc order="800" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:to="loc_us-gaapProceedsFromRepaymentsOfLinesOfCredit" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_RepaymentsOfSeniorDebt" xlink:label="loc_us-gaapRepaymentsOfSeniorDebt" />
      <link:calculationArc order="900" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:to="loc_us-gaapRepaymentsOfSeniorDebt" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_DebtIssuanceCosts" xlink:label="loc_us-gaapDebtIssuanceCosts" />
      <link:calculationArc order="1000" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:to="loc_us-gaapDebtIssuanceCosts" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock" xlink:label="loc_us-gaapPaymentsOfDividendsPreferredStockAndPreferenceStock" />
      <link:calculationArc order="1100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:to="loc_us-gaapPaymentsOfDividendsPreferredStockAndPreferenceStock" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_RepaymentsOfDebtAndCapitalLeaseObligations" xlink:label="loc_us-gaapRepaymentsOfDebtAndCapitalLeaseObligations" />
      <link:calculationArc order="1200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:to="loc_us-gaapRepaymentsOfDebtAndCapitalLeaseObligations" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:label="loc_us-gaapCashAndCashEquivalentsPeriodIncreaseDecrease" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCashAndCashEquivalentsPeriodIncreaseDecrease" xlink:to="loc_us-gaapNetCashProvidedByUsedInInvestingActivitiesContinuingOperations" xlink:type="arc" weight="1" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCashAndCashEquivalentsPeriodIncreaseDecrease" xlink:to="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:type="arc" weight="1" />
      <link:calculationArc order="300" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCashAndCashEquivalentsPeriodIncreaseDecrease" xlink:to="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:type="arc" weight="1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/OrganizationAndBasisOfPresentation" xlink:title="00000007 - Disclosure - 1. ORGANIZATION AND BASIS OF PRESENTATION" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/PacificEthanolPlants" xlink:title="00000008 - Disclosure - 2. PACIFIC ETHANOL PLANTS" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/PropertyAndEquipment" xlink:title="00000009 - Disclosure - 3. PROPERTY AND EQUIPMENT" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/IntangibleAssets" xlink:title="00000010 - Disclosure - 4. INTANGIBLE ASSETS" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/Derivatives" xlink:title="00000011 - Disclosure - 5. DERIVATIVES" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/Debt" xlink:title="00000012 - Disclosure - 6. DEBT" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/IncomeTaxes" xlink:title="00000013 - Disclosure - 7. INCOME TAXES" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/PreferredStock" xlink:title="00000014 - Disclosure - 8. PREFERRED STOCK" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/CommonStockAndWarrants" xlink:title="00000015 - Disclosure - 9. COMMON STOCK AND WARRANTS" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/StockBasedCompensation" xlink:title="00000016 - Disclosure - 10. STOCK BASED COMPENSATION" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/CommitmentsAndContingencies" xlink:title="00000017 - Disclosure - 11. COMMITMENTS AND CONTINGENCIES" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/FairValueMeasurements" xlink:title="00000018 - Disclosure - 12. FAIR VALUE MEASUREMENTS" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/RelatedPartyTransactions" xlink:title="00000019 - Disclosure - 13. RELATED PARTY TRANSACTIONS" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/SubsequentEvents" xlink:title="00000020 - Disclosure - 14. SUBSEQUENT EVENTS" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/OrganizationAndBasisOfPresentationPolicies" xlink:title="00000021 - Disclosure - 1. ORGANIZATION AND BASIS OF PRESENTATION (Policies)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/OrganizationAndBasisOfPresentationTables" xlink:title="00000022 - Disclosure - 1. ORGANIZATION AND BASIS OF PRESENTATION (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/PacificEthanolPlantsTables" xlink:title="00000023 - Disclosure - 2. PACIFIC ETHANOL PLANTS (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/PropertyAndEquipmentTables" xlink:title="00000024 - Disclosure - 3. PROPERTY AND EQUIPMENT (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/IntangibleAssetsTables" xlink:title="00000025 - Disclosure - 4. INTANGIBLE ASSETS (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/DerivativesTables" xlink:title="00000026 - Disclosure - 5. DERIVATIVES (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/DebtTables" xlink:title="00000027 - Disclosure - 6. DEBT (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/IncomeTaxesTables" xlink:title="00000028 - Disclosure - 7. INCOME TAXES (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/PreferredStockTables" xlink:title="00000029 - Disclosure - 8. PREFERRED STOCK (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/CommonStockAndWarrantsTables" xlink:title="00000030 - Disclosure - 9. COMMON STOCK AND WARRANTS (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/StockBasedCompensationTables" xlink:title="00000031 - Disclosure - 10. STOCK BASED COMPENSATION (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/CommitmentsAndContingenciesTables" xlink:title="00000032 - Disclosure - 11. COMMITMENTS AND CONTINGENCIES (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/FairValueMeasurementsTables" xlink:title="00000033 - Disclosure - 12. FAIR VALUE MEASUREMENTS (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/OrganizationAndBasisOfPresentationDetails-ConcentrationSales" xlink:title="00000034 - Disclosure - 1. ORGANIZATION AND BASIS OF PRESENTATION (Details-Concentration sales)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/OrganizationAndBasisOfPresentationDetails-PurchaseConcentration" xlink:title="00000035 - Disclosure - 1. ORGANIZATION AND BASIS OF PRESENTATION (Details-Purchase concentration)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/OrganizationAndBasisOfPresentationDetails-Inventories" xlink:title="00000036 - Disclosure - 1. ORGANIZATION AND BASIS OF PRESENTATION (Details-Inventories)">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaapInventoryNet" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_InventoryFinishedGoods" xlink:label="loc_us-gaapInventoryFinishedGoods" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInventoryNet" xlink:to="loc_us-gaapInventoryFinishedGoods" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_InventoryRawMaterials" xlink:label="loc_us-gaapInventoryRawMaterials" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInventoryNet" xlink:to="loc_us-gaapInventoryRawMaterials" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_InventoryWorkInProcess" xlink:label="loc_us-gaapInventoryWorkInProcess" />
      <link:calculationArc order="300" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInventoryNet" xlink:to="loc_us-gaapInventoryWorkInProcess" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_OtherInventory" xlink:label="loc_us-gaapOtherInventory" />
      <link:calculationArc order="400" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInventoryNet" xlink:to="loc_us-gaapOtherInventory" xlink:type="arc" weight="1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/OrganizationAndBasisOfPresentationDetails-UsefulLives" xlink:title="00000037 - Disclosure - 1. ORGANIZATION AND BASIS OF PRESENTATION (Details-Useful Lives)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/OrganizationAndBasisOfPresentationDetails-EpsComputation" xlink:title="00000038 - Disclosure - 1. ORGANIZATION AND BASIS OF PRESENTATION (Details-EPS computation)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/OrganizationAndBasisOfPresentationDetailsNarrative" xlink:title="00000039 - Disclosure - 1. ORGANIZATION AND BASIS OF PRESENTATION (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/VariableInterestEntityDetails" xlink:title="00000040 - Disclosure - 2. PACIFIC ETHANOL PLANTS (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/PacificEthanolPlantsDetailsNarrative" xlink:title="00000041 - Disclosure - 2. PACIFIC ETHANOL PLANTS (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/PropertyAndEquipmentDetails" xlink:title="00000042 - Disclosure - 3. PROPERTY AND EQUIPMENT (Details)">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaapPropertyPlantAndEquipmentGross" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_MachineryAndEquipmentGross" xlink:label="loc_us-gaapMachineryAndEquipmentGross" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapPropertyPlantAndEquipmentGross" xlink:to="loc_us-gaapMachineryAndEquipmentGross" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_Land" xlink:label="loc_us-gaapLand" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapPropertyPlantAndEquipmentGross" xlink:to="loc_us-gaapLand" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_PropertyPlantAndEquipmentOther" xlink:label="loc_us-gaapPropertyPlantAndEquipmentOther" />
      <link:calculationArc order="300" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapPropertyPlantAndEquipmentGross" xlink:to="loc_us-gaapPropertyPlantAndEquipmentOther" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_ConstructionInProgressGross" xlink:label="loc_us-gaapConstructionInProgressGross" />
      <link:calculationArc order="400" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapPropertyPlantAndEquipmentGross" xlink:to="loc_us-gaapConstructionInProgressGross" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaapPropertyPlantAndEquipmentNet" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapPropertyPlantAndEquipmentNet" xlink:to="loc_us-gaapPropertyPlantAndEquipmentGross" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaapAccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapPropertyPlantAndEquipmentNet" xlink:to="loc_us-gaapAccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:type="arc" weight="-1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/PropertyAndEquipmentDetailsNarrative" xlink:title="00000043 - Disclosure - 3. PROPERTY AND EQUIPMENT (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/IntangibleAssetsDetails" xlink:title="00000044 - Disclosure - 4. INTANGIBLE ASSETS (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/IntangibleAssetsDetailsNarrative" xlink:title="00000045 - Disclosure - 4. INTANGIBLE ASSETS (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/DerivativesDetails-FairValue" xlink:title="00000046 - Disclosure - 5. DERIVATIVES (Details-Fair value)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/DerivativesDetails-RecognizedGainslosses" xlink:title="00000047 - Disclosure - 5. DERIVATIVES (Details-Recognized gains/losses)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/DerivativesDetailsNarrative" xlink:title="00000048 - Disclosure - 5. DERIVATIVES (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/DebtDetails-LongTermBorrowings" xlink:title="00000049 - Disclosure - 6. DEBT (Details-Long term borrowings)">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_BorrowedFunds" xlink:label="loc_us-gaapBorrowedFunds" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_LineOfCredit" xlink:label="loc_us-gaapLineOfCredit" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapBorrowedFunds" xlink:to="loc_us-gaapLineOfCredit" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_SeniorNotes" xlink:label="loc_us-gaapSeniorNotes" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapBorrowedFunds" xlink:to="loc_us-gaapSeniorNotes" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="peix-20131231.xsd#peix_PlantOwnersTermDebtAndAccruedInterest" xlink:label="loc_peixPlantOwnersTermDebtAndAccruedInterest" />
      <link:calculationArc order="300" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapBorrowedFunds" xlink:to="loc_peixPlantOwnersTermDebtAndAccruedInterest" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="peix-20131231.xsd#peix_PlantOwnersOperatingLinesOfCreditAndAccruedInterest" xlink:label="loc_peixPlantOwnersOperatingLinesOfCreditAndAccruedInterest" />
      <link:calculationArc order="400" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapBorrowedFunds" xlink:to="loc_peixPlantOwnersOperatingLinesOfCreditAndAccruedInterest" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_NotesPayableRelatedPartiesCurrentAndNoncurrent" xlink:label="loc_us-gaapNotesPayableRelatedPartiesCurrentAndNoncurrent" />
      <link:calculationArc order="500" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapBorrowedFunds" xlink:to="loc_us-gaapNotesPayableRelatedPartiesCurrentAndNoncurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="peix-20131231.xsd#peix_TotalConsolidatedDebt" xlink:label="loc_peixTotalConsolidatedDebt" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_peixTotalConsolidatedDebt" xlink:to="loc_us-gaapBorrowedFunds" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="peix-20131231.xsd#peix_ParentPurchasedPlantOwnersTermDebt" xlink:label="loc_peixParentPurchasedPlantOwnersTermDebt" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_peixTotalConsolidatedDebt" xlink:to="loc_peixParentPurchasedPlantOwnersTermDebt" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaapLongTermDebt" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLongTermDebt" xlink:to="loc_peixTotalConsolidatedDebt" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="peix-20131231.xsd#peix_UnamortizedDiscountOnSeniorUnsecuredNotes" xlink:label="loc_peixUnamortizedDiscountOnSeniorUnsecuredNotes" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLongTermDebt" xlink:to="loc_peixUnamortizedDiscountOnSeniorUnsecuredNotes" xlink:type="arc" weight="-1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/DebtDetails-FutureDebtPayments" xlink:title="00000050 - Disclosure - 6. DEBT (Details-Future debt payments)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/DebtDetailsNarrative" xlink:title="00000051 - Disclosure - 6. DEBT (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/IncomeTaxesDetails-EffectiveRate" xlink:title="00000052 - Disclosure - 7. INCOME TAXES (Details-Effective rate)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/IncomeTaxesDetails-DeferredTaxAssets" xlink:title="00000053 - Disclosure - 7. INCOME TAXES (Details-Deferred tax assets)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/IncomeTaxesDetails-TaxJurisdictions" xlink:title="00000054 - Disclosure - 7. INCOME TAXES (Details-Tax jurisdictions)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/IncomeTaxesDetailsNarrative" xlink:title="00000055 - Disclosure - 7. INCOME TAXES (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/PreferredStockDetails" xlink:title="00000056 - Disclosure - 8. PREFERRED STOCK (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/CommonStockAndWarrantsDetails" xlink:title="00000057 - Disclosure - 9. COMMON STOCK AND WARRANTS (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/Stock-BasedCompensationDetails-OptionActivity" xlink:title="00000058 - Disclosure - 10. STOCK-BASED COMPENSATION (Details-Option Activity)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/Stock-BasedCompensationDetail-OptionsOutstandingAndExercisable" xlink:title="00000059 - Disclosure - 10. STOCK-BASED COMPENSATION (Detail-Options Outstanding and Exercisable)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/Stock-BasedCompensationDetails-RestrictedStockActivity" xlink:title="00000060 - Disclosure - 10. STOCK-BASED COMPENSATION (Details-Restricted Stock Activity)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/Stock-BasedCompensationDetails-StockBasedCompensationExpense" xlink:title="00000061 - Disclosure - 10. STOCK-BASED COMPENSATION (Details-Stock based compensation expense)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/Stock-BasedCompensationDetailsNarrative" xlink:title="00000062 - Disclosure - 10. STOCK-BASED COMPENSATION (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/CommitmentsAndContingenciesDetails" xlink:title="00000063 - Disclosure - 11. COMMITMENTS AND CONTINGENCIES (Details)">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_CapitalLeasesFutureMinimumPaymentsDue" xlink:label="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDue" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_CapitalLeasesFutureMinimumPaymentsDueCurrent" xlink:label="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDueCurrent" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDue" xlink:to="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDueCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_CapitalLeasesFutureMinimumPaymentsDueInTwoYears" xlink:label="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDueInTwoYears" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDue" xlink:to="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDueInTwoYears" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_CapitalLeasesFutureMinimumPaymentsDueInThreeYears" xlink:label="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDueInThreeYears" />
      <link:calculationArc order="300" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDue" xlink:to="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDueInThreeYears" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_CapitalLeasesFutureMinimumPaymentsDueInFourYears" xlink:label="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDueInFourYears" />
      <link:calculationArc order="400" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDue" xlink:to="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDueInFourYears" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_CapitalLeasesFutureMinimumPaymentsDueInFiveYears" xlink:label="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDueInFiveYears" />
      <link:calculationArc order="500" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDue" xlink:to="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDueInFiveYears" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_CapitalLeasesFutureMinimumPaymentsDueThereafter" xlink:label="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDueThereafter" />
      <link:calculationArc order="600" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDue" xlink:to="loc_us-gaapCapitalLeasesFutureMinimumPaymentsDueThereafter" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDue" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueCurrent" />
      <link:calculationArc order="100" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDue" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueInTwoYears" />
      <link:calculationArc order="200" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDue" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueInTwoYears" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueInThreeYears" />
      <link:calculationArc order="300" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDue" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueInThreeYears" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueInFourYears" />
      <link:calculationArc order="400" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDue" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueInFourYears" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueInFiveYears" />
      <link:calculationArc order="500" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDue" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueInFiveYears" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2013/elts/us-gaap-2013-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueThereafter" />
      <link:calculationArc order="600" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDue" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueThereafter" xlink:type="arc" weight="1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/CommitmentsAndContingenciesDetailsNarrative" xlink:title="00000064 - Disclosure - 11. COMMITMENTS AND CONTINGENCIES (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/FairValueMeasurementsDetails" xlink:title="00000065 - Disclosure - 12. FAIR VALUE MEASUREMENTS (Details-Fair Value Warrants)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/FairValueMeasurementsDetails-OtherDerivatives" xlink:title="00000066 - Disclosure - 12. FAIR VALUE MEASUREMENTS (Details-Other derivatives)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/FairValueMeasurementsDetails-Level3" xlink:title="00000067 - Disclosure - 12. FAIR VALUE MEASUREMENTS (Details-Level 3)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://paceth.com/role/RelatedPartyTransactionsDetailsNarrative" xlink:title="00000068 - Disclosure - 13. RELATED PARTY TRANSACTIONS (Details Narrative)" />
</link:linkbase>
