<?xml version="1.0" encoding="US-ASCII" standalone="no"?>
    <!-- Field: Doc-Info; Name: Generator; Value: GoFiler Complete; Version: 4.18c -->
    <!-- Field: Doc-Info; Name: VendorURI; Value: http://www.novaworks.co -->
    <!-- Field: Doc-Info; Name: Source; Value: paceth_q1%2D20170331.xfr; Date: 2017%2D05%2D10T16:46:54Z -->
    <!-- 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://pacificethanol.net/role/DocumentAndEntityInformation" xlink:href="peix-20170331.xsd#DocumentAndEntityInformation" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/BalanceSheets" xlink:href="peix-20170331.xsd#BalanceSheets" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/BalanceSheetsParenthetical" xlink:href="peix-20170331.xsd#BalanceSheetsParenthetical" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/StatementsOfOperations" xlink:href="peix-20170331.xsd#StatementsOfOperations" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/StatementsOfCashFlows" xlink:href="peix-20170331.xsd#StatementsOfCashFlows" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/OrganizationAndBasisOfPresentation" xlink:href="peix-20170331.xsd#OrganizationAndBasisOfPresentation" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/Segments" xlink:href="peix-20170331.xsd#Segments" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/Inventories" xlink:href="peix-20170331.xsd#Inventories" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/Derivatives" xlink:href="peix-20170331.xsd#Derivatives" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/Debt" xlink:href="peix-20170331.xsd#Debt" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/CommitmentsAndContingencies" xlink:href="peix-20170331.xsd#CommitmentsAndContingencies" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/PensionPlans" xlink:href="peix-20170331.xsd#PensionPlans" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/FairValueMeasurements" xlink:href="peix-20170331.xsd#FairValueMeasurements" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/EarningsPerShare" xlink:href="peix-20170331.xsd#EarningsPerShare" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/OrganizationAndBasisOfPresentationPolicies" xlink:href="peix-20170331.xsd#OrganizationAndBasisOfPresentationPolicies" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/SegmentsTables" xlink:href="peix-20170331.xsd#SegmentsTables" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/InventoriesTables" xlink:href="peix-20170331.xsd#InventoriesTables" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/DerivativesTables" xlink:href="peix-20170331.xsd#DerivativesTables" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/DebtTables" xlink:href="peix-20170331.xsd#DebtTables" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/FairValueMeasurementsTables" xlink:href="peix-20170331.xsd#FairValueMeasurementsTables" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/EarningsPerShareTables" xlink:href="peix-20170331.xsd#EarningsPerShareTables" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/OrganizationAndBasisOfPresentationDetailsNarrative" xlink:href="peix-20170331.xsd#OrganizationAndBasisOfPresentationDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/Segments-ScheduleOfFinancialDateForOperatingSegmentsDetails" xlink:href="peix-20170331.xsd#Segments-ScheduleOfFinancialDateForOperatingSegmentsDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/Segments-ScheduleOfAssetsByOperatingSegmentsDetails" xlink:href="peix-20170331.xsd#Segments-ScheduleOfAssetsByOperatingSegmentsDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/SegmentsDetailsNarrative" xlink:href="peix-20170331.xsd#SegmentsDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/Inventories-ScheduleOfInventoriesDetails" xlink:href="peix-20170331.xsd#Inventories-ScheduleOfInventoriesDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/Inventories-ScheduleOfInventoriesDetailsNarrative" xlink:href="peix-20170331.xsd#Inventories-ScheduleOfInventoriesDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/Derivatives-ScheduleOfDerivativesNotDesignatedAsHedgingInstrumentsDetails" xlink:href="peix-20170331.xsd#Derivatives-ScheduleOfDerivativesNotDesignatedAsHedgingInstrumentsDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/Derivatives-ScheduleOfRecognizedGainsLossesForDerivativesDetails" xlink:href="peix-20170331.xsd#Derivatives-ScheduleOfRecognizedGainsLossesForDerivativesDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/DerivativesDetailsNarrative" xlink:href="peix-20170331.xsd#DerivativesDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/Debt-ScheduleOfLongTermDebtDetails" xlink:href="peix-20170331.xsd#Debt-ScheduleOfLongTermDebtDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/DebtDetailsNarrative" xlink:href="peix-20170331.xsd#DebtDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/CommitmentsAndContingenciesDetailsNarrative" xlink:href="peix-20170331.xsd#CommitmentsAndContingenciesDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/PensionPlansDetailsNarrative" xlink:href="peix-20170331.xsd#PensionPlansDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/FairValueMeasurements-ScheduleOfSignificantAssumptionsUsedAndRelatedFairValuesForWarrantsDetails" xlink:href="peix-20170331.xsd#FairValueMeasurements-ScheduleOfSignificantAssumptionsUsedAndRelatedFairValuesForWarrantsDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/FairValueMeasurementsDetails-OtherDerivatives" xlink:href="peix-20170331.xsd#FairValueMeasurementsDetails-OtherDerivatives" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/FairValueMeasurements-ScheduleOfFairValueOfLevel3InputsToWarrantsDetails" xlink:href="peix-20170331.xsd#FairValueMeasurements-ScheduleOfFairValueOfLevel3InputsToWarrantsDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/EarningsPerShare-ScheduleOfComputationOfBasicAndDilutedEarningsPerShareDetails" xlink:href="peix-20170331.xsd#EarningsPerShare-ScheduleOfComputationOfBasicAndDilutedEarningsPerShareDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://pacificethanol.net/role/EarningsPerShareDetailsNarrative" xlink:href="peix-20170331.xsd#EarningsPerShareDetailsNarrative" xlink:type="simple" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/DocumentAndEntityInformation" xlink:title="00000001 - Document - Document and Entity Information" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/BalanceSheets" xlink:title="00000002 - Statement - Consolidated Balance Sheets (Unaudited)">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaapAssetsCurrent" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaapCashAndCashEquivalentsAtCarryingValue" />
      <link:calculationArc order="1" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaapAccountsReceivableNetCurrent" />
      <link:calculationArc order="2" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaapInventoryNet" />
      <link:calculationArc order="3" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxesReceivable" xlink:label="loc_us-gaapIncomeTaxesReceivable" />
      <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsCurrent" xlink:to="loc_us-gaapIncomeTaxesReceivable" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherAssetsCurrent" xlink:label="loc_us-gaapOtherAssetsCurrent" />
      <link:calculationArc order="5" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaapPrepaidExpenseAndOtherAssetsCurrent" />
      <link:calculationArc order="6" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeAssetsCurrent" xlink:label="loc_us-gaapDerivativeAssetsCurrent" />
      <link:calculationArc order="7" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapAssetsCurrent" xlink:to="loc_us-gaapDerivativeAssetsCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaapOtherAssets" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaapOtherAssetsNoncurrent" />
      <link:calculationArc order="1" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaapIntangibleAssetsNetExcludingGoodwill" />
      <link:calculationArc order="2" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaapAssets" />
      <link:calculationArc order="1" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaapPropertyPlantAndEquipmentNet" />
      <link:calculationArc order="2" 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="3" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaapLiabilitiesCurrent" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccountsPayableTradeCurrent" xlink:label="loc_us-gaapAccountsPayableTradeCurrent" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesCurrent" xlink:to="loc_us-gaapAccountsPayableTradeCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaapAccruedLiabilitiesCurrent" />
      <link:calculationArc order="2" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CapitalLeaseObligationsCurrent" xlink:label="loc_us-gaapCapitalLeaseObligationsCurrent" />
      <link:calculationArc order="3" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaapLongTermDebtCurrent" />
      <link:calculationArc order="4" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherLiabilitiesCurrent" xlink:label="loc_us-gaapOtherLiabilitiesCurrent" />
      <link:calculationArc order="5" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned" xlink:label="loc_us-gaapBusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned" />
      <link:calculationArc order="6" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesCurrent" xlink:to="loc_us-gaapBusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeLiabilitiesCurrent" xlink:label="loc_us-gaapDerivativeLiabilitiesCurrent" />
      <link:calculationArc order="7" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilitiesCurrent" xlink:to="loc_us-gaapDerivativeLiabilitiesCurrent" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaapLiabilities" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaapLongTermDebtNoncurrent" />
      <link:calculationArc order="1" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CapitalLeaseObligationsNoncurrent" xlink:label="loc_us-gaapCapitalLeaseObligationsNoncurrent" />
      <link:calculationArc order="2" 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="peix-20170331.xsd#PEIX_WarrantLiabilitiesAtFairValue" xlink:label="loc_PEIXWarrantLiabilitiesAtFairValue" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapLiabilities" xlink:to="loc_PEIXWarrantLiabilitiesAtFairValue" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaapOtherLiabilitiesNoncurrent" />
      <link:calculationArc order="4" 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:calculationArc order="5" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaapStockholdersEquity" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaapPreferredStockValue" />
      <link:calculationArc order="1" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaapCommonStockValue" />
      <link:calculationArc order="2" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaapAdditionalPaidInCapital" />
      <link:calculationArc order="3" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaapAccumulatedOtherComprehensiveIncomeLossNetOfTax" />
      <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquity" xlink:to="loc_us-gaapAccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaapRetainedEarningsAccumulatedDeficit" />
      <link:calculationArc order="5" 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="peix-20170331.xsd#PEIX_NonvotingCommonStockValue" xlink:label="loc_PEIXNonvotingCommonStockValue" />
      <link:calculationArc order="6" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquity" xlink:to="loc_PEIXNonvotingCommonStockValue" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" />
      <link:calculationArc order="1" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MinorityInterest" xlink:label="loc_us-gaapMinorityInterest" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:to="loc_us-gaapMinorityInterest" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaapLiabilitiesAndStockholdersEquity" />
      <link:calculationArc order="1" 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="2" 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://pacificethanol.net/role/BalanceSheetsParenthetical" xlink:title="00000003 - Statement - Consolidated Balance Sheets (Unaudited) (Parenthetical)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/StatementsOfOperations" xlink:title="00000004 - Statement - Consolidated Statements of Operations (Unaudited)">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaapGrossProfit" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CostOfGoodsSold" xlink:label="loc_us-gaapCostOfGoodsSold" />
      <link:calculationArc order="1" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SalesRevenueNet" xlink:label="loc_us-gaapSalesRevenueNet" />
      <link:calculationArc order="2" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaapOperatingIncomeLoss" />
      <link:calculationArc order="1" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense" xlink:label="loc_us-gaapSellingGeneralAndAdministrativeExpense" />
      <link:calculationArc order="2" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" />
      <link:calculationArc order="1" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherOperatingIncomeExpenseNet" xlink:label="loc_us-gaapOtherOperatingIncomeExpenseNet" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="loc_us-gaapOtherOperatingIncomeExpenseNet" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueAdjustmentOfWarrants" xlink:label="loc_us-gaapFairValueAdjustmentOfWarrants" />
      <link:calculationArc order="3" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaapInterestExpense" />
      <link:calculationArc order="4" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaapProfitLoss" />
      <link:calculationArc order="1" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaapIncomeTaxExpenseBenefit" />
      <link:calculationArc order="2" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaapNetIncomeLoss" />
      <link:calculationArc order="1" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaapNetIncomeLossAttributableToNoncontrollingInterest" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetIncomeLoss" xlink:to="loc_us-gaapNetIncomeLossAttributableToNoncontrollingInterest" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="loc_us-gaapNetIncomeLossAvailableToCommonStockholdersBasic" />
      <link:calculationArc order="1" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DividendsPreferredStock" xlink:label="loc_us-gaapDividendsPreferredStock" />
      <link:calculationArc order="2" 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://pacificethanol.net/role/StatementsOfCashFlows" xlink:title="00000005 - Statement - Consolidated Statements of Cash Flows (Unaudited)">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:label="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaapProfitLoss" />
      <link:calculationArc order="1" 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="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DepreciationAndAmortization" xlink:label="loc_us-gaapDepreciationAndAmortization" />
      <link:calculationArc order="2" 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="peix-20170331.xsd#PEIX_InterestExpenseAddedToTermDebt" xlink:label="loc_PEIXInterestExpenseAddedToTermDebt" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_PEIXInterestExpenseAddedToTermDebt" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FairValueAdjustmentOfWarrants" xlink:label="loc_us-gaapFairValueAdjustmentOfWarrants" />
      <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapFairValueAdjustmentOfWarrants" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AmortizationOfDebtDiscountPremium" xlink:label="loc_us-gaapAmortizationOfDebtDiscountPremium" />
      <link:calculationArc order="5" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts" xlink:label="loc_us-gaapAmortizationOfFinancingCostsAndDiscounts" />
      <link:calculationArc order="6" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaapShareBasedCompensation" />
      <link:calculationArc order="7" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapShareBasedCompensation" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_UnrealizedGainLossOnDerivatives" xlink:label="loc_us-gaapUnrealizedGainLossOnDerivatives" />
      <link:calculationArc order="8" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapUnrealizedGainLossOnDerivatives" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivablePeriodIncreaseDecrease" xlink:label="loc_us-gaapAllowanceForDoubtfulAccountsReceivablePeriodIncreaseDecrease" />
      <link:calculationArc order="9" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapAllowanceForDoubtfulAccountsReceivablePeriodIncreaseDecrease" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable" xlink:label="loc_us-gaapIncreaseDecreaseInAccountsReceivable" />
      <link:calculationArc order="10" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInInventories" xlink:label="loc_us-gaapIncreaseDecreaseInInventories" />
      <link:calculationArc order="11" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" xlink:label="loc_us-gaapIncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" />
      <link:calculationArc order="12" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidExpensesOther" xlink:label="loc_us-gaapIncreaseDecreaseInPrepaidExpensesOther" />
      <link:calculationArc order="13" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesContinuingOperations" xlink:to="loc_us-gaapIncreaseDecreaseInPrepaidExpensesOther" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities" xlink:label="loc_us-gaapIncreaseDecreaseInAccountsPayableAndAccruedLiabilities" />
      <link:calculationArc order="14" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryWriteDown" xlink:label="loc_us-gaapInventoryWriteDown" />
      <link:calculationArc order="15" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesContinuingOperations" xlink:label="loc_us-gaapNetCashProvidedByUsedInInvestingActivitiesContinuingOperations" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaapPaymentsToAcquirePropertyPlantAndEquipment" />
      <link:calculationArc order="1" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:label="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RepaymentsOfShortTermDebt" xlink:label="loc_us-gaapRepaymentsOfShortTermDebt" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:to="loc_us-gaapRepaymentsOfShortTermDebt" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RepaymentsOfDebtAndCapitalLeaseObligations" xlink:label="loc_us-gaapRepaymentsOfDebtAndCapitalLeaseObligations" />
      <link:calculationArc order="2" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromWarrantExercises" xlink:label="loc_us-gaapProceedsFromWarrantExercises" />
      <link:calculationArc order="3" 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="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock" xlink:label="loc_us-gaapPaymentsOfDividendsPreferredStockAndPreferenceStock" />
      <link:calculationArc order="4" 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/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RepaymentsOfLinesOfCredit" xlink:label="loc_us-gaapRepaymentsOfLinesOfCredit" />
      <link:calculationArc order="5" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:to="loc_us-gaapRepaymentsOfLinesOfCredit" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsOfDebtIssuanceCosts" xlink:label="loc_us-gaapPaymentsOfDebtIssuanceCosts" />
      <link:calculationArc order="6" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesContinuingOperations" xlink:to="loc_us-gaapPaymentsOfDebtIssuanceCosts" xlink:type="arc" weight="-1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:label="loc_us-gaapCashAndCashEquivalentsPeriodIncreaseDecrease" />
      <link:calculationArc order="1" 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="2" 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="3" 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://pacificethanol.net/role/OrganizationAndBasisOfPresentation" xlink:title="00000006 - Disclosure - 1. Organization and Basis of Presentation" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Segments" xlink:title="00000007 - Disclosure - 2. Segments" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Inventories" xlink:title="00000008 - Disclosure - 3. Inventories" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Derivatives" xlink:title="00000009 - Disclosure - 4. Derivatives" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Debt" xlink:title="00000010 - Disclosure - 5. Debt" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/CommitmentsAndContingencies" xlink:title="00000011 - Disclosure - 6. Commitments and Contingencies" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PensionPlans" xlink:title="00000012 - Disclosure - 7. Pension Plans" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/FairValueMeasurements" xlink:title="00000013 - Disclosure - 8. Fair Value Measurements" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/EarningsPerShare" xlink:title="00000014 - Disclosure - 9. Earnings Per Share" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/OrganizationAndBasisOfPresentationPolicies" xlink:title="00000015 - Disclosure - 1. Organization and Basis of Presentation (Policies)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/SegmentsTables" xlink:title="00000016 - Disclosure - 2. Segments (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/InventoriesTables" xlink:title="00000017 - Disclosure - 3. Inventories (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/DerivativesTables" xlink:title="00000018 - Disclosure - 4. Derivatives (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/DebtTables" xlink:title="00000019 - Disclosure - 5. Debt (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/FairValueMeasurementsTables" xlink:title="00000020 - Disclosure - 8. Fair Value Measurements (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/EarningsPerShareTables" xlink:title="00000021 - Disclosure - 9. Earnings Per Share (Tables)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/OrganizationAndBasisOfPresentationDetailsNarrative" xlink:title="00000022 - Disclosure - 1. Organization and Basis of Presentation (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Segments-ScheduleOfFinancialDateForOperatingSegmentsDetails" xlink:title="00000023 - Disclosure - 2. Segments - Schedule of Financial Date for Operating Segments (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Segments-ScheduleOfAssetsByOperatingSegmentsDetails" xlink:title="00000024 - Disclosure - 2. Segments - Schedule of Assets by Operating Segments (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/SegmentsDetailsNarrative" xlink:title="00000025 - Disclosure - 2. Segments (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Inventories-ScheduleOfInventoriesDetails" xlink:title="00000026 - Disclosure - 3. Inventories - Schedule of Inventories (Details)">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaapInventoryNet" />
      <link:loc xlink:type="locator" xlink:href="peix-20170331.xsd#PEIX_LowCarbonFuelStandardCredits" xlink:label="loc_PEIXLowCarbonFuelStandardCredits" />
      <link:calculationArc order="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInventoryNet" xlink:to="loc_PEIXLowCarbonFuelStandardCredits" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryFinishedGoodsNetOfReserves" xlink:label="loc_us-gaapInventoryFinishedGoodsNetOfReserves" />
      <link:calculationArc order="2" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInventoryNet" xlink:to="loc_us-gaapInventoryFinishedGoodsNetOfReserves" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryRawMaterialsNetOfReserves" xlink:label="loc_us-gaapInventoryRawMaterialsNetOfReserves" />
      <link:calculationArc order="3" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInventoryNet" xlink:to="loc_us-gaapInventoryRawMaterialsNetOfReserves" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryWorkInProcessNetOfReserves" xlink:label="loc_us-gaapInventoryWorkInProcessNetOfReserves" />
      <link:calculationArc order="4" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInventoryNet" xlink:to="loc_us-gaapInventoryWorkInProcessNetOfReserves" xlink:type="arc" weight="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherInventoryNetOfReserves" xlink:label="loc_us-gaapOtherInventoryNetOfReserves" />
      <link:calculationArc order="5" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaapInventoryNet" xlink:to="loc_us-gaapOtherInventoryNetOfReserves" xlink:type="arc" weight="1" />
    </link:calculationLink>
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Inventories-ScheduleOfInventoriesDetailsNarrative" xlink:title="00000027 - Disclosure - 3. Inventories - Schedule of Inventories (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Derivatives-ScheduleOfDerivativesNotDesignatedAsHedgingInstrumentsDetails" xlink:title="00000028 - Disclosure - 4. Derivatives - Schedule of Derivatives Not Designated as Hedging Instruments (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Derivatives-ScheduleOfRecognizedGainsLossesForDerivativesDetails" xlink:title="00000029 - Disclosure - 4. Derivatives - Schedule of Recognized Gains (Losses) for Derivatives (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/DerivativesDetailsNarrative" xlink:title="00000030 - Disclosure - 4. Derivatives (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Debt-ScheduleOfLongTermDebtDetails" xlink:title="00000031 - Disclosure - 5. Debt - Schedule of Long Term Debt (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/DebtDetailsNarrative" xlink:title="00000032 - Disclosure - 5. Debt (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/CommitmentsAndContingenciesDetailsNarrative" xlink:title="00000033 - Disclosure - 6. Commitments and Contingencies (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PensionPlansDetailsNarrative" xlink:title="00000034 - Disclosure - 7. Pension Plans (Details Narrative)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/FairValueMeasurements-ScheduleOfSignificantAssumptionsUsedAndRelatedFairValuesForWarrantsDetails" xlink:title="00000035 - Disclosure - 8. Fair Value Measurements - Schedule of Significant Assumptions Used and Related Fair Values for Warrants (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/FairValueMeasurementsDetails-OtherDerivatives" xlink:title="00000036 - Disclosure - 8. Fair Value Measurements (Details - Other derivatives)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/FairValueMeasurements-ScheduleOfFairValueOfLevel3InputsToWarrantsDetails" xlink:title="00000037 - Disclosure - 8. Fair Value Measurements - Schedule of Fair Value of Level 3 Inputs to Warrants (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/EarningsPerShare-ScheduleOfComputationOfBasicAndDilutedEarningsPerShareDetails" xlink:title="00000038 - Disclosure - 9. Earnings Per Share - Schedule of Computation of Basic and Diluted Earnings Per Share (Details)" />
    <link:calculationLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/EarningsPerShareDetailsNarrative" xlink:title="00000039 - Disclosure - 9. Earnings Per Share (Details Narrative)" />
</link:linkbase>
