<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019aff10-0467-7c6f-931b-011ae9d0380d,g:a975d218-40e1-4008-86bf-3f030571b649-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="htbk-20251231.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019aff10-0808-7af2-b21c-47429f8f9d60" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_019aff10-0808-7ce8-bdfa-86edcb1f30d1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Deposits"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019aff10-0808-7af2-b21c-47429f8f9d60" xlink:to="loc_us-gaap_Deposits_019aff10-0808-7ce8-bdfa-86edcb1f30d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubordinatedDebt_019aff10-0808-7c55-94f9-2f514e944d2b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubordinatedDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019aff10-0808-7af2-b21c-47429f8f9d60" xlink:to="loc_us-gaap_SubordinatedDebt_019aff10-0808-7c55-94f9-2f514e944d2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_AccruedInterestPayableAndOtherLiabilities_019aff10-0808-71b2-b09e-93fc16ef0378" xlink:href="htbk-20251231.xsd#htbk_AccruedInterestPayableAndOtherLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019aff10-0808-7af2-b21c-47429f8f9d60" xlink:to="loc_htbk_AccruedInterestPayableAndOtherLiabilities_019aff10-0808-71b2-b09e-93fc16ef0378" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_019aff10-0808-7d48-8198-db2221de88cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsAndFederalFundsSold"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndDueFromBanks_019aff10-0808-7783-b832-6d500145888e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndDueFromBanks"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_019aff10-0808-7d48-8198-db2221de88cf" xlink:to="loc_us-gaap_CashAndDueFromBanks_019aff10-0808-7783-b832-6d500145888e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestBearingDepositsInBanks_019aff10-0808-7f7d-a162-a8dd7ab38049" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestBearingDepositsInBanks"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_019aff10-0808-7d48-8198-db2221de88cf" xlink:to="loc_us-gaap_InterestBearingDepositsInBanks_019aff10-0808-7f7d-a162-a8dd7ab38049" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019aff10-0808-7b28-80de-3530f0fe0282" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019aff10-0808-7293-bbfe-2baa6460208f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019aff10-0808-7b28-80de-3530f0fe0282" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019aff10-0808-7293-bbfe-2baa6460208f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_019aff10-0808-7a5e-a7c7-619ac916c2c3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019aff10-0808-7b28-80de-3530f0fe0282" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_019aff10-0808-7a5e-a7c7-619ac916c2c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019aff10-0808-73b1-b1e8-a315bddf84cb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_019aff10-0808-719b-b20d-ed8154cc33af" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsAndFederalFundsSold"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019aff10-0808-73b1-b1e8-a315bddf84cb" xlink:to="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_019aff10-0808-719b-b20d-ed8154cc33af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019aff10-0808-7829-85c3-971cc91fa276" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019aff10-0808-73b1-b1e8-a315bddf84cb" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019aff10-0808-7829-85c3-971cc91fa276" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_SecuritiesHeldToMaturityNetOfAllowanceForCreditLosses_019aff10-0808-7869-a4e5-7fffd74843d2" xlink:href="htbk-20251231.xsd#htbk_SecuritiesHeldToMaturityNetOfAllowanceForCreditLosses"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019aff10-0808-73b1-b1e8-a315bddf84cb" xlink:to="loc_htbk_SecuritiesHeldToMaturityNetOfAllowanceForCreditLosses_019aff10-0808-7869-a4e5-7fffd74843d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup_019aff10-0808-75ee-8bc2-7388f4935a40" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019aff10-0808-73b1-b1e8-a315bddf84cb" xlink:to="loc_us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup_019aff10-0808-75ee-8bc2-7388f4935a40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019aff10-0808-71d9-8846-45c2e08bff8a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019aff10-0808-73b1-b1e8-a315bddf84cb" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019aff10-0808-71d9-8846-45c2e08bff8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInvestments_019aff10-0808-730b-92cc-24e0e47b13c9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherInvestments"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019aff10-0808-73b1-b1e8-a315bddf84cb" xlink:to="loc_us-gaap_OtherInvestments_019aff10-0808-730b-92cc-24e0e47b13c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BankOwnedLifeInsurance_019aff10-0808-7eee-a1c5-5514b75e7cac" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BankOwnedLifeInsurance"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019aff10-0808-73b1-b1e8-a315bddf84cb" xlink:to="loc_us-gaap_BankOwnedLifeInsurance_019aff10-0808-7eee-a1c5-5514b75e7cac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_019aff10-0808-737b-9b1a-ebd88684bddc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019aff10-0808-73b1-b1e8-a315bddf84cb" xlink:to="loc_us-gaap_Goodwill_019aff10-0808-737b-9b1a-ebd88684bddc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_019aff10-0808-7d00-a923-ca13ede2b555" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019aff10-0808-73b1-b1e8-a315bddf84cb" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_019aff10-0808-7d00-a923-ca13ede2b555" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019aff10-0808-763c-9d93-2dcac8446220" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019aff10-0808-73b1-b1e8-a315bddf84cb" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019aff10-0808-763c-9d93-2dcac8446220" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivableAndOtherAssets_019aff10-0808-7a5f-bb77-b69af97e9a09" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestReceivableAndOtherAssets"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019aff10-0808-73b1-b1e8-a315bddf84cb" xlink:to="loc_us-gaap_InterestReceivableAndOtherAssets_019aff10-0808-7a5f-bb77-b69af97e9a09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Deposits_019aff10-0741-7589-b017-364b0f48d9cc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Deposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestBearingDomesticDepositDemand_019aff10-0741-70e1-b9a3-2b7f931649ec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestBearingDomesticDepositDemand"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_019aff10-0741-7589-b017-364b0f48d9cc" xlink:to="loc_us-gaap_NoninterestBearingDomesticDepositDemand_019aff10-0741-70e1-b9a3-2b7f931649ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestBearingDomesticDepositDemand_019aff10-0741-7821-bf58-37b16829ad70" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestBearingDomesticDepositDemand"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_019aff10-0741-7589-b017-364b0f48d9cc" xlink:to="loc_us-gaap_InterestBearingDomesticDepositDemand_019aff10-0741-7821-bf58-37b16829ad70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositsSavingsDeposits_019aff10-0741-7f28-9d3b-19d69f7a1e9b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DepositsSavingsDeposits"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_019aff10-0741-7589-b017-364b0f48d9cc" xlink:to="loc_us-gaap_DepositsSavingsDeposits_019aff10-0741-7f28-9d3b-19d69f7a1e9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_TimeDepositsLessThan250000_019aff10-0808-7525-a7b2-3797fce99f5f" xlink:href="htbk-20251231.xsd#htbk_TimeDepositsLessThan250000"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_019aff10-0741-7589-b017-364b0f48d9cc" xlink:to="loc_htbk_TimeDepositsLessThan250000_019aff10-0808-7525-a7b2-3797fce99f5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_TimeDeposits250000AndOver_019aff10-0808-7b57-9037-811eeb2ecb9b" xlink:href="htbk-20251231.xsd#htbk_TimeDeposits250000AndOver"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_019aff10-0741-7589-b017-364b0f48d9cc" xlink:to="loc_htbk_TimeDeposits250000AndOver_019aff10-0808-7b57-9037-811eeb2ecb9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_TimeDepositsAndMoneyMarketDepositsCdars_019aff10-0808-7932-92f4-f1efba64fffd" xlink:href="htbk-20251231.xsd#htbk_TimeDepositsAndMoneyMarketDepositsCdars"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Deposits_019aff10-0741-7589-b017-364b0f48d9cc" xlink:to="loc_htbk_TimeDepositsAndMoneyMarketDepositsCdars_019aff10-0808-7932-92f4-f1efba64fffd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019aff10-0808-76e5-aaa9-2f2c36a01246" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019aff10-0808-703d-92c6-2c163add90bb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019aff10-0808-76e5-aaa9-2f2c36a01246" xlink:to="loc_us-gaap_Liabilities_019aff10-0808-703d-92c6-2c163add90bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019aff10-0808-76ed-b6a8-8efae391664f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019aff10-0808-76e5-aaa9-2f2c36a01246" xlink:to="loc_us-gaap_StockholdersEquity_019aff10-0808-76ed-b6a8-8efae391664f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019aff10-0808-7425-9bdb-6bdbde561c1a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_019aff10-0808-7a55-85dc-e0e89971d91f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019aff10-0808-7425-9bdb-6bdbde561c1a" xlink:to="loc_us-gaap_PreferredStockValue_019aff10-0808-7a55-85dc-e0e89971d91f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019aff10-0808-7771-a3e6-572c210aafa0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019aff10-0808-7425-9bdb-6bdbde561c1a" xlink:to="loc_us-gaap_CommonStockValue_019aff10-0808-7771-a3e6-572c210aafa0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019aff10-0808-70ca-9a00-a2584a6332f1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019aff10-0808-7425-9bdb-6bdbde561c1a" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019aff10-0808-70ca-9a00-a2584a6332f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019aff10-0808-7e82-bc54-ca39540408a4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019aff10-0808-7425-9bdb-6bdbde561c1a" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019aff10-0808-7e82-bc54-ca39540408a4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/CONSOLIDATEDSTATEMENTSOFINCOME" xlink:type="simple" xlink:href="htbk-20251231.xsd#CONSOLIDATEDSTATEMENTSOFINCOME"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/CONSOLIDATEDSTATEMENTSOFINCOME" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019aff10-0809-7265-90a3-432755914493" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDeposits_019aff10-0809-777b-9391-2e69dea432e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseDeposits"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019aff10-0809-7265-90a3-432755914493" xlink:to="loc_us-gaap_InterestExpenseDeposits_019aff10-0809-777b-9391-2e69dea432e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseSubordinatedNotesAndDebentures_019aff10-0809-7a56-9ef1-96f19206bd84" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseSubordinatedNotesAndDebentures"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019aff10-0809-7265-90a3-432755914493" xlink:to="loc_us-gaap_InterestExpenseSubordinatedNotesAndDebentures_019aff10-0809-7a56-9ef1-96f19206bd84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOtherShortTermBorrowings_019aff10-0809-7317-9196-1a3d310ee6ae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseOtherShortTermBorrowings"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseOperating_019aff10-0809-7265-90a3-432755914493" xlink:to="loc_us-gaap_InterestExpenseOtherShortTermBorrowings_019aff10-0809-7317-9196-1a3d310ee6ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019aff10-0809-7a78-947e-bf5cc7c860b5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_019aff10-0809-71b3-9261-78dafec7700f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019aff10-0809-7a78-947e-bf5cc7c860b5" xlink:to="loc_us-gaap_InterestIncomeExpenseNet_019aff10-0809-71b3-9261-78dafec7700f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_019aff10-0809-77d2-b9a0-0a368672a618" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019aff10-0809-7a78-947e-bf5cc7c860b5" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_019aff10-0809-77d2-b9a0-0a368672a618" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_019aff10-0809-7fe8-8dcc-be549a072454" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_019aff10-0809-7897-b48a-e11ef78559b9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019aff10-0809-7fe8-8dcc-be549a072454" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_019aff10-0809-7897-b48a-e11ef78559b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeSecuritiesTaxable_019aff10-0809-7b52-9d17-a69e9e8e29ff" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeSecuritiesTaxable"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019aff10-0809-7fe8-8dcc-be549a072454" xlink:to="loc_us-gaap_InterestIncomeSecuritiesTaxable_019aff10-0809-7b52-9d17-a69e9e8e29ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeSecuritiesTaxExempt_019aff10-0809-7a30-8979-f42f2613988a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeSecuritiesTaxExempt"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019aff10-0809-7fe8-8dcc-be549a072454" xlink:to="loc_us-gaap_InterestIncomeSecuritiesTaxExempt_019aff10-0809-7a30-8979-f42f2613988a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_019aff10-0809-755c-b2d1-3d1513bfb8ad" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeDepositsWithFinancialInstitutions"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_019aff10-0809-7fe8-8dcc-be549a072454" xlink:to="loc_us-gaap_InterestIncomeDepositsWithFinancialInstitutions_019aff10-0809-755c-b2d1-3d1513bfb8ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019aff10-0809-7a2d-a80f-cb6dab4a5b96" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019aff10-0809-713e-867f-f47cd1e6e712" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019aff10-0809-7a2d-a80f-cb6dab4a5b96" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019aff10-0809-713e-867f-f47cd1e6e712" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019aff10-0809-79fe-9af9-d744ac0c45e5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019aff10-0809-7a2d-a80f-cb6dab4a5b96" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019aff10-0809-79fe-9af9-d744ac0c45e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_019aff10-0809-7d8a-9e0f-5c773539a242" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LaborAndRelatedExpense_019aff10-0809-7dab-bda1-f0446e4980a3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LaborAndRelatedExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019aff10-0809-7d8a-9e0f-5c773539a242" xlink:to="loc_us-gaap_LaborAndRelatedExpense_019aff10-0809-7dab-bda1-f0446e4980a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OccupancyNet_019aff10-0809-7b72-a445-510471bce4fa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OccupancyNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019aff10-0809-7d8a-9e0f-5c773539a242" xlink:to="loc_us-gaap_OccupancyNet_019aff10-0809-7b72-a445-510471bce4fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfessionalFees_019aff10-0809-7540-a631-e15133cf8758" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProfessionalFees"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019aff10-0809-7d8a-9e0f-5c773539a242" xlink:to="loc_us-gaap_ProfessionalFees_019aff10-0809-7540-a631-e15133cf8758" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_OtherNoninterestExpenseOther_019aff10-0809-72b8-ba99-42907b56d964" xlink:href="htbk-20251231.xsd#htbk_OtherNoninterestExpenseOther"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019aff10-0809-7d8a-9e0f-5c773539a242" xlink:to="loc_htbk_OtherNoninterestExpenseOther_019aff10-0809-72b8-ba99-42907b56d964" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019aff10-0809-7a0b-ad64-21b126984220" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019aff10-0809-78cf-a7d8-c9ab586b9e05" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019aff10-0809-7a0b-ad64-21b126984220" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019aff10-0809-78cf-a7d8-c9ab586b9e05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_019aff10-0809-74c3-9f8e-9daf8afa0da5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019aff10-0809-7a0b-ad64-21b126984220" xlink:to="loc_us-gaap_NoninterestIncome_019aff10-0809-74c3-9f8e-9daf8afa0da5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_019aff10-0809-72af-ba80-4efbe08a1e49" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestExpense"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019aff10-0809-7a0b-ad64-21b126984220" xlink:to="loc_us-gaap_NoninterestExpense_019aff10-0809-72af-ba80-4efbe08a1e49" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_019aff10-0809-70ae-b518-f86f5b8dcfcf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019aff10-0809-7437-a5e7-559b42a439d0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019aff10-0809-70ae-b518-f86f5b8dcfcf" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019aff10-0809-7437-a5e7-559b42a439d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeDividend_019aff10-0809-7cc4-b8fb-a6e5e4db8d9e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentIncomeDividend"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019aff10-0809-70ae-b518-f86f5b8dcfcf" xlink:to="loc_us-gaap_InvestmentIncomeDividend_019aff10-0809-7cc4-b8fb-a6e5e4db8d9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BankOwnedLifeInsuranceIncome_019aff10-0809-7492-aaad-70c6398cf6a6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BankOwnedLifeInsuranceIncome"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019aff10-0809-70ae-b518-f86f5b8dcfcf" xlink:to="loc_us-gaap_BankOwnedLifeInsuranceIncome_019aff10-0809-7492-aaad-70c6398cf6a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfLoansAndLeases_019aff10-0809-76ab-8c84-ea3952b0606f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnSaleOfLoansAndLeases"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019aff10-0809-70ae-b518-f86f5b8dcfcf" xlink:to="loc_us-gaap_GainLossOnSaleOfLoansAndLeases_019aff10-0809-76ab-8c84-ea3952b0606f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FeesAndCommissionsMortgageBankingAndServicing_019aff10-0809-70b1-9a4b-28b7a6a58813" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FeesAndCommissionsMortgageBankingAndServicing"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019aff10-0809-70ae-b518-f86f5b8dcfcf" xlink:to="loc_us-gaap_FeesAndCommissionsMortgageBankingAndServicing_019aff10-0809-70b1-9a4b-28b7a6a58813" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_GainLossFromLifeInsurancePolicies_019aff10-0809-7798-b6b4-d5ba832e8dbb" xlink:href="htbk-20251231.xsd#htbk_GainLossFromLifeInsurancePolicies"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019aff10-0809-70ae-b518-f86f5b8dcfcf" xlink:to="loc_htbk_GainLossFromLifeInsurancePolicies_019aff10-0809-7798-b6b4-d5ba832e8dbb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_TerminationFees_019aff10-0809-79e5-bc97-f31f06441ff5" xlink:href="htbk-20251231.xsd#htbk_TerminationFees"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019aff10-0809-70ae-b518-f86f5b8dcfcf" xlink:to="loc_htbk_TerminationFees_019aff10-0809-79e5-bc97-f31f06441ff5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_019b689d-b103-7d3c-8e79-4f591fac4c82" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncomeOtherOperatingIncome"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019aff10-0809-70ae-b518-f86f5b8dcfcf" xlink:to="loc_us-gaap_NoninterestIncomeOtherOperatingIncome_019b689d-b103-7d3c-8e79-4f591fac4c82" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="simple" xlink:href="htbk-20251231.xsd#CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_htbk_OtherComprehensiveIncomeAvailableForSaleSecuritiesAndInterestOnlyStripsAdjustmentNetOfTaxPortionAttributableToParent_019aff10-0809-7130-badf-865ff0147e2e" xlink:href="htbk-20251231.xsd#htbk_OtherComprehensiveIncomeAvailableForSaleSecuritiesAndInterestOnlyStripsAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesAndInterestOnlyStripsArisingDuringPeriodBeforeTax_019aff10-0809-71dc-860e-814ef220b041" xlink:href="htbk-20251231.xsd#htbk_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesAndInterestOnlyStripsArisingDuringPeriodBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_htbk_OtherComprehensiveIncomeAvailableForSaleSecuritiesAndInterestOnlyStripsAdjustmentNetOfTaxPortionAttributableToParent_019aff10-0809-7130-badf-865ff0147e2e" xlink:to="loc_htbk_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesAndInterestOnlyStripsArisingDuringPeriodBeforeTax_019aff10-0809-71dc-860e-814ef220b041" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesAndInterestOnlyStripsTaxPortionAttributableToParent_019aff10-0809-7963-a08c-6e46ff29a907" xlink:href="htbk-20251231.xsd#htbk_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesAndInterestOnlyStripsTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_htbk_OtherComprehensiveIncomeAvailableForSaleSecuritiesAndInterestOnlyStripsAdjustmentNetOfTaxPortionAttributableToParent_019aff10-0809-7130-badf-865ff0147e2e" xlink:to="loc_htbk_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesAndInterestOnlyStripsTaxPortionAttributableToParent_019aff10-0809-7963-a08c-6e46ff29a907" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019aff10-0809-7145-b569-ec52a76db11d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_OtherComprehensiveIncomeAvailableForSaleSecuritiesAndInterestOnlyStripsAdjustmentNetOfTaxPortionAttributableToParent_019aff10-0809-7769-8293-dd8f67d6465e" xlink:href="htbk-20251231.xsd#htbk_OtherComprehensiveIncomeAvailableForSaleSecuritiesAndInterestOnlyStripsAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019aff10-0809-7145-b569-ec52a76db11d" xlink:to="loc_htbk_OtherComprehensiveIncomeAvailableForSaleSecuritiesAndInterestOnlyStripsAdjustmentNetOfTaxPortionAttributableToParent_019aff10-0809-7769-8293-dd8f67d6465e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_019aff10-0809-780f-b728-6a261bc33f2c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019aff10-0809-7145-b569-ec52a76db11d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_019aff10-0809-780f-b728-6a261bc33f2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_019aff10-0809-7db1-ac90-b0d8096768b6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_019aff10-0809-708c-a40f-7cb6a196fd6e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_019aff10-0809-7db1-ac90-b0d8096768b6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_019aff10-0809-708c-a40f-7cb6a196fd6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxPortionAttributableToParent_019aff10-0809-7b25-bafe-c6c3f4d4aa7a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_019aff10-0809-7db1-ac90-b0d8096768b6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxPortionAttributableToParent_019aff10-0809-7b25-bafe-c6c3f4d4aa7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_019aff10-0809-7ba9-a7ca-642b46e7835a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019aff10-0809-7b8c-85a6-eb3e30c04aed" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019aff10-0809-7ba9-a7ca-642b46e7835a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019aff10-0809-7b8c-85a6-eb3e30c04aed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019aff10-0809-77f2-97c3-1cb037baea4f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019aff10-0809-7ba9-a7ca-642b46e7835a" xlink:to="loc_us-gaap_NetIncomeLoss_019aff10-0809-77f2-97c3-1cb037baea4f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="htbk-20251231.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019aff10-0809-752a-a485-31291b0b9394" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-789e-a4fa-1ce56a0c3061" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019aff10-0809-752a-a485-31291b0b9394" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-789e-a4fa-1ce56a0c3061" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019aff10-0809-7d8e-9b9e-3fa8e2974b25" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019aff10-0809-752a-a485-31291b0b9394" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019aff10-0809-7d8e-9b9e-3fa8e2974b25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019aff10-0809-775e-96a8-43cc65b1f98a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019aff10-0809-752a-a485-31291b0b9394" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019aff10-0809-775e-96a8-43cc65b1f98a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019aff10-0809-7e44-9ee0-66810cb435a0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_019aff10-0809-707a-9cf0-1046de158c70" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019aff10-0809-7e44-9ee0-66810cb435a0" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_019aff10-0809-707a-9cf0-1046de158c70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_019aff10-0809-7ee8-98c8-5ca64a9e39cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019aff10-0809-7e44-9ee0-66810cb435a0" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_019aff10-0809-7ee8-98c8-5ca64a9e39cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_019aff10-0809-7cc2-9e6c-bc39ad2557a3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019aff10-0809-7e44-9ee0-66810cb435a0" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities_019aff10-0809-7cc2-9e6c-bc39ad2557a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromLoansAndLeases_019aff10-0809-77da-b103-5c644e1b710d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForProceedsFromLoansAndLeases"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019aff10-0809-7e44-9ee0-66810cb435a0" xlink:to="loc_us-gaap_PaymentsForProceedsFromLoansAndLeases_019aff10-0809-77da-b103-5c644e1b710d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_PaymentsForProceedsFromFederalHomeLoanBankStockAndOtherInvestments_019aff10-0809-7f79-adae-66d37cd19f77" xlink:href="htbk-20251231.xsd#htbk_PaymentsForProceedsFromFederalHomeLoanBankStockAndOtherInvestments"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019aff10-0809-7e44-9ee0-66810cb435a0" xlink:to="loc_htbk_PaymentsForProceedsFromFederalHomeLoanBankStockAndOtherInvestments_019aff10-0809-7f79-adae-66d37cd19f77" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019aff10-0809-76b2-9bdb-b1782236cc3a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019aff10-0809-7e44-9ee0-66810cb435a0" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019aff10-0809-76b2-9bdb-b1782236cc3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLifeInsurancePolicies_019aff10-0809-750d-865e-19e5ea0dba3c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromLifeInsurancePolicies"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019aff10-0809-7e44-9ee0-66810cb435a0" xlink:to="loc_us-gaap_ProceedsFromLifeInsurancePolicies_019aff10-0809-750d-865e-19e5ea0dba3c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019aff10-0809-76fb-aa4b-aa37f390ed3d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDeposits_019aff10-0809-7d3a-8cae-9442577aa77b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInDeposits"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019aff10-0809-76fb-aa4b-aa37f390ed3d" xlink:to="loc_us-gaap_IncreaseDecreaseInDeposits_019aff10-0809-7d3a-8cae-9442577aa77b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019aff10-0809-7130-879d-ea8c37cb6ba3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019aff10-0809-76fb-aa4b-aa37f390ed3d" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019aff10-0809-7130-879d-ea8c37cb6ba3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_019aff10-0809-733e-a1de-ed51d9e3f3fc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019aff10-0809-76fb-aa4b-aa37f390ed3d" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_019aff10-0809-733e-a1de-ed51d9e3f3fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_019aff10-0809-7344-aba1-2cff36d5fccc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019aff10-0809-76fb-aa4b-aa37f390ed3d" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_019aff10-0809-7344-aba1-2cff36d5fccc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_019aff10-0809-79f0-b9bd-40c4f167e82f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:to="loc_us-gaap_ProfitLoss_019aff10-0809-79f0-b9bd-40c4f167e82f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019aff10-0809-7473-a71a-8261b5ac3822" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019aff10-0809-7473-a71a-8261b5ac3822" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfLoansAndLeases_019aff10-0809-7d62-bd43-b312989c4c67" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnSaleOfLoansAndLeases"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:to="loc_us-gaap_GainLossOnSaleOfLoansAndLeases_019aff10-0809-7d62-bd43-b312989c4c67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfOtherLoansHeldForSale_019aff10-0809-745c-98ab-359966475d20" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleOfOtherLoansHeldForSale"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:to="loc_us-gaap_ProceedsFromSaleOfOtherLoansHeldForSale_019aff10-0809-745c-98ab-359966475d20" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForOriginationAndPurchasesOfLoansHeldForSale_019aff10-0809-783f-b281-4892992dfc52" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForOriginationAndPurchasesOfLoansHeldForSale"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:to="loc_us-gaap_PaymentsForOriginationAndPurchasesOfLoansHeldForSale_019aff10-0809-783f-b281-4892992dfc52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_019aff10-0809-7f13-aa2e-0d9674ae8ed9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_019aff10-0809-7f13-aa2e-0d9674ae8ed9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BankOwnedLifeInsuranceIncome_019aff10-0809-7d3b-bbc3-256eff1bcb98" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BankOwnedLifeInsuranceIncome"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:to="loc_us-gaap_BankOwnedLifeInsuranceIncome_019aff10-0809-7d3b-bbc3-256eff1bcb98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_GainLossOnRedemptionOfCorporateOwnedLifeInsurance_019aff10-0809-7cd1-8f00-26e47d7f24a8" xlink:href="htbk-20251231.xsd#htbk_GainLossOnRedemptionOfCorporateOwnedLifeInsurance"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:to="loc_htbk_GainLossOnRedemptionOfCorporateOwnedLifeInsurance_019aff10-0809-7cd1-8f00-26e47d7f24a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_DepreciationDepletionAndAmortizationExcludingAmortizationOfIntangibleAssets_019aff10-0809-79d4-947a-ecc257237d7b" xlink:href="htbk-20251231.xsd#htbk_DepreciationDepletionAndAmortizationExcludingAmortizationOfIntangibleAssets"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:to="loc_htbk_DepreciationDepletionAndAmortizationExcludingAmortizationOfIntangibleAssets_019aff10-0809-79d4-947a-ecc257237d7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_019aff10-0809-7a40-8da1-e488e9322fde" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_019aff10-0809-7a40-8da1-e488e9322fde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_019aff10-0809-7e82-99ca-3e8c7433742c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_019aff10-0809-7e82-99ca-3e8c7433742c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockOptionPlanExpense_019aff10-0809-74af-936d-476d08866d95" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockOptionPlanExpense"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:to="loc_us-gaap_StockOptionPlanExpense_019aff10-0809-74af-936d-476d08866d95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockExpense_019aff10-0809-7563-860a-1fe69e4c1c58" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedStockExpense"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:to="loc_us-gaap_RestrictedStockExpense_019aff10-0809-7563-860a-1fe69e4c1c58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_AmortizationOfRestrictedStockAwardCashFlowImpact_019aff10-0809-781f-ac93-aa955ebbd651" xlink:href="htbk-20251231.xsd#htbk_AmortizationOfRestrictedStockAwardCashFlowImpact"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:to="loc_htbk_AmortizationOfRestrictedStockAwardCashFlowImpact_019aff10-0809-781f-ac93-aa955ebbd651" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_IncreaseDecreaseInAccruedInterestReceivableAndOtherAssetsNet_019aff10-0809-7fba-8157-6c057f204253" xlink:href="htbk-20251231.xsd#htbk_IncreaseDecreaseInAccruedInterestReceivableAndOtherAssetsNet"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:to="loc_htbk_IncreaseDecreaseInAccruedInterestReceivableAndOtherAssetsNet_019aff10-0809-7fba-8157-6c057f204253" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_IncreaseDecreaseInAccruedInterestPayableAndOtherLiabilities_019aff10-0809-7d53-975f-887a4d83df5b" xlink:href="htbk-20251231.xsd#htbk_IncreaseDecreaseInAccruedInterestPayableAndOtherLiabilities"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-0809-7998-bb6c-37a7b9d50342" xlink:to="loc_htbk_IncreaseDecreaseInAccruedInterestPayableAndOtherLiabilities_019aff10-0809-7d53-975f-887a4d83df5b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/AccumulatedOtherComprehensiveIncomeAOCIScheduleofChangesinAOCIbyComponentDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#AccumulatedOtherComprehensiveIncomeAOCIScheduleofChangesinAOCIbyComponentDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/AccumulatedOtherComprehensiveIncomeAOCIScheduleofChangesinAOCIbyComponentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019aff10-0809-7470-a8f7-67eabc9e087b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019aff10-0809-715d-8d1f-414dcecd5695" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019aff10-0809-7470-a8f7-67eabc9e087b" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019aff10-0809-715d-8d1f-414dcecd5695" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019aff10-0809-70ee-8298-d67757ad76d2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019aff10-0809-7470-a8f7-67eabc9e087b" xlink:to="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019aff10-0809-70ee-8298-d67757ad76d2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/SecuritiesScheduleofUnrealizedLossesonAvailableforSaleInvestmentsDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#SecuritiesScheduleofUnrealizedLossesonAvailableforSaleInvestmentsDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/SecuritiesScheduleofUnrealizedLossesonAvailableforSaleInvestmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_019ca0d2-6fcc-75a7-b15d-83ef6e60971b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_019ca0d2-6fcc-7a4b-9aa3-4e3eade97f4b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_019ca0d2-6fcc-75a7-b15d-83ef6e60971b" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_019ca0d2-6fcc-7a4b-9aa3-4e3eade97f4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_019ca0d2-6fcc-71af-b720-f1565262035c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionAccumulatedLoss_019ca0d2-6fcc-75a7-b15d-83ef6e60971b" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_019ca0d2-6fcc-71af-b720-f1565262035c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue_019ca0d2-4f4f-7df1-abb7-41578b0fd69b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_019ca0d2-4f4f-73dd-a7c0-869c31daedd1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue_019ca0d2-4f4f-7df1-abb7-41578b0fd69b" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue_019ca0d2-4f4f-73dd-a7c0-869c31daedd1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_019ca0d2-4f4f-784b-8186-158b4e48e618" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionFairValue_019ca0d2-4f4f-7df1-abb7-41578b0fd69b" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue_019ca0d2-4f4f-784b-8186-158b4e48e618" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/SecuritiesScheduleofUnrealizedLossesonHeldtoMaturityInvestmentsDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#SecuritiesScheduleofUnrealizedLossesonHeldtoMaturityInvestmentsDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/SecuritiesScheduleofUnrealizedLossesonHeldtoMaturityInvestmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019b50c6-198e-7876-9ba0-8c02cc488aa1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_019b50c6-198e-7ff2-81c5-d1e2b0a1d661" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019b50c6-198e-7876-9ba0-8c02cc488aa1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_019b50c6-198e-7ff2-81c5-d1e2b0a1d661" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_019b50c6-198e-7975-ac3d-caa490ed7d00" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019b50c6-198e-7876-9ba0-8c02cc488aa1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_019b50c6-198e-7975-ac3d-caa490ed7d00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_019b50c6-198e-7a0a-868f-fe18d2159c6c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_019b50c6-198e-7d3b-ac6b-9cfe354366f9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_019b50c6-198e-7a0a-868f-fe18d2159c6c" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_019b50c6-198e-7d3b-ac6b-9cfe354366f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_019b50c6-198e-7e33-be8d-7687237ceb70" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_019b50c6-198e-7a0a-868f-fe18d2159c6c" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_019b50c6-198e-7e33-be8d-7687237ceb70" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/SecuritiesAdditionalInformationDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#SecuritiesAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/SecuritiesAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_htbk_InvestmentSecuritiesQualitativeDisclosureNumberOfPositions_019aff10-0809-73fc-8d29-ca0d21c15c9d" xlink:href="htbk-20251231.xsd#htbk_InvestmentSecuritiesQualitativeDisclosureNumberOfPositions"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_AvailableForSaleSecuritiesQualitativeDisclosureNumberOfPositions_019aff10-0809-7e74-be09-f7db712c780b" xlink:href="htbk-20251231.xsd#htbk_AvailableForSaleSecuritiesQualitativeDisclosureNumberOfPositions"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_htbk_InvestmentSecuritiesQualitativeDisclosureNumberOfPositions_019aff10-0809-73fc-8d29-ca0d21c15c9d" xlink:to="loc_htbk_AvailableForSaleSecuritiesQualitativeDisclosureNumberOfPositions_019aff10-0809-7e74-be09-f7db712c780b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_HeldToMaturitySecuritiesQualitativeDisclosureNumberOfPositions_019aff10-0809-767d-a27e-bb2370bb6f2a" xlink:href="htbk-20251231.xsd#htbk_HeldToMaturitySecuritiesQualitativeDisclosureNumberOfPositions"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_htbk_InvestmentSecuritiesQualitativeDisclosureNumberOfPositions_019aff10-0809-73fc-8d29-ca0d21c15c9d" xlink:to="loc_htbk_HeldToMaturitySecuritiesQualitativeDisclosureNumberOfPositions_019aff10-0809-767d-a27e-bb2370bb6f2a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/SecuritiesScheduleofAmortizedCostandFairValueofDebtSecuritiesbyContractualMaturitySecuritiesAvailableforsaleDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#SecuritiesScheduleofAmortizedCostandFairValueofDebtSecuritiesbyContractualMaturitySecuritiesAvailableforsaleDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/SecuritiesScheduleofAmortizedCostandFairValueofDebtSecuritiesbyContractualMaturitySecuritiesAvailableforsaleDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019aff10-0809-7cca-b269-6b8dcb507c8a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterThreeMonthsThroughOneYearAmortizedCostBasis_019aff10-0809-7a0b-8c92-2c041f07b9ef" xlink:href="htbk-20251231.xsd#htbk_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterThreeMonthsThroughOneYearAmortizedCostBasis"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019aff10-0809-7cca-b269-6b8dcb507c8a" xlink:to="loc_htbk_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterThreeMonthsThroughOneYearAmortizedCostBasis_019aff10-0809-7a0b-8c92-2c041f07b9ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_019aff10-0809-70b9-a8ce-9f23841820b4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019aff10-0809-7cca-b269-6b8dcb507c8a" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_019aff10-0809-70b9-a8ce-9f23841820b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_019aff10-0809-7aaf-a438-f1dc937ed7e2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019aff10-0809-7cca-b269-6b8dcb507c8a" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_019aff10-0809-7aaf-a438-f1dc937ed7e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019aff10-0809-7ef6-8e4b-affdd603fe65" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_019aff10-0809-7ad6-bfa1-c548f0895bfe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019aff10-0809-7ef6-8e4b-affdd603fe65" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_019aff10-0809-7ad6-bfa1-c548f0895bfe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_019aff10-0809-7b29-a559-cae722d37941" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019aff10-0809-7ef6-8e4b-affdd603fe65" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_019aff10-0809-7b29-a559-cae722d37941" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterThreeMonthsThroughOneYearFairValue_019aff10-0809-7565-aeda-b430b81f7bcc" xlink:href="htbk-20251231.xsd#htbk_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterThreeMonthsThroughOneYearFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019aff10-0809-7ef6-8e4b-affdd603fe65" xlink:to="loc_htbk_AvailableForSaleSecuritiesDebtMaturitiesRollingAfterThreeMonthsThroughOneYearFairValue_019aff10-0809-7565-aeda-b430b81f7bcc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/SecuritiesScheduleofAmortizedCostandFairValueofDebtSecuritiesbyContractualMaturitySecuritiesHeldtomaturityDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#SecuritiesScheduleofAmortizedCostandFairValueofDebtSecuritiesbyContractualMaturitySecuritiesHeldtomaturityDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/SecuritiesScheduleofAmortizedCostandFairValueofDebtSecuritiesbyContractualMaturitySecuritiesHeldtomaturityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019aff10-0809-73c7-9578-ab5f5f666938" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithoutSingleMaturityDateNetCarryingAmount_019aff10-0809-72bb-abed-c852719dc009" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithoutSingleMaturityDateNetCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019aff10-0809-73c7-9578-ab5f5f666938" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithoutSingleMaturityDateNetCarryingAmount_019aff10-0809-72bb-abed-c852719dc009" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_019aff10-0809-7076-b383-a5ba23866117" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019aff10-0809-73c7-9578-ab5f5f666938" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsNetCarryingAmount_019aff10-0809-7076-b383-a5ba23866117" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_019aff10-0809-70e8-a7ef-ce664581eb11" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019aff10-0809-73c7-9578-ab5f5f666938" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesAfterOneThroughFiveYearsNetCarryingAmount_019aff10-0809-70e8-a7ef-ce664581eb11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_019aff10-0809-73b2-b919-18d5ee79aee2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestAfterAllowanceForCreditLoss_019aff10-0809-73c7-9578-ab5f5f666938" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithinOneYearNetCarryingAmount_019aff10-0809-73b2-b919-18d5ee79aee2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesFairValue_019aff10-0809-723f-8d0d-8a5ccc09c808" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_019aff10-0809-7f42-be19-1664051bc5c7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_019aff10-0809-723f-8d0d-8a5ccc09c808" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_019aff10-0809-7f42-be19-1664051bc5c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue_019aff10-0809-730e-b1c5-7e9e3d6b915c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_019aff10-0809-723f-8d0d-8a5ccc09c808" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue_019aff10-0809-730e-b1c5-7e9e3d6b915c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_019aff10-0809-7d34-a1b1-a29ac447eb79" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_019aff10-0809-723f-8d0d-8a5ccc09c808" xlink:to="loc_us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_019aff10-0809-7d34-a1b1-a29ac447eb79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_HeldToMaturitySecuritiesDebtMaturitiesRollingAfterThreeMonthsThroughOneYearFairValue_019aff10-0809-7293-8fb2-1a7c2f594d4d" xlink:href="htbk-20251231.xsd#htbk_HeldToMaturitySecuritiesDebtMaturitiesRollingAfterThreeMonthsThroughOneYearFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_HeldToMaturitySecuritiesFairValue_019aff10-0809-723f-8d0d-8a5ccc09c808" xlink:to="loc_htbk_HeldToMaturitySecuritiesDebtMaturitiesRollingAfterThreeMonthsThroughOneYearFairValue_019aff10-0809-7293-8fb2-1a7c2f594d4d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofLoansDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#LoansandAllowanceforCreditLossesonLoansScheduleofLoansDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofLoansDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019aff10-0809-7f8a-8cae-8fe781bac17b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_019aff10-0809-79d6-a63e-f1a81544c19f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019aff10-0809-7f8a-8cae-8fe781bac17b" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_019aff10-0809-79d6-a63e-f1a81544c19f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount_019aff10-0809-7067-aa10-4dcef27430d7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019aff10-0809-7f8a-8cae-8fe781bac17b" xlink:to="loc_us-gaap_FinancingReceivableUnamortizedLoanCommitmentOriginationFeeAndPremiumDiscount_019aff10-0809-7067-aa10-4dcef27430d7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofChangesinAllowanceforLoanCreditLossesDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#LoansandAllowanceforCreditLossesonLoansScheduleofChangesinAllowanceforLoanCreditLossesDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofChangesinAllowanceforLoanCreditLossesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffAfterRecovery_019b5114-4ab4-7fb1-8cdc-fde35a8c3cd4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffAfterRecovery"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019b5114-4ab4-704e-a45c-e583b7e7a056" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffAfterRecovery_019b5114-4ab4-7fb1-8cdc-fde35a8c3cd4" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019b5114-4ab4-704e-a45c-e583b7e7a056" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery_019b5114-4ab4-7f42-a4ca-50b90d5351ad" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffAfterRecovery_019b5114-4ab4-7fb1-8cdc-fde35a8c3cd4" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery_019b5114-4ab4-7f42-a4ca-50b90d5351ad" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofNonaccrualStatusandLoansPastDueOver90DaysDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#LoansandAllowanceforCreditLossesonLoansScheduleofNonaccrualStatusandLoansPastDueOver90DaysDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofNonaccrualStatusandLoansPastDueOver90DaysDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrual_019aff10-0809-789e-a71d-ba307fd1fff0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrual"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterest90DaysOrMorePastDueStillAccruing_019aff10-0809-7c06-9c74-c200d896ab1d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterest90DaysOrMorePastDueStillAccruing"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrual_019aff10-0809-789e-a71d-ba307fd1fff0" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterest90DaysOrMorePastDueStillAccruing_019aff10-0809-7c06-9c74-c200d896ab1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_FinancingReceivableExcludingAccruedInterestNonaccrualWithAllowance_019aff10-0809-793d-a10e-4d9a8aeae2c6" xlink:href="htbk-20251231.xsd#htbk_FinancingReceivableExcludingAccruedInterestNonaccrualWithAllowance"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrual_019aff10-0809-789e-a71d-ba307fd1fff0" xlink:to="loc_htbk_FinancingReceivableExcludingAccruedInterestNonaccrualWithAllowance_019aff10-0809-793d-a10e-4d9a8aeae2c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrualNoAllowance_019aff10-0809-7097-9f43-8c6e60d43780" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrualNoAllowance"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrual_019aff10-0809-789e-a71d-ba307fd1fff0" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestNonaccrualNoAllowance_019aff10-0809-7097-9f43-8c6e60d43780" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofCreditQualityIndicatorsDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#LoansandAllowanceforCreditLossesonLoansScheduleofCreditQualityIndicatorsDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofCreditQualityIndicatorsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_019aff10-080a-75d3-a3f2-71a8e22355df" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_019aff10-080a-76bc-a50f-2c5fb7380fc7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolving"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_019aff10-080a-75d3-a3f2-71a8e22355df" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolving_019aff10-080a-76bc-a50f-2c5fb7380fc7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_019aff10-080a-7af2-9448-741c13b42e3c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_019aff10-080a-75d3-a3f2-71a8e22355df" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_019aff10-080a-7af2-9448-741c13b42e3c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_019aff10-080a-7254-bf9b-85dfae5eaefe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_019aff10-080a-75d3-a3f2-71a8e22355df" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_019aff10-080a-7254-bf9b-85dfae5eaefe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_019aff10-080a-7680-8403-a7bce252dad6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_019aff10-080a-75d3-a3f2-71a8e22355df" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_019aff10-080a-7680-8403-a7bce252dad6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_019aff10-080a-7d18-a98b-aa5685380fc4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_019aff10-080a-75d3-a3f2-71a8e22355df" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_019aff10-080a-7d18-a98b-aa5685380fc4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_019aff10-080a-7999-8074-85565020a954" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_019aff10-080a-75d3-a3f2-71a8e22355df" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_019aff10-080a-7999-8074-85565020a954" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_019aff10-080a-7470-be49-0112a50b90d8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossFeeAndLoanInProcess_019aff10-080a-75d3-a3f2-71a8e22355df" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_019aff10-080a-7470-be49-0112a50b90d8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofGrosschargeoffsbyyearoforiginationandrevolvingloansDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#LoansandAllowanceforCreditLossesonLoansScheduleofGrosschargeoffsbyyearoforiginationandrevolvingloansDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/LoansandAllowanceforCreditLossesonLoansScheduleofGrosschargeoffsbyyearoforiginationandrevolvingloansDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019aff10-080a-743c-b4a5-fba64ca26c1d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_019aff10-080a-7800-9af8-77b025d1e984" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019aff10-080a-743c-b4a5-fba64ca26c1d" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_019aff10-080a-7800-9af8-77b025d1e984" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_019aff10-080a-7194-bb73-863cb2af2093" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019aff10-080a-743c-b4a5-fba64ca26c1d" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_019aff10-080a-7194-bb73-863cb2af2093" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_019aff10-080a-7aa2-9f16-417b45c45014" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019aff10-080a-743c-b4a5-fba64ca26c1d" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_019aff10-080a-7aa2-9f16-417b45c45014" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_019aff10-080a-7aff-912b-4cb92c7d0012" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019aff10-080a-743c-b4a5-fba64ca26c1d" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_019aff10-080a-7aff-912b-4cb92c7d0012" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_019aff10-080a-707d-8e3a-e22e04cc6078" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019aff10-080a-743c-b4a5-fba64ca26c1d" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_019aff10-080a-707d-8e3a-e22e04cc6078" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_019b5165-93fa-7fa2-bf61-9c430de2f2ca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019aff10-080a-743c-b4a5-fba64ca26c1d" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_019b5165-93fa-7fa2-bf61-9c430de2f2ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_019b5165-93fa-75a6-8020-219637ffef93" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_019aff10-080a-743c-b4a5-fba64ca26c1d" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff_019b5165-93fa-75a6-8020-219637ffef93" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#PremisesandEquipmentScheduleofPremisesandEquipmentDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/PremisesandEquipmentScheduleofPremisesandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_019aff10-080a-7f67-a803-5a00b8f80894" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_019aff10-080a-7d65-8f83-aee3d4411e7c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_019aff10-080a-7f67-a803-5a00b8f80894" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_019aff10-080a-7d65-8f83-aee3d4411e7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_019aff10-080a-7615-8465-3e13b4252e03" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_019aff10-080a-7f67-a803-5a00b8f80894" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_019aff10-080a-7615-8465-3e13b4252e03" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/LeasesScheduleofMaturityAnalysisShowstheUndiscountedCashFlowsDueontheCompanysOperatingLeaseLiabilitiesDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#LeasesScheduleofMaturityAnalysisShowstheUndiscountedCashFlowsDueontheCompanysOperatingLeaseLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/LeasesScheduleofMaturityAnalysisShowstheUndiscountedCashFlowsDueontheCompanysOperatingLeaseLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019aff10-080a-7cdf-ae6a-5fe3e6a011c7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_019aff10-080a-74fe-bdd3-deb52564e726" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019aff10-080a-7cdf-ae6a-5fe3e6a011c7" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_019aff10-080a-74fe-bdd3-deb52564e726" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_019aff10-080a-741e-a2ad-cdccfddb55cb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019aff10-080a-7cdf-ae6a-5fe3e6a011c7" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_019aff10-080a-741e-a2ad-cdccfddb55cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_019aff10-080a-7184-b842-097d079f81d6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019aff10-080a-7cdf-ae6a-5fe3e6a011c7" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_019aff10-080a-7184-b842-097d079f81d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_019aff10-080a-7c59-992b-8d7e39b19732" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019aff10-080a-7cdf-ae6a-5fe3e6a011c7" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_019aff10-080a-7c59-992b-8d7e39b19732" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_019aff10-080a-71e2-acc1-3da9805a8cec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019aff10-080a-7cdf-ae6a-5fe3e6a011c7" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_019aff10-080a-71e2-acc1-3da9805a8cec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_019aff10-080a-7add-a020-c09bd613ccfe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019aff10-080a-7cdf-ae6a-5fe3e6a011c7" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_019aff10-080a-7add-a020-c09bd613ccfe" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/LeasesScheduleofMaturityAnalysisShowstheUndiscountedCashFlowsDueontheCompanysOperatingLeaseLiabilitiesDetails_1" xlink:type="simple" xlink:href="htbk-20251231.xsd#LeasesScheduleofMaturityAnalysisShowstheUndiscountedCashFlowsDueontheCompanysOperatingLeaseLiabilitiesDetails_1"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/LeasesScheduleofMaturityAnalysisShowstheUndiscountedCashFlowsDueontheCompanysOperatingLeaseLiabilitiesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019b67d3-0c6c-7b35-84ee-88e8b2078c00" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_019b67d3-0c6c-7c22-9782-2efdfd9437bf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019b67d3-0c6c-7b35-84ee-88e8b2078c00" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_019b67d3-0c6c-7c22-9782-2efdfd9437bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_019b67d3-0c6c-762d-97ca-2ac250c29a1d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019b67d3-0c6c-7b35-84ee-88e8b2078c00" xlink:to="loc_us-gaap_OperatingLeaseLiability_019b67d3-0c6c-762d-97ca-2ac250c29a1d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/GoodwillandOtherIntangibleAssetsScheduleofCompanysIntangibleAssetsDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#GoodwillandOtherIntangibleAssetsScheduleofCompanysIntangibleAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/GoodwillandOtherIntangibleAssetsScheduleofCompanysIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019aff10-080a-7321-9270-510c7dc60c18" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_019aff10-080a-7d40-b2be-087141a40da5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019aff10-080a-7321-9270-510c7dc60c18" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_019aff10-080a-7d40-b2be-087141a40da5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_019aff10-080a-7cc2-a5af-ff13e9678b99" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019aff10-080a-7321-9270-510c7dc60c18" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_019aff10-080a-7cc2-a5af-ff13e9678b99" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/GoodwillandOtherIntangibleAssetsScheduleofEstimatedAmortizationExpenseDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#GoodwillandOtherIntangibleAssetsScheduleofEstimatedAmortizationExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/GoodwillandOtherIntangibleAssetsScheduleofEstimatedAmortizationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019aff10-080a-7e70-af6f-3b5eb5a9c7e1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_019aff10-080a-7de2-ab10-eb3d25adafdb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019aff10-080a-7e70-af6f-3b5eb5a9c7e1" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_019aff10-080a-7de2-ab10-eb3d25adafdb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_019aff10-080a-78d2-8d19-b01ed1ea9833" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019aff10-080a-7e70-af6f-3b5eb5a9c7e1" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_019aff10-080a-78d2-8d19-b01ed1ea9833" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_019aff10-080a-78b6-8ea2-5e703a636536" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019aff10-080a-7e70-af6f-3b5eb5a9c7e1" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_019aff10-080a-78b6-8ea2-5e703a636536" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_019aff10-080a-73d4-82d4-ec53dd92eb74" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019aff10-080a-7e70-af6f-3b5eb5a9c7e1" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_019aff10-080a-73d4-82d4-ec53dd92eb74" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/DepositsScheduleofMaturitiesofTimeDepositsDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#DepositsScheduleofMaturitiesofTimeDepositsDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/DepositsScheduleofMaturitiesofTimeDepositsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDeposits_019aff10-080a-7dda-9efc-ac085b162f1f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDeposits"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearOne_019aff10-080a-7cf5-a53d-018059f53978" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositMaturitiesYearOne"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_019aff10-080a-7dda-9efc-ac085b162f1f" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearOne_019aff10-080a-7cf5-a53d-018059f53978" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearTwo_019aff10-080a-7c55-97f5-42303ca7e108" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositMaturitiesYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_019aff10-080a-7dda-9efc-ac085b162f1f" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearTwo_019aff10-080a-7c55-97f5-42303ca7e108" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearThree_019aff10-080a-7caa-85ec-41bf9fb330f1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositMaturitiesYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_019aff10-080a-7dda-9efc-ac085b162f1f" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearThree_019aff10-080a-7caa-85ec-41bf9fb330f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearFour_019aff10-080a-7c1a-9e60-ce297b25f84b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositMaturitiesYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_019aff10-080a-7dda-9efc-ac085b162f1f" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearFour_019aff10-080a-7c1a-9e60-ce297b25f84b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TimeDepositMaturitiesYearFive_019aff10-080a-791a-98f6-a45e3059fddb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositMaturitiesYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_019aff10-080a-7dda-9efc-ac085b162f1f" xlink:to="loc_us-gaap_TimeDepositMaturitiesYearFive_019aff10-080a-791a-98f6-a45e3059fddb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_TimeDepositMaturitiesYearSix_019b587d-14e3-789b-ad01-516055733b5d" xlink:href="htbk-20251231.xsd#htbk_TimeDepositMaturitiesYearSix"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_TimeDeposits_019aff10-080a-7dda-9efc-ac085b162f1f" xlink:to="loc_htbk_TimeDepositMaturitiesYearSix_019b587d-14e3-789b-ad01-516055733b5d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/DepositsScheduleofDepositsHeldbyEntityWithinICSCDARSProgramDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#DepositsScheduleofDepositsHeldbyEntityWithinICSCDARSProgramDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/DepositsScheduleofDepositsHeldbyEntityWithinICSCDARSProgramDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_htbk_TimeDepositsAndMoneyMarketDepositsCdars_019aff10-080a-7e47-b50f-4d42cc133159" xlink:href="htbk-20251231.xsd#htbk_TimeDepositsAndMoneyMarketDepositsCdars"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_InterestBearingDepositDemand_019aff10-080a-7357-8e29-6dfda72e31b4" xlink:href="htbk-20251231.xsd#htbk_InterestBearingDepositDemand"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_htbk_TimeDepositsAndMoneyMarketDepositsCdars_019aff10-080a-7e47-b50f-4d42cc133159" xlink:to="loc_htbk_InterestBearingDepositDemand_019aff10-080a-7357-8e29-6dfda72e31b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_MoneyMarketDepositsCdars_019aff10-080a-7c1c-bd99-92c9b2b1aa64" xlink:href="htbk-20251231.xsd#htbk_MoneyMarketDepositsCdars"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_htbk_TimeDepositsAndMoneyMarketDepositsCdars_019aff10-080a-7e47-b50f-4d42cc133159" xlink:to="loc_htbk_MoneyMarketDepositsCdars_019aff10-080a-7c1c-bd99-92c9b2b1aa64" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_TimeDepositsCdars_019aff10-080a-712b-8f18-4794e3601a35" xlink:href="htbk-20251231.xsd#htbk_TimeDepositsCdars"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_htbk_TimeDepositsAndMoneyMarketDepositsCdars_019aff10-080a-7e47-b50f-4d42cc133159" xlink:to="loc_htbk_TimeDepositsCdars_019aff10-080a-712b-8f18-4794e3601a35" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/IncomeTaxesScheduleofIncomeTaxExpenseDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#IncomeTaxesScheduleofIncomeTaxExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/IncomeTaxesScheduleofIncomeTaxExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_019aff10-08d1-72be-a846-2a7410bb7005" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_019aff10-08d1-7d12-91e6-d2e2300edde9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_019aff10-08d1-72be-a846-2a7410bb7005" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_019aff10-08d1-7d12-91e6-d2e2300edde9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_019aff10-08d1-70b6-a9b6-973023ffb321" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_019aff10-08d1-72be-a846-2a7410bb7005" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_019aff10-08d1-70b6-a9b6-973023ffb321" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019aff10-08d1-7b03-9109-3ebef3cf75ba" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_019aff10-08d1-748d-a2d9-4e39c4ee8832" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019aff10-08d1-7b03-9109-3ebef3cf75ba" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_019aff10-08d1-748d-a2d9-4e39c4ee8832" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019aff10-08d1-7c42-986f-a4831e46196e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019aff10-08d1-7b03-9109-3ebef3cf75ba" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019aff10-08d1-7c42-986f-a4831e46196e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019aff10-08d1-7120-a451-8d6b64c382e7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_019aff10-08d1-7839-840f-0028c896b63b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019aff10-08d1-7120-a451-8d6b64c382e7" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_019aff10-08d1-7839-840f-0028c896b63b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_019aff10-08d1-7a2b-8574-706dbc935734" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019aff10-08d1-7120-a451-8d6b64c382e7" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_019aff10-08d1-7a2b-8574-706dbc935734" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/IncomeTaxesScheduleofEffectiveTaxRateDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#IncomeTaxesScheduleofEffectiveTaxRateDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/IncomeTaxesScheduleofEffectiveTaxRateDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019c2d50-9d0d-78de-a8ba-952f994b156a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_019c2d50-9d0d-79d9-ba3c-3f4b44a213a2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c2d50-9d0d-78de-a8ba-952f994b156a" xlink:to="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_019c2d50-9d0d-79d9-ba3c-3f4b44a213a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_019c2d50-9d0d-77f1-b8e1-7b3b92dad10d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c2d50-9d0d-78de-a8ba-952f994b156a" xlink:to="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_019c2d50-9d0d-77f1-b8e1-7b3b92dad10d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpense_019c2d50-9d0d-7fb1-aaaa-8fc9a6b21dcd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c2d50-9d0d-78de-a8ba-952f994b156a" xlink:to="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpense_019c2d50-9d0d-7fb1-aaaa-8fc9a6b21dcd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitAmount_019c2d50-9d0d-795f-aaf4-e3aab598e555" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitAmount"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c2d50-9d0d-78de-a8ba-952f994b156a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitAmount_019c2d50-9d0d-795f-aaf4-e3aab598e555" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxExemptIncome_019c2d50-9d0d-7216-98df-23885966b7f6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationTaxExemptIncome"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c2d50-9d0d-78de-a8ba-952f994b156a" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxExemptIncome_019c2d50-9d0d-7216-98df-23885966b7f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxCredits_019c2d50-9d0d-7af7-9325-6579e1866164" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationTaxCredits"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c2d50-9d0d-78de-a8ba-952f994b156a" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxCredits_019c2d50-9d0d-7af7-9325-6579e1866164" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_EffectiveIncomeTaxRateReconciliationChangeInCashSurrenderValueOfLifeInsuranceAmount_019c2d50-9d0d-7fe7-896b-a647b3b110b1" xlink:href="htbk-20251231.xsd#htbk_EffectiveIncomeTaxRateReconciliationChangeInCashSurrenderValueOfLifeInsuranceAmount"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c2d50-9d0d-78de-a8ba-952f994b156a" xlink:to="loc_htbk_EffectiveIncomeTaxRateReconciliationChangeInCashSurrenderValueOfLifeInsuranceAmount_019c2d50-9d0d-7fe7-896b-a647b3b110b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationOtherAdjustments_019c2d50-9d0d-75c8-8eda-284106fb90e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationOtherAdjustments"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019c2d50-9d0d-78de-a8ba-952f994b156a" xlink:to="loc_us-gaap_IncomeTaxReconciliationOtherAdjustments_019c2d50-9d0d-75c8-8eda-284106fb90e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c2d50-d336-71be-bda5-335374b81fa5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_019c2d50-d336-7660-a909-f540a35a41cb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c2d50-d336-71be-bda5-335374b81fa5" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_019c2d50-d336-7660-a909-f540a35a41cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_019c2d50-d336-7321-92b4-da6cc7141395" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c2d50-d336-71be-bda5-335374b81fa5" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_019c2d50-d336-7321-92b4-da6cc7141395" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpense_019c2d50-d336-713b-9297-120d29757c25" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c2d50-d336-71be-bda5-335374b81fa5" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpense_019c2d50-d336-713b-9297-120d29757c25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitPercent_019c2d50-d336-773a-8057-ae22b12ee4ab" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitPercent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c2d50-d336-71be-bda5-335374b81fa5" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitPercent_019c2d50-d336-773a-8057-ae22b12ee4ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome_019c2d50-d336-7259-82a3-0e87d3c53567" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c2d50-d336-71be-bda5-335374b81fa5" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome_019c2d50-d336-7259-82a3-0e87d3c53567" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_019c2d50-d336-793e-9a1c-98b5dc4135b5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c2d50-d336-71be-bda5-335374b81fa5" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_019c2d50-d336-793e-9a1c-98b5dc4135b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_EffectiveIncomeTaxRateReconciliationChangeInCashSurrenderValueOfLifeInsurancePercent_019c2d50-d336-72d1-b423-3126d502c993" xlink:href="htbk-20251231.xsd#htbk_EffectiveIncomeTaxRateReconciliationChangeInCashSurrenderValueOfLifeInsurancePercent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c2d50-d336-71be-bda5-335374b81fa5" xlink:to="loc_htbk_EffectiveIncomeTaxRateReconciliationChangeInCashSurrenderValueOfLifeInsurancePercent_019c2d50-d336-72d1-b423-3126d502c993" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_019c2d50-d336-77e0-8e48-77b19947296e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019c2d50-d336-71be-bda5-335374b81fa5" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_019c2d50-d336-77e0-8e48-77b19947296e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/IncomeTaxesScheduleofIncomeTaxesPaidNetofRefundsReceivedDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#IncomeTaxesScheduleofIncomeTaxesPaidNetofRefundsReceivedDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/IncomeTaxesScheduleofIncomeTaxesPaidNetofRefundsReceivedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxesPaidNet_019c2d56-1266-78c8-bfdc-626bfcd24335" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxesPaidNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidFederalAfterRefundReceived_019c2d56-1266-75d8-8221-4515464d5d90" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidFederalAfterRefundReceived"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxesPaidNet_019c2d56-1266-78c8-bfdc-626bfcd24335" xlink:to="loc_us-gaap_IncomeTaxPaidFederalAfterRefundReceived_019c2d56-1266-75d8-8221-4515464d5d90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived_019c2d56-1266-799e-bae9-9cc5658251fb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxesPaidNet_019c2d56-1266-78c8-bfdc-626bfcd24335" xlink:to="loc_us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived_019c2d56-1266-799e-bae9-9cc5658251fb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_019aff10-08d1-7728-b1d3-078f3fe2cd44" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPostretirementBenefits_019aff10-08d1-7a68-b727-f7fdf3ba0edd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPostretirementBenefits"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019aff10-08d1-7728-b1d3-078f3fe2cd44" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsPostretirementBenefits_019aff10-08d1-7a68-b727-f7fdf3ba0edd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses_019aff10-08d1-7cc0-a5c6-b1a35783a61d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019aff10-08d1-7728-b1d3-078f3fe2cd44" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses_019aff10-08d1-7cc0-a5c6-b1a35783a61d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsStateTaxes_019aff10-08d1-7251-9a29-a57893e4b554" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsStateTaxes"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019aff10-08d1-7728-b1d3-078f3fe2cd44" xlink:to="loc_us-gaap_DeferredTaxAssetsStateTaxes_019aff10-08d1-7251-9a29-a57893e4b554" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_DeferredTaxAssetsLeaseLiabilities_019aff10-08d1-7784-b8ba-0f1ef9c4a685" xlink:href="htbk-20251231.xsd#htbk_DeferredTaxAssetsLeaseLiabilities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019aff10-08d1-7728-b1d3-078f3fe2cd44" xlink:to="loc_htbk_DeferredTaxAssetsLeaseLiabilities_019aff10-08d1-7784-b8ba-0f1ef9c4a685" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_019aff10-08d1-7bc5-8058-d544b0a96b9b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019aff10-08d1-7728-b1d3-078f3fe2cd44" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_019aff10-08d1-7bc5-8058-d544b0a96b9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsStateAndLocal_019aff10-08d1-74a3-b592-00c6f18b9407" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsStateAndLocal"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019aff10-08d1-7728-b1d3-078f3fe2cd44" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsStateAndLocal_019aff10-08d1-74a3-b592-00c6f18b9407" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsDomestic_019aff10-08d1-76eb-8e45-8180c9c805d8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsDomestic"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019aff10-08d1-7728-b1d3-078f3fe2cd44" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsDomestic_019aff10-08d1-76eb-8e45-8180c9c805d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_019aff10-08d1-7dee-9c4d-f70b28c1a430" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019aff10-08d1-7728-b1d3-078f3fe2cd44" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_019aff10-08d1-7dee-9c4d-f70b28c1a430" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_019aff10-08d1-7221-a84d-2b8d550d752d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019aff10-08d1-7728-b1d3-078f3fe2cd44" xlink:to="loc_us-gaap_DeferredTaxAssetsPropertyPlantAndEquipment_019aff10-08d1-7221-a84d-2b8d550d752d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsUnrealizedLossesOnAvailableforSaleSecuritiesGross_019aff10-08d1-7515-b8e4-c27cc9786753" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsUnrealizedLossesOnAvailableforSaleSecuritiesGross"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019aff10-08d1-7728-b1d3-078f3fe2cd44" xlink:to="loc_us-gaap_DeferredTaxAssetsUnrealizedLossesOnAvailableforSaleSecuritiesGross_019aff10-08d1-7515-b8e4-c27cc9786753" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_DeferredTaxAssetsNonaccrualInterest_019aff10-08d1-74c7-bf48-fc394469614e" xlink:href="htbk-20251231.xsd#htbk_DeferredTaxAssetsNonaccrualInterest"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019aff10-08d1-7728-b1d3-078f3fe2cd44" xlink:to="loc_htbk_DeferredTaxAssetsNonaccrualInterest_019aff10-08d1-74c7-bf48-fc394469614e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeBenefits_019aff10-08d1-773c-b656-dd0e95d95b98" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeBenefits"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019aff10-08d1-7728-b1d3-078f3fe2cd44" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeBenefits_019aff10-08d1-773c-b656-dd0e95d95b98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_019aff10-08d1-7b52-8953-634f21b986bb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsOther"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_019aff10-08d1-7728-b1d3-078f3fe2cd44" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_019aff10-08d1-7b52-8953-634f21b986bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_019aff10-08d1-772d-bb4f-b83a8e55663a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_DeferredTaxAssetsRightOfAssets_019aff10-08d1-7de0-90b4-3ab69452e0d1" xlink:href="htbk-20251231.xsd#htbk_DeferredTaxAssetsRightOfAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_019aff10-08d1-772d-bb4f-b83a8e55663a" xlink:to="loc_htbk_DeferredTaxAssetsRightOfAssets_019aff10-08d1-7de0-90b4-3ab69452e0d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesFinancingArrangements_019aff10-08d1-7ffe-b29f-e47e90810a89" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesFinancingArrangements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_019aff10-08d1-772d-bb4f-b83a8e55663a" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesFinancingArrangements_019aff10-08d1-7ffe-b29f-e47e90810a89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_019aff10-08d1-7af6-ad89-a2aadef29a0e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_019aff10-08d1-772d-bb4f-b83a8e55663a" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_019aff10-08d1-7af6-ad89-a2aadef29a0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPrepaidExpenses_019aff10-08d1-787b-8621-f20705a2e9e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesPrepaidExpenses"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_019aff10-08d1-772d-bb4f-b83a8e55663a" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPrepaidExpenses_019aff10-08d1-787b-8621-f20705a2e9e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_DeferredTaxLiabilitiesDebtSecuritiesAvailableForSaleUnrealizedGain_019aff10-08d1-7a49-bc69-bffdfe22c58f" xlink:href="htbk-20251231.xsd#htbk_DeferredTaxLiabilitiesDebtSecuritiesAvailableForSaleUnrealizedGain"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_019aff10-08d1-772d-bb4f-b83a8e55663a" xlink:to="loc_htbk_DeferredTaxLiabilitiesDebtSecuritiesAvailableForSaleUnrealizedGain_019aff10-08d1-7a49-bc69-bffdfe22c58f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_DeferredTaxLiabilitiesFederalHomeLoanBankStock_019aff10-08d1-7ccf-9c6b-eded48a94a7f" xlink:href="htbk-20251231.xsd#htbk_DeferredTaxLiabilitiesFederalHomeLoanBankStock"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_019aff10-08d1-772d-bb4f-b83a8e55663a" xlink:to="loc_htbk_DeferredTaxLiabilitiesFederalHomeLoanBankStock_019aff10-08d1-7ccf-9c6b-eded48a94a7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_DeferredTaxLiabilitiesInterestOnlyStripReceivables_019aff10-08d1-78e3-af49-a42a5bbb784d" xlink:href="htbk-20251231.xsd#htbk_DeferredTaxLiabilitiesInterestOnlyStripReceivables"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_019aff10-08d1-772d-bb4f-b83a8e55663a" xlink:to="loc_htbk_DeferredTaxLiabilitiesInterestOnlyStripReceivables_019aff10-08d1-78e3-af49-a42a5bbb784d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_019c55db-0afb-794f-8680-4dae8e1212ab" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesOther"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_019aff10-08d1-772d-bb4f-b83a8e55663a" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_019c55db-0afb-794f-8680-4dae8e1212ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_019aff10-08d1-75d6-81db-72dcb0ba74ad" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_019aff10-08d1-74a4-ac6c-6f1dfcffe0cb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_019aff10-08d1-75d6-81db-72dcb0ba74ad" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_019aff10-08d1-74a4-ac6c-6f1dfcffe0cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_019aff10-08d1-75a3-8576-bffcceacc624" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_019aff10-08d1-75d6-81db-72dcb0ba74ad" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_019aff10-08d1-75a3-8576-bffcceacc624" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/BenefitPlansScheduleofComponentsofNetPeriodicBenefitCostDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#BenefitPlansScheduleofComponentsofNetPeriodicBenefitCostDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/BenefitPlansScheduleofComponentsofNetPeriodicBenefitCostDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019aff10-08d1-70ff-9586-e078fcb0c791" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_019aff10-08d1-7b7d-a3dc-df04894b960e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019aff10-08d1-70ff-9586-e078fcb0c791" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_019aff10-08d1-7b7d-a3dc-df04894b960e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_019aff10-08d1-7255-95be-7593d41dbee7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019aff10-08d1-70ff-9586-e078fcb0c791" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_019aff10-08d1-7255-95be-7593d41dbee7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_019aff10-08d1-7f92-bc86-b76645d962b6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019aff10-08d1-70ff-9586-e078fcb0c791" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_019aff10-08d1-7f92-bc86-b76645d962b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_AmortizationOfPriorTransitionObligationAndActuarialLosses_019b5a53-cbe1-79cb-8ca7-d43b46ee4ed7" xlink:href="htbk-20251231.xsd#htbk_AmortizationOfPriorTransitionObligationAndActuarialLosses"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019aff10-08d1-70ff-9586-e078fcb0c791" xlink:to="loc_htbk_AmortizationOfPriorTransitionObligationAndActuarialLosses_019b5a53-cbe1-79cb-8ca7-d43b46ee4ed7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/BenefitPlansScheduleofAmountsRecognizedinAccumulatedOtherComprehensiveLossDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#BenefitPlansScheduleofAmountsRecognizedinAccumulatedOtherComprehensiveLossDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/BenefitPlansScheduleofAmountsRecognizedinAccumulatedOtherComprehensiveLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_019aff10-08d1-708d-bc45-895080fdf908" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax_019aff10-08d1-76b1-8c5c-1e32e665fb8b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_019aff10-08d1-708d-bc45-895080fdf908" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax_019aff10-08d1-76b1-8c5c-1e32e665fb8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetTransitionAssetsObligationsAfterTax_019aff10-08d1-7763-b167-26410522c628" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetTransitionAssetsObligationsAfterTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_019aff10-08d1-708d-bc45-895080fdf908" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetTransitionAssetsObligationsAfterTax_019aff10-08d1-7763-b167-26410522c628" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/ShareholdersEquityandEarningsPerShareScheduleofReconciliationofFactorsUsedinComputingBasicandDilutedEarningsperCommonShareDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#ShareholdersEquityandEarningsPerShareScheduleofReconciliationofFactorsUsedinComputingBasicandDilutedEarningsperCommonShareDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/ShareholdersEquityandEarningsPerShareScheduleofReconciliationofFactorsUsedinComputingBasicandDilutedEarningsperCommonShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019b67ea-b420-784e-bfce-fd4a2c272a73" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_019b67ea-b420-7ca7-b038-bb95b9148341" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019b67ea-b420-784e-bfce-fd4a2c272a73" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_019b67ea-b420-7ca7-b038-bb95b9148341" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019b67ea-b420-740e-9a3e-0c8b5767f86b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019b67ea-b420-784e-bfce-fd4a2c272a73" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019b67ea-b420-740e-9a3e-0c8b5767f86b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/RevenueRecognitionDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#RevenueRecognitionDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/RevenueRecognitionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_019aff10-08d2-77e9-a612-c0d614e1ff6e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome_019aff10-08d2-7793-b24a-f9418fa225b6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019aff10-08d2-77e9-a612-c0d614e1ff6e" xlink:to="loc_us-gaap_RevenueNotFromContractWithCustomerExcludingInterestIncome_019aff10-08d2-7793-b24a-f9418fa225b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_019aff10-08d2-71cd-ad70-e5abfb6846b4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestIncome_019aff10-08d2-77e9-a612-c0d614e1ff6e" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_019aff10-08d2-71cd-ad70-e5abfb6846b4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/NoninterestExpenseDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#NoninterestExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/NoninterestExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestExpense_019bd9d8-7a08-7d94-a192-493b407f5a51" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LaborAndRelatedExpense_019bd9d8-7a08-7cb1-b09d-404fb9e1466d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LaborAndRelatedExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019bd9d8-7a08-7d94-a192-493b407f5a51" xlink:to="loc_us-gaap_LaborAndRelatedExpense_019bd9d8-7a08-7cb1-b09d-404fb9e1466d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OccupancyNet_019bd9d8-7a08-7ad2-84e4-77e6a8c3297f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OccupancyNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019bd9d8-7a08-7d94-a192-493b407f5a51" xlink:to="loc_us-gaap_OccupancyNet_019bd9d8-7a08-7ad2-84e4-77e6a8c3297f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LitigationSettlementExpense_019bd9d8-7a08-72df-b8eb-0bf1636966f5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LitigationSettlementExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019bd9d8-7a08-7d94-a192-493b407f5a51" xlink:to="loc_us-gaap_LitigationSettlementExpense_019bd9d8-7a08-72df-b8eb-0bf1636966f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfessionalFees_019bd9d8-7a08-72a7-aab9-ccac9d2da583" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProfessionalFees"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019bd9d8-7a08-7d94-a192-493b407f5a51" xlink:to="loc_us-gaap_ProfessionalFees_019bd9d8-7a08-72a7-aab9-ccac9d2da583" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_SoftwareSubscription_019bd9d8-7a08-7d98-95a2-d1c00644fa29" xlink:href="htbk-20251231.xsd#htbk_SoftwareSubscription"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019bd9d8-7a08-7d94-a192-493b407f5a51" xlink:to="loc_htbk_SoftwareSubscription_019bd9d8-7a08-7d98-95a2-d1c00644fa29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InformationTechnologyAndDataProcessing_019bd9d8-7a08-7777-b1d1-f7baa71ea401" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InformationTechnologyAndDataProcessing"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019bd9d8-7a08-7d94-a192-493b407f5a51" xlink:to="loc_us-gaap_InformationTechnologyAndDataProcessing_019bd9d8-7a08-7777-b1d1-f7baa71ea401" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_ClientServices_019bd9d8-7a08-7cc3-80a9-39fafbec3ed0" xlink:href="htbk-20251231.xsd#htbk_ClientServices"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019bd9d8-7a08-7d94-a192-493b407f5a51" xlink:to="loc_htbk_ClientServices_019bd9d8-7a08-7cc3-80a9-39fafbec3ed0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralInsuranceExpense_019bd9d8-7a08-77e5-8e04-64bd1b182c5b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GeneralInsuranceExpense"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019bd9d8-7a08-7d94-a192-493b407f5a51" xlink:to="loc_us-gaap_GeneralInsuranceExpense_019bd9d8-7a08-77e5-8e04-64bd1b182c5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_019bd9d8-7a08-784a-b7a1-fb032667bc69" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019bd9d8-7a08-7d94-a192-493b407f5a51" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_019bd9d8-7a08-784a-b7a1-fb032667bc69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoninterestExpense_019bd9d8-7a08-7e3b-85e6-154583ce6ebd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNoninterestExpense"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NoninterestExpense_019bd9d8-7a08-7d94-a192-493b407f5a51" xlink:to="loc_us-gaap_OtherNoninterestExpense_019bd9d8-7a08-7e3b-85e6-154583ce6ebd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/BusinessSegmentInformationScheduleofInformationbyOperatingSegmentDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#BusinessSegmentInformationScheduleofInformationbyOperatingSegmentDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/BusinessSegmentInformationScheduleofInformationbyOperatingSegmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019ca0ed-e70c-7a42-8f6e-f06ff389997c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019ca0ed-e70c-7b9c-8a50-621d3ef1cfda" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019ca0ed-e70c-7a42-8f6e-f06ff389997c" xlink:to="loc_us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss_019ca0ed-e70c-7b9c-8a50-621d3ef1cfda" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoninterestIncome_019ca0ed-e70c-7a55-a008-e336521de856" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NoninterestIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019ca0ed-e70c-7a42-8f6e-f06ff389997c" xlink:to="loc_us-gaap_NoninterestIncome_019ca0ed-e70c-7a55-a008-e336521de856" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LaborAndRelatedExpense_019ca0ed-e70c-7bce-91eb-23587b897ab9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LaborAndRelatedExpense"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019ca0ed-e70c-7a42-8f6e-f06ff389997c" xlink:to="loc_us-gaap_LaborAndRelatedExpense_019ca0ed-e70c-7bce-91eb-23587b897ab9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingOtherItemAmount_019ca0ed-e70c-74cb-a9fa-45ed71ecbbc3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SegmentReportingOtherItemAmount"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019ca0ed-e70c-7a42-8f6e-f06ff389997c" xlink:to="loc_us-gaap_SegmentReportingOtherItemAmount_019ca0ed-e70c-74cb-a9fa-45ed71ecbbc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_IntersegmentExpenseAllocation_019ca0ed-e70c-79b1-abdc-cb371c7dcb13" xlink:href="htbk-20251231.xsd#htbk_IntersegmentExpenseAllocation"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019ca0ed-e70c-7a42-8f6e-f06ff389997c" xlink:to="loc_htbk_IntersegmentExpenseAllocation_019ca0ed-e70c-79b1-abdc-cb371c7dcb13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNet_019cbc21-c7f9-7551-99f0-cf88a3ea0e45" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_019cbc21-c7f9-71da-9262-cb9782060fa9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_019cbc21-c7f9-7551-99f0-cf88a3ea0e45" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_019cbc21-c7f9-71da-9262-cb9782060fa9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_IntersegmentInterestAllocation_019cbc21-c7f9-7361-817c-121fec7edfc0" xlink:href="htbk-20251231.xsd#htbk_IntersegmentInterestAllocation"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_019cbc21-c7f9-7551-99f0-cf88a3ea0e45" xlink:to="loc_htbk_IntersegmentInterestAllocation_019cbc21-c7f9-7361-817c-121fec7edfc0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019cbc21-c7f9-7940-9c86-166594afcf82" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseOperating"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestIncomeExpenseNet_019cbc21-c7f9-7551-99f0-cf88a3ea0e45" xlink:to="loc_us-gaap_InterestExpenseOperating_019cbc21-c7f9-7940-9c86-166594afcf82" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/ParentCompanyonlyCondensedFinancialInformationScheduleofBalanceSheetsDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#ParentCompanyonlyCondensedFinancialInformationScheduleofBalanceSheetsDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/ParentCompanyonlyCondensedFinancialInformationScheduleofBalanceSheetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019aff10-08d2-714a-b6ac-c095ae78a404" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubordinatedDebt_019aff10-08d2-7d9e-b744-e94ff2c63477" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SubordinatedDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019aff10-08d2-714a-b6ac-c095ae78a404" xlink:to="loc_us-gaap_SubordinatedDebt_019aff10-08d2-7d9e-b744-e94ff2c63477" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_019aff10-08d2-7c3c-9e77-bfd8f7faddd6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019aff10-08d2-714a-b6ac-c095ae78a404" xlink:to="loc_us-gaap_OtherLiabilities_019aff10-08d2-7c3c-9e77-bfd8f7faddd6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019aff10-08d2-79ae-aa0c-75537f51917b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019aff10-08d2-714a-b6ac-c095ae78a404" xlink:to="loc_us-gaap_StockholdersEquity_019aff10-08d2-79ae-aa0c-75537f51917b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019aff10-08d2-765f-aa10-b8991d667476" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_019aff10-08d2-7c0e-92c9-b8ede61eb141" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsAndFederalFundsSold"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019aff10-08d2-765f-aa10-b8991d667476" xlink:to="loc_us-gaap_CashCashEquivalentsAndFederalFundsSold_019aff10-08d2-7c0e-92c9-b8ede61eb141" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_InvestmentInSubsidiaryBank_019aff10-08d2-71bd-9486-e1ec163e7512" xlink:href="htbk-20251231.xsd#htbk_InvestmentInSubsidiaryBank"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019aff10-08d2-765f-aa10-b8991d667476" xlink:to="loc_htbk_InvestmentInSubsidiaryBank_019aff10-08d2-71bd-9486-e1ec163e7512" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_019aff10-08d2-74db-9d8e-cc3911a9cc89" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019aff10-08d2-765f-aa10-b8991d667476" xlink:to="loc_us-gaap_OtherAssets_019aff10-08d2-74db-9d8e-cc3911a9cc89" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/ParentCompanyonlyCondensedFinancialInformationScheduleofStatementsofIncomeDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#ParentCompanyonlyCondensedFinancialInformationScheduleofStatementsofIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/ParentCompanyonlyCondensedFinancialInformationScheduleofStatementsofIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_019aff10-08d2-7580-a5ba-e164875c0255" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeDividend_019aff10-08d2-7e4a-9d9e-c45a34adcf30" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentIncomeDividend"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_019aff10-08d2-7580-a5ba-e164875c0255" xlink:to="loc_us-gaap_InvestmentIncomeDividend_019aff10-08d2-7e4a-9d9e-c45a34adcf30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseOperating_019aff10-08d2-7d2e-9553-310038b31087" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpenseOperating"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_019aff10-08d2-7580-a5ba-e164875c0255" xlink:to="loc_us-gaap_InterestExpenseOperating_019aff10-08d2-7d2e-9553-310038b31087" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherExpenses_019aff10-08d2-7149-9243-d07b9cf001b9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherExpenses"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_019aff10-08d2-7580-a5ba-e164875c0255" xlink:to="loc_us-gaap_OtherExpenses_019aff10-08d2-7149-9243-d07b9cf001b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019aff10-08d2-7435-b19c-f6549d403466" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_019aff10-08d2-768a-87ae-13b3d9f3d711" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019aff10-08d2-7435-b19c-f6549d403466" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_019aff10-08d2-768a-87ae-13b3d9f3d711" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_019aff10-08d2-7bd1-a34a-b6b84d7ff01e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019aff10-08d2-7435-b19c-f6549d403466" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_019aff10-08d2-7bd1-a34a-b6b84d7ff01e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019aff10-08d2-7b05-8b40-b6545695c842" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019aff10-08d2-7435-b19c-f6549d403466" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019aff10-08d2-7b05-8b40-b6545695c842" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.heritagecommercecorp.com/role/ParentCompanyonlyCondensedFinancialInformationScheduleofStatementsofCashFlowsDetails" xlink:type="simple" xlink:href="htbk-20251231.xsd#ParentCompanyonlyCondensedFinancialInformationScheduleofStatementsofCashFlowsDetails"/>
  <link:calculationLink xlink:role="http://www.heritagecommercecorp.com/role/ParentCompanyonlyCondensedFinancialInformationScheduleofStatementsofCashFlowsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019aff10-08d2-74d0-8270-0be5a0904687" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_019aff10-08d2-7e6b-82b2-e35a6e436ff7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019aff10-08d2-74d0-8270-0be5a0904687" xlink:to="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_019aff10-08d2-7e6b-82b2-e35a6e436ff7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_019aff10-08d2-7751-86ff-df3683e17568" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019aff10-08d2-74d0-8270-0be5a0904687" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_019aff10-08d2-7751-86ff-df3683e17568" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019aff10-08d2-7916-8ad6-09a7b2cbfb89" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019aff10-08d2-74d0-8270-0be5a0904687" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019aff10-08d2-7916-8ad6-09a7b2cbfb89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-08d2-7241-81eb-6d323555d2f2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019aff10-08d2-7a3c-bcb6-fe1dd294062b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-08d2-7241-81eb-6d323555d2f2" xlink:to="loc_us-gaap_NetIncomeLoss_019aff10-08d2-7a3c-bcb6-fe1dd294062b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_htbk_AmortizationOfRestrictedStockAwardCashFlowImpact_019aff10-08d2-70f1-beb0-5868ff27bc09" xlink:href="htbk-20251231.xsd#htbk_AmortizationOfRestrictedStockAwardCashFlowImpact"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-08d2-7241-81eb-6d323555d2f2" xlink:to="loc_htbk_AmortizationOfRestrictedStockAwardCashFlowImpact_019aff10-08d2-70f1-beb0-5868ff27bc09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestmentsNetOfDividendsOrDistributions_019aff10-08d2-75a4-a406-bbf16cb0cdbf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromEquityMethodInvestmentsNetOfDividendsOrDistributions"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-08d2-7241-81eb-6d323555d2f2" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestmentsNetOfDividendsOrDistributions_019aff10-08d2-75a4-a406-bbf16cb0cdbf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_019aff10-08d2-7e11-852a-e4bc122cdd61" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019aff10-08d2-7241-81eb-6d323555d2f2" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_019aff10-08d2-7e11-852a-e4bc122cdd61" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
