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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2023 Workiva-->
<!--r:449dbd74-99e3-40c3-9e1c-5a134dbc06ad,g:374244a3-20f6-4e45-9952-707a8de727e1-->
<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.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="afrm-20230331.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_f098675a-3e61-46bf-87d3-8d581dacdd9a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_fb366acd-c6e8-46e2-8a6e-e5ada056804b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f098675a-3e61-46bf-87d3-8d581dacdd9a" xlink:to="loc_us-gaap_Liabilities_fb366acd-c6e8-46e2-8a6e-e5ada056804b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_2b9bbe71-7bd7-4bb3-acc1-25c031068d99" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_f098675a-3e61-46bf-87d3-8d581dacdd9a" xlink:to="loc_us-gaap_CommitmentsAndContingencies_2b9bbe71-7bd7-4bb3-acc1-25c031068d99" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_055f0c01-626a-419f-ac83-ac140323359f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f098675a-3e61-46bf-87d3-8d581dacdd9a" xlink:to="loc_us-gaap_StockholdersEquity_055f0c01-626a-419f-ac83-ac140323359f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_e972a2a5-6116-4d1d-b809-86cbd6302f55" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_19a8fa90-2c0d-48ea-bba7-0c6b36efd4d3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_e972a2a5-6116-4d1d-b809-86cbd6302f55" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_19a8fa90-2c0d-48ea-bba7-0c6b36efd4d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_2fef4ce1-4ec0-4b4d-b453-7ca3b1eee772" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_e972a2a5-6116-4d1d-b809-86cbd6302f55" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_2fef4ce1-4ec0-4b4d-b453-7ca3b1eee772" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_076ab6d3-4506-4ed0-8b3d-5665b0e7378d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_9d1ce2b2-cef7-404c-b324-6d9c6e8bbcf0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_076ab6d3-4506-4ed0-8b3d-5665b0e7378d" xlink:to="loc_us-gaap_CommonStockValue_9d1ce2b2-cef7-404c-b324-6d9c6e8bbcf0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_76453a40-0812-487a-a363-d998225c2121" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_076ab6d3-4506-4ed0-8b3d-5665b0e7378d" xlink:to="loc_us-gaap_AdditionalPaidInCapital_76453a40-0812-487a-a363-d998225c2121" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_b30d4ccf-aa8a-4132-a030-6906142d81d3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_076ab6d3-4506-4ed0-8b3d-5665b0e7378d" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_b30d4ccf-aa8a-4132-a030-6906142d81d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_9d7b4b43-76da-4905-9e6c-c45b35dda4fe" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_076ab6d3-4506-4ed0-8b3d-5665b0e7378d" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_9d7b4b43-76da-4905-9e6c-c45b35dda4fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_d4cc4354-f856-4356-8479-2d1b9e803dcf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_2d410583-152d-4f9b-a0d2-ca4c227bca5f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d4cc4354-f856-4356-8479-2d1b9e803dcf" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_2d410583-152d-4f9b-a0d2-ca4c227bca5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_540f4cfa-b9cd-4354-9389-f7c40715e005" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedCash"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d4cc4354-f856-4356-8479-2d1b9e803dcf" xlink:to="loc_us-gaap_RestrictedCash_540f4cfa-b9cd-4354-9389-f7c40715e005" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInvestments_bb8f61c7-c573-44fd-bcec-558ead7d79d1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d4cc4354-f856-4356-8479-2d1b9e803dcf" xlink:to="loc_us-gaap_OtherInvestments_bb8f61c7-c573-44fd-bcec-558ead7d79d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableHeldForSaleAmount_c0fcfed6-fa89-4d5b-ba3c-b8407b05cb77" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LoansReceivableHeldForSaleAmount"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d4cc4354-f856-4356-8479-2d1b9e803dcf" xlink:to="loc_us-gaap_LoansReceivableHeldForSaleAmount_c0fcfed6-fa89-4d5b-ba3c-b8407b05cb77" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNet_38c76525-8492-467b-87ed-ae1ce0a0e259" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsReceivableNet"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d4cc4354-f856-4356-8479-2d1b9e803dcf" xlink:to="loc_us-gaap_AccountsReceivableNet_38c76525-8492-467b-87ed-ae1ce0a0e259" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_815f6ac8-1319-42c2-8a22-9333e5823575" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d4cc4354-f856-4356-8479-2d1b9e803dcf" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_815f6ac8-1319-42c2-8a22-9333e5823575" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_2e3e3100-3238-4afd-9df9-e1d760c78b92" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d4cc4354-f856-4356-8479-2d1b9e803dcf" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_2e3e3100-3238-4afd-9df9-e1d760c78b92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_38c6db0f-2459-416c-9b81-12a46b276823" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_d4cc4354-f856-4356-8479-2d1b9e803dcf" xlink:to="loc_us-gaap_Goodwill_38c6db0f-2459-416c-9b81-12a46b276823" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_3db03f5e-2157-4a48-824c-9267ce0f5486" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d4cc4354-f856-4356-8479-2d1b9e803dcf" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_3db03f5e-2157-4a48-824c-9267ce0f5486" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAssetNet_e233105e-7dfa-498d-8fe2-99c29b7edd2a" xlink:href="afrm-20230331.xsd#afrm_CommercialAgreementAssetNet"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d4cc4354-f856-4356-8479-2d1b9e803dcf" xlink:to="loc_afrm_CommercialAgreementAssetNet_e233105e-7dfa-498d-8fe2-99c29b7edd2a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_7938f81f-8004-4428-95c0-1581f2b4582d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_d4cc4354-f856-4356-8479-2d1b9e803dcf" xlink:to="loc_us-gaap_OtherAssets_7938f81f-8004-4428-95c0-1581f2b4582d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_92d8f706-adf7-424e-b18f-ec38cd96a171" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_e9f644ac-c4bf-4d7f-a129-e3e772afaf5b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_92d8f706-adf7-424e-b18f-ec38cd96a171" xlink:to="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_e9f644ac-c4bf-4d7f-a129-e3e772afaf5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ThirdPartyLoanOwnerPayable_4e6d910a-565a-409e-b0f0-7fe0bdf8a871" xlink:href="afrm-20230331.xsd#afrm_ThirdPartyLoanOwnerPayable"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_92d8f706-adf7-424e-b18f-ec38cd96a171" xlink:to="loc_afrm_ThirdPartyLoanOwnerPayable_4e6d910a-565a-409e-b0f0-7fe0bdf8a871" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_a55a59e8-ebb3-4100-9eb8-12d67964ca8b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_92d8f706-adf7-424e-b18f-ec38cd96a171" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_a55a59e8-ebb3-4100-9eb8-12d67964ca8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_b81deea3-eb4d-4f76-84c8-0ebaf9ab8364" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedLiabilitiesAndOtherLiabilities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_92d8f706-adf7-424e-b18f-ec38cd96a171" xlink:to="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_b81deea3-eb4d-4f76-84c8-0ebaf9ab8364" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebt_1e8406e3-6133-42a2-802a-5d0d6ccbba3d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConvertibleDebt"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_92d8f706-adf7-424e-b18f-ec38cd96a171" xlink:to="loc_us-gaap_ConvertibleDebt_1e8406e3-6133-42a2-802a-5d0d6ccbba3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebt_375724c5-2883-4cbf-9b9b-6b0ac9a6dbe1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuredDebt"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_92d8f706-adf7-424e-b18f-ec38cd96a171" xlink:to="loc_us-gaap_SecuredDebt_375724c5-2883-4cbf-9b9b-6b0ac9a6dbe1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_e6805420-a194-4c5a-89b6-e4e8d1c3dcce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCredit"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_92d8f706-adf7-424e-b18f-ec38cd96a171" xlink:to="loc_us-gaap_LineOfCredit_e6805420-a194-4c5a-89b6-e4e8d1c3dcce" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="afrm-20230331.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsNet_833a4d81-60c7-4ac6-87d2-ce3e1f1f8aea" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_d8156479-4f73-4c5d-ac1d-d4343f0fc974" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsNet_833a4d81-60c7-4ac6-87d2-ce3e1f1f8aea" xlink:to="loc_us-gaap_Assets_d8156479-4f73-4c5d-ac1d-d4343f0fc974" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_9cb4d881-7ef2-4f57-b328-63cfedb8d074" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsNet_833a4d81-60c7-4ac6-87d2-ce3e1f1f8aea" xlink:to="loc_us-gaap_Liabilities_9cb4d881-7ef2-4f57-b328-63cfedb8d074" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOMELOSS" xlink:type="simple" xlink:href="afrm-20230331.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOMELOSS"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOMELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_3340e0fc-fc09-4a3e-b45c-8859a93f977c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_e231542f-04d5-421b-9b8c-1235d092c664" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestructuringCharges"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_3340e0fc-fc09-4a3e-b45c-8859a93f977c" xlink:to="loc_us-gaap_RestructuringCharges_e231542f-04d5-421b-9b8c-1235d092c664" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_TechnologyAndDataAnalyticsExpense_152e2d50-665e-4b7f-b1c4-e6e10c2645ee" xlink:href="afrm-20230331.xsd#afrm_TechnologyAndDataAnalyticsExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_3340e0fc-fc09-4a3e-b45c-8859a93f977c" xlink:to="loc_afrm_TechnologyAndDataAnalyticsExpense_152e2d50-665e-4b7f-b1c4-e6e10c2645ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_875087ef-8cab-4b9f-a65b-7ab7c170424a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_3340e0fc-fc09-4a3e-b45c-8859a93f977c" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_875087ef-8cab-4b9f-a65b-7ab7c170424a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_25cf8eb0-13c3-4853-af03-23b55781b783" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpenseDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_3340e0fc-fc09-4a3e-b45c-8859a93f977c" xlink:to="loc_us-gaap_InterestExpenseDebt_25cf8eb0-13c3-4853-af03-23b55781b783" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LossOnFinancingReceivableCommitmentsToPurchase_ca8e1c0e-d29f-4f4e-bd28-88cb3dfe4d7a" xlink:href="afrm-20230331.xsd#afrm_LossOnFinancingReceivableCommitmentsToPurchase"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_3340e0fc-fc09-4a3e-b45c-8859a93f977c" xlink:to="loc_afrm_LossOnFinancingReceivableCommitmentsToPurchase_ca8e1c0e-d29f-4f4e-bd28-88cb3dfe4d7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_598db3d7-37dd-4705-bc4f-32193ca1d00d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_3340e0fc-fc09-4a3e-b45c-8859a93f977c" xlink:to="loc_us-gaap_SellingAndMarketingExpense_598db3d7-37dd-4705-bc4f-32193ca1d00d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_e76aed1c-708f-4107-8b99-fb4c7bfb98fd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_3340e0fc-fc09-4a3e-b45c-8859a93f977c" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_e76aed1c-708f-4107-8b99-fb4c7bfb98fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ProcessingAndServicingExpense_1a124d91-63ec-4934-a890-3e9d882d1518" xlink:href="afrm-20230331.xsd#afrm_ProcessingAndServicingExpense"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_3340e0fc-fc09-4a3e-b45c-8859a93f977c" xlink:to="loc_afrm_ProcessingAndServicingExpense_1a124d91-63ec-4934-a890-3e9d882d1518" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_9aa352ba-a28e-4358-bf38-f3ad2a0da181" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_cdc50871-2bfd-49f6-aa6f-094909e4a1d6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ComprehensiveIncomeNetOfTax_9aa352ba-a28e-4358-bf38-f3ad2a0da181" xlink:to="loc_us-gaap_NetIncomeLoss_cdc50871-2bfd-49f6-aa6f-094909e4a1d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_9996aea7-7332-4fee-8e45-3db95a1b755f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_9aa352ba-a28e-4358-bf38-f3ad2a0da181" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_9996aea7-7332-4fee-8e45-3db95a1b755f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_7b18a181-9b6a-4c32-bace-c38f64307f8b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_94626af1-de0a-42b2-b851-348c5b3fd4bd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_7b18a181-9b6a-4c32-bace-c38f64307f8b" xlink:to="loc_us-gaap_Revenues_94626af1-de0a-42b2-b851-348c5b3fd4bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_9e04c901-4be5-4fe9-bb89-a24a6093e33e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CostsAndExpenses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_7b18a181-9b6a-4c32-bace-c38f64307f8b" xlink:to="loc_us-gaap_CostsAndExpenses_9e04c901-4be5-4fe9-bb89-a24a6093e33e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_80341750-7ba9-4d78-880e-6c6f304721a9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_07d5914a-8bb6-420f-979b-8d4566bf6a85" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_80341750-7ba9-4d78-880e-6c6f304721a9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_07d5914a-8bb6-420f-979b-8d4566bf6a85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_550eaf27-e9d6-49c2-90b3-b3995d51d3d3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_80341750-7ba9-4d78-880e-6c6f304721a9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_550eaf27-e9d6-49c2-90b3-b3995d51d3d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_9a2c1a7f-9ae3-44c5-90a4-5ac899b7b4c6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_80341750-7ba9-4d78-880e-6c6f304721a9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_9a2c1a7f-9ae3-44c5-90a4-5ac899b7b4c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_b2176505-5d78-4eea-84b7-739c9754263f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_acb5430e-8810-44bf-b17e-e0c6b55e117f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_b2176505-5d78-4eea-84b7-739c9754263f" xlink:to="loc_us-gaap_OperatingIncomeLoss_acb5430e-8810-44bf-b17e-e0c6b55e117f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_2b1c7e97-b001-4a20-94c5-3e688af51329" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_b2176505-5d78-4eea-84b7-739c9754263f" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_2b1c7e97-b001-4a20-94c5-3e688af51329" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_75053528-b7d3-4f58-a91e-596ac0523703" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_9dc194c6-de03-444a-9b1b-80deb99c6832" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_75053528-b7d3-4f58-a91e-596ac0523703" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_9dc194c6-de03-444a-9b1b-80deb99c6832" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_3c647cb0-0188-4ebc-90ea-fc08079f6acf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_75053528-b7d3-4f58-a91e-596ac0523703" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_3c647cb0-0188-4ebc-90ea-fc08079f6acf" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="afrm-20230331.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_2bba1cea-6daa-4ba4-8046-6c7514f5c03b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_a1c91016-6f4c-4481-94f5-f476d987dc6b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_2bba1cea-6daa-4ba4-8046-6c7514f5c03b" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_a1c91016-6f4c-4481-94f5-f476d987dc6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_35e5470e-6a9b-487d-beb9-586c47d2309f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedCash"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_2bba1cea-6daa-4ba4-8046-6c7514f5c03b" xlink:to="loc_us-gaap_RestrictedCash_35e5470e-6a9b-487d-beb9-586c47d2309f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3f615d34-73ec-4b33-b810-a01ab43cb050" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_c6a75659-5abf-47e7-9a3c-8c7765705e3c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromLongTermLinesOfCredit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3f615d34-73ec-4b33-b810-a01ab43cb050" xlink:to="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_c6a75659-5abf-47e7-9a3c-8c7765705e3c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_5ac60687-23d9-4508-9776-ed3981943055" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3f615d34-73ec-4b33-b810-a01ab43cb050" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_5ac60687-23d9-4508-9776-ed3981943055" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_e6e8ca5d-2c6f-479d-94da-4eeb35128db7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfLongTermLinesOfCredit"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3f615d34-73ec-4b33-b810-a01ab43cb050" xlink:to="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_e6e8ca5d-2c6f-479d-94da-4eeb35128db7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSecuredDebt_5fefde08-2664-47e1-a532-3be02cc1d885" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceOfSecuredDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3f615d34-73ec-4b33-b810-a01ab43cb050" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSecuredDebt_5fefde08-2664-47e1-a532-3be02cc1d885" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfSecuredDebt_b9d70245-b735-4b8f-a068-391d32ce519c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfSecuredDebt"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3f615d34-73ec-4b33-b810-a01ab43cb050" xlink:to="loc_us-gaap_RepaymentsOfSecuredDebt_b9d70245-b735-4b8f-a068-391d32ce519c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ProceedsFromStockOptionsAndWarrantsExercised_9de110b6-ac2a-4335-8b27-36d55a360768" xlink:href="afrm-20230331.xsd#afrm_ProceedsFromStockOptionsAndWarrantsExercised"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3f615d34-73ec-4b33-b810-a01ab43cb050" xlink:to="loc_afrm_ProceedsFromStockOptionsAndWarrantsExercised_9de110b6-ac2a-4335-8b27-36d55a360768" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_c58d93e2-d262-42e9-a675-3bd291f94690" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3f615d34-73ec-4b33-b810-a01ab43cb050" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_c58d93e2-d262-42e9-a675-3bd291f94690" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfConvertibleDebt_6dcb6153-e325-43a9-971f-12f90c5cc014" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfConvertibleDebt"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3f615d34-73ec-4b33-b810-a01ab43cb050" xlink:to="loc_us-gaap_RepaymentsOfConvertibleDebt_6dcb6153-e325-43a9-971f-12f90c5cc014" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_aee8fd88-2dee-4a09-b032-b1b313401507" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3f615d34-73ec-4b33-b810-a01ab43cb050" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_aee8fd88-2dee-4a09-b032-b1b313401507" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromConvertibleDebt_861d37f7-813d-43b6-a68f-95d05230c53d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromConvertibleDebt"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3f615d34-73ec-4b33-b810-a01ab43cb050" xlink:to="loc_us-gaap_ProceedsFromConvertibleDebt_861d37f7-813d-43b6-a68f-95d05230c53d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_81de695e-21bc-400e-a4ac-89b73ca1ce8c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireFinanceReceivables_02aa4323-8d06-4c73-99fa-99c0b5b470eb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireFinanceReceivables"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_81de695e-21bc-400e-a4ac-89b73ca1ce8c" xlink:to="loc_us-gaap_PaymentsToAcquireFinanceReceivables_02aa4323-8d06-4c73-99fa-99c0b5b470eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfFinanceReceivables_fe53bdc4-3cdb-4936-b845-85b95075fc5f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleOfFinanceReceivables"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_81de695e-21bc-400e-a4ac-89b73ca1ce8c" xlink:to="loc_us-gaap_ProceedsFromSaleOfFinanceReceivables_fe53bdc4-3cdb-4936-b845-85b95075fc5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromCollectionOfFinanceReceivables_66461c9c-2f62-45fa-9822-81402c64303b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromCollectionOfFinanceReceivables"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_81de695e-21bc-400e-a4ac-89b73ca1ce8c" xlink:to="loc_us-gaap_ProceedsFromCollectionOfFinanceReceivables_66461c9c-2f62-45fa-9822-81402c64303b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_9d4f6559-6dee-403b-b096-37ef76ce1f42" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_81de695e-21bc-400e-a4ac-89b73ca1ce8c" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_9d4f6559-6dee-403b-b096-37ef76ce1f42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_e5a8d3e4-5cb6-4e64-b6b2-0a12b0ec1b89" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_81de695e-21bc-400e-a4ac-89b73ca1ce8c" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_e5a8d3e4-5cb6-4e64-b6b2-0a12b0ec1b89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_3fa65f25-a8d8-4026-ba9d-9c2a249b21f6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_81de695e-21bc-400e-a4ac-89b73ca1ce8c" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_3fa65f25-a8d8-4026-ba9d-9c2a249b21f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_3a5949fe-a856-4f04-a9de-7fb2e7b95992" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_81de695e-21bc-400e-a4ac-89b73ca1ce8c" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_3a5949fe-a856-4f04-a9de-7fb2e7b95992" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ProceedsFromOtherInvestingActivities_f304e947-e6c4-47b4-8c2c-42f7ebc106bb" xlink:href="afrm-20230331.xsd#afrm_ProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_81de695e-21bc-400e-a4ac-89b73ca1ce8c" xlink:to="loc_afrm_ProceedsFromOtherInvestingActivities_f304e947-e6c4-47b4-8c2c-42f7ebc106bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_15241c29-0a07-4ae4-8137-d6d5a537030e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b8cdd598-b30c-4038-8f28-08ad7c250f81" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_15241c29-0a07-4ae4-8137-d6d5a537030e" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_b8cdd598-b30c-4038-8f28-08ad7c250f81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_19ce83f7-0750-4d23-a833-f73eb88eb3c6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_15241c29-0a07-4ae4-8137-d6d5a537030e" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_19ce83f7-0750-4d23-a833-f73eb88eb3c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_96c8a9bc-2f47-4738-be30-fbb3ccaaa6e8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_15241c29-0a07-4ae4-8137-d6d5a537030e" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_96c8a9bc-2f47-4738-be30-fbb3ccaaa6e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_d9af0e2d-a4aa-4790-ad3a-379121cf968f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_15241c29-0a07-4ae4-8137-d6d5a537030e" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_d9af0e2d-a4aa-4790-ad3a-379121cf968f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables_9866dce7-b773-41b6-908c-f86577e70ee9" xlink:href="afrm-20230331.xsd#afrm_AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_afrm_AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables_9866dce7-b773-41b6-908c-f86577e70ee9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfCommercialAgreementAssets_b7c8b25e-3170-4324-b5a5-252ad996c42e" xlink:href="afrm-20230331.xsd#afrm_AmortizationOfCommercialAgreementAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_afrm_AmortizationOfCommercialAgreementAssets_b7c8b25e-3170-4324-b5a5-252ad996c42e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_7e7e4fbb-3866-41ca-971e-ed6e2de51721" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_7e7e4fbb-3866-41ca-971e-ed6e2de51721" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_2b32198d-6805-49ec-94cf-54451c918be5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_2b32198d-6805-49ec-94cf-54451c918be5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_7ccd5f03-c755-4c30-b3bd-0a8564faeafb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleOfLoansHeldForSale"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_7ccd5f03-c755-4c30-b3bd-0a8564faeafb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_7b2706d8-4a24-467f-b304-c3787bf561b6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_7b2706d8-4a24-467f-b304-c3787bf561b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_b655113e-b003-4ac2-83c5-175c46a9a43b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_b655113e-b003-4ac2-83c5-175c46a9a43b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_daa3f733-c5d6-4259-9b83-30927ddb6684" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_us-gaap_NetIncomeLoss_daa3f733-c5d6-4259-9b83-30927ddb6684" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_96790634-62d4-4f76-9c58-a0b50212181d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnSalesOfLoansNet"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_96790634-62d4-4f76-9c58-a0b50212181d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_3c556197-30d0-45d9-af9e-4028cf9dabb9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_3c556197-30d0-45d9-af9e-4028cf9dabb9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfDiscountOnAvailableForSaleSecurities_8798f1e9-21b3-41d1-ac6f-cc778df80125" xlink:href="afrm-20230331.xsd#afrm_AmortizationOfDiscountOnAvailableForSaleSecurities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_afrm_AmortizationOfDiscountOnAvailableForSaleSecurities_8798f1e9-21b3-41d1-ac6f-cc778df80125" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_01c8befb-e8ec-4091-8b6b-9c502ab492c9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_01c8befb-e8ec-4091-8b6b-9c502ab492c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_c633d924-2830-4bde-9404-f45d81685b75" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_us-gaap_ShareBasedCompensation_c633d924-2830-4bde-9404-f45d81685b75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_169d6f80-44d4-4054-a7a7-3ca9f575259b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_169d6f80-44d4-4054-a7a7-3ca9f575259b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_d8676f09-fc8c-4b94-931c-d99d48f4d22f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_d8676f09-fc8c-4b94-931c-d99d48f4d22f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IncreaseDecreaseInCommercialAgreementAssets_3a8fb0b8-f9e8-4035-9de9-8cbc17d27764" xlink:href="afrm-20230331.xsd#afrm_IncreaseDecreaseInCommercialAgreementAssets"/>
    <link:calculationArc order="16" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_afrm_IncreaseDecreaseInCommercialAgreementAssets_3a8fb0b8-f9e8-4035-9de9-8cbc17d27764" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_14404367-c6f1-4e44-92aa-82133bc751f6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_14404367-c6f1-4e44-92aa-82133bc751f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_GainLossOnChangesInFairValueOfAssetsAndLiabilities_6676ef9a-6f52-462d-acf1-221b68d675f6" xlink:href="afrm-20230331.xsd#afrm_GainLossOnChangesInFairValueOfAssetsAndLiabilities"/>
    <link:calculationArc order="18" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_afrm_GainLossOnChangesInFairValueOfAssetsAndLiabilities_6676ef9a-6f52-462d-acf1-221b68d675f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToPurchaseLoansHeldForSale_79deecfc-8344-4503-adc9-69694c1fa3c8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToPurchaseLoansHeldForSale"/>
    <link:calculationArc order="19" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_us-gaap_PaymentsToPurchaseLoansHeldForSale_79deecfc-8344-4503-adc9-69694c1fa3c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_011aa64c-ae5a-4d43-b7cb-d3d483012b21" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="20" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_011aa64c-ae5a-4d43-b7cb-d3d483012b21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable_397afd09-fe18-4689-90fd-cf0e909d3ff0" xlink:href="afrm-20230331.xsd#afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable"/>
    <link:calculationArc order="21" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_85ea59e8-8b92-4821-9c75-eb84f8cd65b4" xlink:to="loc_afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable_397afd09-fe18-4689-90fd-cf0e909d3ff0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/RevenueDisaggregatedRevenueDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#RevenueDisaggregatedRevenueDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/RevenueDisaggregatedRevenueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_b37d7953-f08d-4d7e-ae37-289cf3ba3137" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Revenues"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_0ed54df6-e668-4b2b-adc0-3a5b6279990f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_Revenues_b37d7953-f08d-4d7e-ae37-289cf3ba3137" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_0ed54df6-e668-4b2b-adc0-3a5b6279990f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_6a273a39-860c-412d-a287-425a8a9d4e7c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_b37d7953-f08d-4d7e-ae37-289cf3ba3137" xlink:to="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_6a273a39-860c-412d-a287-425a8a9d4e7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_55cc8362-b6be-4f77-bf2f-4c5837db9bb5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_b37d7953-f08d-4d7e-ae37-289cf3ba3137" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_55cc8362-b6be-4f77-bf2f-4c5837db9bb5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_340dfea9-0a43-4c32-a2f0-c5374354f9bf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnSalesOfLoansNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_b37d7953-f08d-4d7e-ae37-289cf3ba3137" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_340dfea9-0a43-4c32-a2f0-c5374354f9bf" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/RevenueScheduleofInterestIncomeDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#RevenueScheduleofInterestIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/RevenueScheduleofInterestIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_38cd9016-34ba-41a2-a797-07320574ca71" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_0620bf69-7685-48fa-8130-dea257a36b09" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_38cd9016-34ba-41a2-a797-07320574ca71" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_0620bf69-7685-48fa-8130-dea257a36b09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccretionOfDiscountsFinancingReceivables_d8381889-1b79-4edb-9b55-b193c9c6a07e" xlink:href="afrm-20230331.xsd#afrm_AccretionOfDiscountsFinancingReceivables"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_38cd9016-34ba-41a2-a797-07320574ca71" xlink:to="loc_afrm_AccretionOfDiscountsFinancingReceivables_d8381889-1b79-4edb-9b55-b193c9c6a07e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfPremiumsFinancingReceivables_0cc86a01-d820-450b-9283-bff091a0ddd2" xlink:href="afrm-20230331.xsd#afrm_AmortizationOfPremiumsFinancingReceivables"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_38cd9016-34ba-41a2-a797-07320574ca71" xlink:to="loc_afrm_AmortizationOfPremiumsFinancingReceivables_0cc86a01-d820-450b-9283-bff091a0ddd2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_cadea440-fce5-4fc0-8ff7-b4d255941f18" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAccruedInterestWriteoff"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_38cd9016-34ba-41a2-a797-07320574ca71" xlink:to="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_cadea440-fce5-4fc0-8ff7-b4d255941f18" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesLoansHeldforInvestmentDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesLoansHeldforInvestmentDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesLoansHeldforInvestmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_349b926d-8bcf-48f9-8041-05305327feac" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestBeforeAllowanceForCreditLoss_06f01844-a853-44f0-923f-20a889de5c8f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_349b926d-8bcf-48f9-8041-05305327feac" xlink:to="loc_us-gaap_FinancingReceivableAccruedInterestBeforeAllowanceForCreditLoss_06f01844-a853-44f0-923f-20a889de5c8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableLossOnSelfOrganizingLoans_3519f00b-4eae-434c-a019-f97f574db54e" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableLossOnSelfOrganizingLoans"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_349b926d-8bcf-48f9-8041-05305327feac" xlink:to="loc_afrm_FinancingReceivableLossOnSelfOrganizingLoans_3519f00b-4eae-434c-a019-f97f574db54e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableAcquiredInBusinessCombinationFairValueAdjustment_713ebfd0-c3a6-4af9-b97b-376219130853" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableAcquiredInBusinessCombinationFairValueAdjustment"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_349b926d-8bcf-48f9-8041-05305327feac" xlink:to="loc_afrm_FinancingReceivableAcquiredInBusinessCombinationFairValueAdjustment_713ebfd0-c3a6-4af9-b97b-376219130853" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableUnamortizedPurchaseDiscount_381b0308-e8b8-47a9-89dc-5105346e63c6" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableUnamortizedPurchaseDiscount"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_349b926d-8bcf-48f9-8041-05305327feac" xlink:to="loc_afrm_FinancingReceivableUnamortizedPurchaseDiscount_381b0308-e8b8-47a9-89dc-5105346e63c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableUnamortizedPurchasePremium_cdeaa795-5675-46cd-a3f2-cf02a87b4b13" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableUnamortizedPurchasePremium"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_349b926d-8bcf-48f9-8041-05305327feac" xlink:to="loc_afrm_FinancingReceivableUnamortizedPurchasePremium_cdeaa795-5675-46cd-a3f2-cf02a87b4b13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee_ac9da582-1a16-4dda-ad79-f537cabd362c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_349b926d-8bcf-48f9-8041-05305327feac" xlink:to="loc_us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee_ac9da582-1a16-4dda-ad79-f537cabd362c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_66c1698c-dd90-4d0b-bbb0-d9b817a3aefd" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOff_db2f536a-37d9-4e66-bbfe-73bce62c3b09" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_66c1698c-dd90-4d0b-bbb0-d9b817a3aefd" xlink:to="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOff_db2f536a-37d9-4e66-bbfe-73bce62c3b09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearRecoveries_c23bf118-3b37-4f37-a76e-43fe6b844f5d" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_66c1698c-dd90-4d0b-bbb0-d9b817a3aefd" xlink:to="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearRecoveries_c23bf118-3b37-4f37-a76e-43fe6b844f5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_212033bd-8fba-4a13-b52b-d4fb5cefa7dd" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOff_bea83976-54a7-440f-b4a9-677a4ad0d9ab" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_212033bd-8fba-4a13-b52b-d4fb5cefa7dd" xlink:to="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOff_bea83976-54a7-440f-b4a9-677a4ad0d9ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_6fe4b6bf-303d-4c3f-8894-a5205e844f7f" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_212033bd-8fba-4a13-b52b-d4fb5cefa7dd" xlink:to="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_6fe4b6bf-303d-4c3f-8894-a5205e844f7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableRecoveries_199473ea-b6f9-4277-9170-93a2a4f5a48a" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableRecoveries"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearRecoveries_7bfc7d38-b613-4aa7-b676-841ec5c7ec22" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableRecoveries_199473ea-b6f9-4277-9170-93a2a4f5a48a" xlink:to="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearRecoveries_7bfc7d38-b613-4aa7-b676-841ec5c7ec22" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_63012f34-c1df-473e-8b4a-2145f4933fa7" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableRecoveries_199473ea-b6f9-4277-9170-93a2a4f5a48a" xlink:to="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_63012f34-c1df-473e-8b4a-2145f4933fa7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_a6b8b074-3a1a-4f81-8b17-14e2f296815a" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableRecoveries_199473ea-b6f9-4277-9170-93a2a4f5a48a" xlink:to="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_a6b8b074-3a1a-4f81-8b17-14e2f296815a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_bd5861cc-12fb-4d59-ad0e-9734eecb004f" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableRecoveries_199473ea-b6f9-4277-9170-93a2a4f5a48a" xlink:to="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_bd5861cc-12fb-4d59-ad0e-9734eecb004f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_1279ab9e-c8b0-4791-a74c-d6366448c7ab" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableRecoveries_199473ea-b6f9-4277-9170-93a2a4f5a48a" xlink:to="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_1279ab9e-c8b0-4791-a74c-d6366448c7ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_816d419c-5d82-4283-90a0-8b04cc836320" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableRecoveries_199473ea-b6f9-4277-9170-93a2a4f5a48a" xlink:to="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_816d419c-5d82-4283-90a0-8b04cc836320" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_6076ffa8-5155-4493-92da-620e0a43078e" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_bd63e80b-387e-4c92-8e14-67e84bbda2d6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_6076ffa8-5155-4493-92da-620e0a43078e" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_bd63e80b-387e-4c92-8e14-67e84bbda2d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_cf59e486-18fe-40d9-bbcc-9b26b5561502" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_6076ffa8-5155-4493-92da-620e0a43078e" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_cf59e486-18fe-40d9-bbcc-9b26b5561502" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_2b4b0f42-891b-4ae7-91f6-e48804db21a7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_6076ffa8-5155-4493-92da-620e0a43078e" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_2b4b0f42-891b-4ae7-91f6-e48804db21a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_71a64ba4-c785-44f3-8ac2-381a74afbdf8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_6076ffa8-5155-4493-92da-620e0a43078e" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_71a64ba4-c785-44f3-8ac2-381a74afbdf8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_413d1450-b9c6-43ed-a869-2cbd012c7671" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_6076ffa8-5155-4493-92da-620e0a43078e" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_413d1450-b9c6-43ed-a869-2cbd012c7671" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_5eda9782-3ade-4109-b46b-dec6cb1daaf3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_6076ffa8-5155-4493-92da-620e0a43078e" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_5eda9782-3ade-4109-b46b-dec6cb1daaf3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_c221f040-0f81-4468-bac1-b08404497491" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivablesWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableWriteOff_fe08dc58-7f31-40c3-835a-ecd28a234f39" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableWriteOff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_c221f040-0f81-4468-bac1-b08404497491" xlink:to="loc_afrm_FinancingReceivableWriteOff_fe08dc58-7f31-40c3-835a-ecd28a234f39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableRecoveries_5619585e-6c51-4d7c-b379-da51e1a04760" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableRecoveries"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_c221f040-0f81-4468-bac1-b08404497491" xlink:to="loc_afrm_FinancingReceivableRecoveries_5619585e-6c51-4d7c-b379-da51e1a04760" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_ebe88354-8d75-4e0f-9d8e-e93958ec0069" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOff_84b945d7-c781-434a-ad8d-16e790d358cd" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_ebe88354-8d75-4e0f-9d8e-e93958ec0069" xlink:to="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOff_84b945d7-c781-434a-ad8d-16e790d358cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_cf09c491-cb98-4bed-bcc3-a02ba8cec5b5" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_ebe88354-8d75-4e0f-9d8e-e93958ec0069" xlink:to="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_cf09c491-cb98-4bed-bcc3-a02ba8cec5b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_90532502-e195-48b8-866a-020e1d05464d" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOff_2634801b-bab5-4ad1-8215-900f129688cd" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_90532502-e195-48b8-866a-020e1d05464d" xlink:to="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOff_2634801b-bab5-4ad1-8215-900f129688cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_85a13f00-b89c-4de2-b194-d85d5e678644" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_90532502-e195-48b8-866a-020e1d05464d" xlink:to="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_85a13f00-b89c-4de2-b194-d85d5e678644" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_9803b076-fb21-460a-8022-7c7cafc24235" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOff_f3020cf7-5584-4db6-a5d7-ac2e27d63551" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_9803b076-fb21-460a-8022-7c7cafc24235" xlink:to="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOff_f3020cf7-5584-4db6-a5d7-ac2e27d63551" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_ee6c6043-5a06-4a3f-8b83-f53372a25e5f" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_9803b076-fb21-460a-8022-7c7cafc24235" xlink:to="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_ee6c6043-5a06-4a3f-8b83-f53372a25e5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_e275d326-b5bb-46bf-a43f-47a571d5789d" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOff_1e77d833-6655-4d69-80da-395294b23bf6" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_e275d326-b5bb-46bf-a43f-47a571d5789d" xlink:to="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOff_1e77d833-6655-4d69-80da-395294b23bf6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_d59fbd80-3f36-40dc-9c5e-864cd750fc5b" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_e275d326-b5bb-46bf-a43f-47a571d5789d" xlink:to="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_d59fbd80-3f36-40dc-9c5e-864cd750fc5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableWriteOff_11e7530f-beee-4a0a-81c5-3c71ebbfbfe4" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableWriteOff"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOff_2c5150f4-f4fa-4c9e-802c-d0bb16566314" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableWriteOff_11e7530f-beee-4a0a-81c5-3c71ebbfbfe4" xlink:to="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOff_2c5150f4-f4fa-4c9e-802c-d0bb16566314" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOff_cab21e94-87b8-4234-bc90-40696d4f63d1" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableWriteOff_11e7530f-beee-4a0a-81c5-3c71ebbfbfe4" xlink:to="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOff_cab21e94-87b8-4234-bc90-40696d4f63d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOff_d5a49e00-9de1-40eb-aabf-a9910d60ca14" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableWriteOff_11e7530f-beee-4a0a-81c5-3c71ebbfbfe4" xlink:to="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOff_d5a49e00-9de1-40eb-aabf-a9910d60ca14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOff_1914135c-9a04-43f8-b058-fdb75882b3be" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableWriteOff_11e7530f-beee-4a0a-81c5-3c71ebbfbfe4" xlink:to="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOff_1914135c-9a04-43f8-b058-fdb75882b3be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOff_6b386d6b-b076-4c5f-89ae-23c81e4d04da" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableWriteOff_11e7530f-beee-4a0a-81c5-3c71ebbfbfe4" xlink:to="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOff_6b386d6b-b076-4c5f-89ae-23c81e4d04da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOff_2316cbb9-d0ac-4e6d-bfc6-373ffe044948" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableWriteOff_11e7530f-beee-4a0a-81c5-3c71ebbfbfe4" xlink:to="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOff_2316cbb9-d0ac-4e6d-bfc6-373ffe044948" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails_1" xlink:type="simple" xlink:href="afrm-20230331.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails_1"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_274ec972-b820-4d6c-a722-3e0b41a99bae" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivablesWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_c35caf19-bcce-4c24-a32f-33334b5f3616" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_274ec972-b820-4d6c-a722-3e0b41a99bae" xlink:to="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_c35caf19-bcce-4c24-a32f-33334b5f3616" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_20292488-98dc-46b1-9ba9-f696e1b8afdc" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_274ec972-b820-4d6c-a722-3e0b41a99bae" xlink:to="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_20292488-98dc-46b1-9ba9-f696e1b8afdc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_a71f8e12-97e4-4cf1-b383-468456bf73a1" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_274ec972-b820-4d6c-a722-3e0b41a99bae" xlink:to="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_a71f8e12-97e4-4cf1-b383-468456bf73a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_1895d5d4-39a5-454b-8870-ad2de259e1ab" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_274ec972-b820-4d6c-a722-3e0b41a99bae" xlink:to="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_1895d5d4-39a5-454b-8870-ad2de259e1ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_0c186ac5-7fe8-443e-8c80-7aacc9ef75ff" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_274ec972-b820-4d6c-a722-3e0b41a99bae" xlink:to="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_0c186ac5-7fe8-443e-8c80-7aacc9ef75ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_76599b72-5b20-41b6-bce4-145f985bd2f0" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_274ec972-b820-4d6c-a722-3e0b41a99bae" xlink:to="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_76599b72-5b20-41b6-bce4-145f985bd2f0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/AcquisitionsButterHoldingsAcquisitionFairValueofConsiderationTransferredDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#AcquisitionsButterHoldingsAcquisitionFairValueofConsiderationTransferredDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/AcquisitionsButterHoldingsAcquisitionFairValueofConsiderationTransferredDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_6877fb07-b831-4574-a12b-448290a0fa3b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred_efb12789-d8ac-494f-bd6c-f36489a65e8f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferred1_6877fb07-b831-4574-a12b-448290a0fa3b" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred_efb12789-d8ac-494f-bd6c-f36489a65e8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_b25518f9-a6a5-4440-8cd8-a9597ae8ad0e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireBusinessesGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferred1_6877fb07-b831-4574-a12b-448290a0fa3b" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_b25518f9-a6a5-4440-8cd8-a9597ae8ad0e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/AcquisitionsButterHoldingsAcquisitionAllocationofConsiderationPaidtoFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#AcquisitionsButterHoldingsAcquisitionAllocationofConsiderationPaidtoFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/AcquisitionsButterHoldingsAcquisitionAllocationofConsiderationPaidtoFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_d2887dd9-fbb7-44df-9c0a-54c9e9658206" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_ac50b34f-a141-47a8-a639-abe4e811781c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_d2887dd9-fbb7-44df-9c0a-54c9e9658206" xlink:to="loc_us-gaap_Goodwill_ac50b34f-a141-47a8-a639-abe4e811781c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAssetsAcquiredLiabilitiesAssumedIncludingGoodwill_2a4f99af-7577-4bd5-92e8-e0020318e358" xlink:href="afrm-20230331.xsd#afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAssetsAcquiredLiabilitiesAssumedIncludingGoodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_d2887dd9-fbb7-44df-9c0a-54c9e9658206" xlink:to="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAssetsAcquiredLiabilitiesAssumedIncludingGoodwill_2a4f99af-7577-4bd5-92e8-e0020318e358" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_417b7f45-cea2-48aa-9523-6cf44e65ebce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedExpensesAndOtherLiabilities_8ce97ef2-8238-44fd-9468-8b00ab32db58" xlink:href="afrm-20230331.xsd#afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedExpensesAndOtherLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_417b7f45-cea2-48aa-9523-6cf44e65ebce" xlink:to="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedExpensesAndOtherLiabilities_8ce97ef2-8238-44fd-9468-8b00ab32db58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_ec0684be-d4dd-4469-a02c-da7f3848da34" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_417b7f45-cea2-48aa-9523-6cf44e65ebce" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_ec0684be-d4dd-4469-a02c-da7f3848da34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_f2376d4a-77bf-48e3-9f93-01ab6c94784a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_b5670221-5e51-41e7-8a7f-ad33722fdbb8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_f2376d4a-77bf-48e3-9f93-01ab6c94784a" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_b5670221-5e51-41e7-8a7f-ad33722fdbb8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets_1496ad11-a4a5-43b4-bebe-30c8dc635a63" xlink:href="afrm-20230331.xsd#afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_f2376d4a-77bf-48e3-9f93-01ab6c94784a" xlink:to="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets_1496ad11-a4a5-43b4-bebe-30c8dc635a63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedReceivables_c87b506b-5680-4cd1-bca8-870ea39f29e4" xlink:href="afrm-20230331.xsd#afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedReceivables"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_f2376d4a-77bf-48e3-9f93-01ab6c94784a" xlink:to="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedReceivables_c87b506b-5680-4cd1-bca8-870ea39f29e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoans_bcd83a47-1a99-4cf6-92f6-32f912293ee5" xlink:href="afrm-20230331.xsd#afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoans"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_f2376d4a-77bf-48e3-9f93-01ab6c94784a" xlink:to="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoans_bcd83a47-1a99-4cf6-92f6-32f912293ee5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_75d00907-c7a4-4dd1-ae5d-f006666d7c90" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_f2376d4a-77bf-48e3-9f93-01ab6c94784a" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_75d00907-c7a4-4dd1-ae5d-f006666d7c90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAssetsAcquiredLiabilitiesAssumedIncludingGoodwill_adb6de21-a119-4d1d-b041-31975647d4bf" xlink:href="afrm-20230331.xsd#afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAssetsAcquiredLiabilitiesAssumedIncludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_91c9ddd7-2a5c-4b59-9575-f76d91ce1904" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAssetsAcquiredLiabilitiesAssumedIncludingGoodwill_adb6de21-a119-4d1d-b041-31975647d4bf" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_91c9ddd7-2a5c-4b59-9575-f76d91ce1904" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_f969724f-fc01-4764-89f2-b4778c66e786" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAssetsAcquiredLiabilitiesAssumedIncludingGoodwill_adb6de21-a119-4d1d-b041-31975647d4bf" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_f969724f-fc01-4764-89f2-b4778c66e786" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/AcquisitionsShopBrainAcquisitionFairValueofConsiderationTransferredDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#AcquisitionsShopBrainAcquisitionFairValueofConsiderationTransferredDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/AcquisitionsShopBrainAcquisitionFairValueofConsiderationTransferredDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_fb646b6c-ed4d-4f96-a807-2515fd90310e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_bc82c28b-d972-4d64-bd80-d94d2f454918" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferred1_fb646b6c-ed4d-4f96-a807-2515fd90310e" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_bc82c28b-d972-4d64-bd80-d94d2f454918" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_ceb171ae-1412-48f6-9cf1-fe86204870a2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireBusinessesGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferred1_fb646b6c-ed4d-4f96-a807-2515fd90310e" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_ceb171ae-1412-48f6-9cf1-fe86204870a2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/AcquisitionsShopBrainAcquisitionAllocationofConsiderationPaidtoFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#AcquisitionsShopBrainAcquisitionAllocationofConsiderationPaidtoFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/AcquisitionsShopBrainAcquisitionAllocationofConsiderationPaidtoFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_5f30b6ff-2b32-4ac6-be4e-a290ad9efd9e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_154c4646-dd64-4855-862c-31db8c9dc22e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_5f30b6ff-2b32-4ac6-be4e-a290ad9efd9e" xlink:to="loc_us-gaap_Goodwill_154c4646-dd64-4855-862c-31db8c9dc22e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_b5aa7239-7c4f-46f2-a50a-6551c1a92758" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_5f30b6ff-2b32-4ac6-be4e-a290ad9efd9e" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_b5aa7239-7c4f-46f2-a50a-6551c1a92758" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_00b7e73e-7c96-45a1-98e8-6c5931aee8a7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_7bb43603-e5d1-4eae-85dd-0e2b1bda8e7a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_00b7e73e-7c96-45a1-98e8-6c5931aee8a7" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_7bb43603-e5d1-4eae-85dd-0e2b1bda8e7a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsPropertyEquipmentandSoftwareDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#BalanceSheetComponentsPropertyEquipmentandSoftwareDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsPropertyEquipmentandSoftwareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_6d9ee2f7-087d-403b-9ad9-028486d27674" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_c3fe797c-70a1-417d-a3a0-1d64695534e8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_6d9ee2f7-087d-403b-9ad9-028486d27674" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_c3fe797c-70a1-417d-a3a0-1d64695534e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_f3180703-deb7-4624-8337-b25e74baf3b9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_6d9ee2f7-087d-403b-9ad9-028486d27674" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_f3180703-deb7-4624-8337-b25e74baf3b9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsIntangibleAssetsDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#BalanceSheetComponentsIntangibleAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_3f9d48e4-516f-429a-ad69-ac2201a829ff" xlink:href="afrm-20230331.xsd#afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_357a5dbf-49c5-41c4-9610-0ee68142f0ea" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_3f9d48e4-516f-429a-ad69-ac2201a829ff" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_357a5dbf-49c5-41c4-9610-0ee68142f0ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_078c42f2-eb1c-4164-b1ba-46e1c7a1969d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_3f9d48e4-516f-429a-ad69-ac2201a829ff" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_078c42f2-eb1c-4164-b1ba-46e1c7a1969d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_201c276f-abf1-4484-962a-5ae7ffc4bd64" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_d0388787-e093-419c-a34e-b26551c9c2f8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_201c276f-abf1-4484-962a-5ae7ffc4bd64" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_d0388787-e093-419c-a34e-b26551c9c2f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_f3cfaef6-2f40-4d22-abef-ab783e8a4256" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_201c276f-abf1-4484-962a-5ae7ffc4bd64" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_f3cfaef6-2f40-4d22-abef-ab783e8a4256" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_8a440dea-8d6b-43c4-b84f-b29a41d2ec7b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_915a1507-4b45-4d4e-8c96-d4e81f61aa0b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_8a440dea-8d6b-43c4-b84f-b29a41d2ec7b" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_915a1507-4b45-4d4e-8c96-d4e81f61aa0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_bd70befa-9f5a-4f17-8de0-c54860072ce7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_8a440dea-8d6b-43c4-b84f-b29a41d2ec7b" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_bd70befa-9f5a-4f17-8de0-c54860072ce7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsIntangibleAssetsDetails_1" xlink:type="simple" xlink:href="afrm-20230331.xsd#BalanceSheetComponentsIntangibleAssetsDetails_1"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsIntangibleAssetsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_dc1c9e8b-8194-4398-b3f4-9c139ebb4c8f" xlink:href="afrm-20230331.xsd#afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_5e498488-83ff-472e-b5c6-9630b39d15c5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_dc1c9e8b-8194-4398-b3f4-9c139ebb4c8f" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_5e498488-83ff-472e-b5c6-9630b39d15c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_a649da08-9d67-45c5-ba8d-77192d5bc3bc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_dc1c9e8b-8194-4398-b3f4-9c139ebb4c8f" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_a649da08-9d67-45c5-ba8d-77192d5bc3bc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsExpectedFutureAmortizationExpenseDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#BalanceSheetComponentsExpectedFutureAmortizationExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsExpectedFutureAmortizationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_f14ec984-bc74-4180-8c14-8c21743eef34" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_bb147254-f421-4398-8e3e-a914848ca6e5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_f14ec984-bc74-4180-8c14-8c21743eef34" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_bb147254-f421-4398-8e3e-a914848ca6e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_b6e16042-9e39-4e47-9255-9c0be1d5dc7d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_f14ec984-bc74-4180-8c14-8c21743eef34" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_b6e16042-9e39-4e47-9255-9c0be1d5dc7d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_4f34741e-379f-40c3-8bc4-0cbf402af226" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_f14ec984-bc74-4180-8c14-8c21743eef34" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_4f34741e-379f-40c3-8bc4-0cbf402af226" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_15ba0b38-f82d-420c-b6f5-aacf6c3ee3a0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_f14ec984-bc74-4180-8c14-8c21743eef34" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_15ba0b38-f82d-420c-b6f5-aacf6c3ee3a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearThree_d0fef869-367c-429b-86dd-62a3cb316b18" xlink:href="afrm-20230331.xsd#afrm_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearThree"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_f14ec984-bc74-4180-8c14-8c21743eef34" xlink:to="loc_afrm_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearThree_d0fef869-367c-429b-86dd-62a3cb316b18" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsOtherAssetsDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#BalanceSheetComponentsOtherAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsOtherAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_9a67b1ee-7237-4573-bc37-40d70bc0da8c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_089af95a-224a-4de4-b4bd-61affe8ec861" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_9a67b1ee-7237-4573-bc37-40d70bc0da8c" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_089af95a-224a-4de4-b4bd-61affe8ec861" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_758704d0-59be-4135-9041-2b902f24bffa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_9a67b1ee-7237-4573-bc37-40d70bc0da8c" xlink:to="loc_us-gaap_DerivativeAssets_758704d0-59be-4135-9041-2b902f24bffa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_297e31ff-2fcd-46e5-aeb8-6fc914163ff6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_9a67b1ee-7237-4573-bc37-40d70bc0da8c" xlink:to="loc_us-gaap_DebtSecuritiesHeldToMaturityExcludingAccruedInterestBeforeAllowanceForCreditLoss_297e31ff-2fcd-46e5-aeb8-6fc914163ff6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_dadb190b-c3db-485c-b005-3ea1c692b074" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PrepaidExpenseCurrentAndNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_9a67b1ee-7237-4573-bc37-40d70bc0da8c" xlink:to="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_dadb190b-c3db-485c-b005-3ea1c692b074" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CashDepositsProcessingReserves_a9845b43-c548-4b2a-bd46-922a301ab4e8" xlink:href="afrm-20230331.xsd#afrm_CashDepositsProcessingReserves"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_9a67b1ee-7237-4573-bc37-40d70bc0da8c" xlink:to="loc_afrm_CashDepositsProcessingReserves_a9845b43-c548-4b2a-bd46-922a301ab4e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneous_298abb60-edfa-4e57-bfd2-5009b4750662" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsMiscellaneous"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_9a67b1ee-7237-4573-bc37-40d70bc0da8c" xlink:to="loc_us-gaap_OtherAssetsMiscellaneous_298abb60-edfa-4e57-bfd2-5009b4750662" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsAccruedExpensesandOtherLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#BalanceSheetComponentsAccruedExpensesandOtherLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsAccruedExpensesandOtherLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_a0e7a1bc-a463-400c-8af3-f09ec84d7a7b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedLiabilitiesAndOtherLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_d5587576-7f28-4f73-a9e5-ca90af4a04a8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_a0e7a1bc-a463-400c-8af3-f09ec84d7a7b" xlink:to="loc_us-gaap_OperatingLeaseLiability_d5587576-7f28-4f73-a9e5-ca90af4a04a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DerivativeInstrumentsCollateralHeld_8b957adb-9da9-4af8-b478-33b190e4b60c" xlink:href="afrm-20230331.xsd#afrm_DerivativeInstrumentsCollateralHeld"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_a0e7a1bc-a463-400c-8af3-f09ec84d7a7b" xlink:to="loc_afrm_DerivativeInstrumentsCollateralHeld_8b957adb-9da9-4af8-b478-33b190e4b60c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_bb2921c9-21f5-417b-9aba-0504ce140e25" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedLiabilitiesCurrentAndNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_a0e7a1bc-a463-400c-8af3-f09ec84d7a7b" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_bb2921c9-21f5-417b-9aba-0504ce140e25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_fd5542d1-4243-4d69-961c-562f87f207d1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_a0e7a1bc-a463-400c-8af3-f09ec84d7a7b" xlink:to="loc_us-gaap_OtherLiabilities_fd5542d1-4243-4d69-961c-562f87f207d1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LeasesMaturitiesofLeaseLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#LeasesMaturitiesofLeaseLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LeasesMaturitiesofLeaseLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_ae72886c-d7dd-4616-93ea-6cc684f21990" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_f049eb4e-a875-4ad4-b4d4-f5180b6cbade" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_ae72886c-d7dd-4616-93ea-6cc684f21990" xlink:to="loc_us-gaap_OperatingLeaseLiability_f049eb4e-a875-4ad4-b4d4-f5180b6cbade" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_f9e36c78-8956-4d90-83ca-c15ec26c29d4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_ae72886c-d7dd-4616-93ea-6cc684f21990" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_f9e36c78-8956-4d90-83ca-c15ec26c29d4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LeasesMaturitiesofLeaseLiabilitiesDetails_1" xlink:type="simple" xlink:href="afrm-20230331.xsd#LeasesMaturitiesofLeaseLiabilitiesDetails_1"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LeasesMaturitiesofLeaseLiabilitiesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_800c2eee-de1e-432d-a42c-4e83399fc4cf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_a496dc60-abca-4f6f-9478-db028acea5b5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_800c2eee-de1e-432d-a42c-4e83399fc4cf" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_a496dc60-abca-4f6f-9478-db028acea5b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_0f0b2d65-eca9-4611-8327-2f62fddd6d37" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_800c2eee-de1e-432d-a42c-4e83399fc4cf" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_0f0b2d65-eca9-4611-8327-2f62fddd6d37" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_e1bd9f03-0e9d-4256-b104-bb93dd9950cd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_800c2eee-de1e-432d-a42c-4e83399fc4cf" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_e1bd9f03-0e9d-4256-b104-bb93dd9950cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LesseeOperatingLeaseLiabilityToBePaidYearFourAndAfterYearFour_719da222-7f1c-46f2-8848-59319d6d33bb" xlink:href="afrm-20230331.xsd#afrm_LesseeOperatingLeaseLiabilityToBePaidYearFourAndAfterYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_800c2eee-de1e-432d-a42c-4e83399fc4cf" xlink:to="loc_afrm_LesseeOperatingLeaseLiabilityToBePaidYearFourAndAfterYearFour_719da222-7f1c-46f2-8848-59319d6d33bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_449b1bd3-11cd-45bc-83a7-cd01152778da" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_800c2eee-de1e-432d-a42c-4e83399fc4cf" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_449b1bd3-11cd-45bc-83a7-cd01152778da" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DebtAggregateFutureMaturitiesofFundingDebtDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#DebtAggregateFutureMaturitiesofFundingDebtDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/DebtAggregateFutureMaturitiesofFundingDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_bde8e05c-0d39-4726-b59c-954e9cc0d10d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_7c0e757d-8584-4338-8f36-ba9a12ee8a1f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_bde8e05c-0d39-4726-b59c-954e9cc0d10d" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_7c0e757d-8584-4338-8f36-ba9a12ee8a1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_7ec8f681-2675-4b33-b1ea-50c8571a4aa2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_bde8e05c-0d39-4726-b59c-954e9cc0d10d" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_7ec8f681-2675-4b33-b1ea-50c8571a4aa2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_18cbabfe-e607-4d7e-906e-22c11532b2ae" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_3373e827-5662-41d7-8405-761a0b2a8cdb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_18cbabfe-e607-4d7e-906e-22c11532b2ae" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_3373e827-5662-41d7-8405-761a0b2a8cdb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_64147183-4885-40d5-a3a1-931ab173f863" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_18cbabfe-e607-4d7e-906e-22c11532b2ae" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_64147183-4885-40d5-a3a1-931ab173f863" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LongTermDebtMaturityAfterYearFour_c1dcd577-b108-4e1c-8443-65e3ede6c8a6" xlink:href="afrm-20230331.xsd#afrm_LongTermDebtMaturityAfterYearFour"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_18cbabfe-e607-4d7e-906e-22c11532b2ae" xlink:to="loc_afrm_LongTermDebtMaturityAfterYearFour_c1dcd577-b108-4e1c-8443-65e3ede6c8a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_57cf6b31-1375-45be-ac9b-0b616bec7a6e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_18cbabfe-e607-4d7e-906e-22c11532b2ae" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_57cf6b31-1375-45be-ac9b-0b616bec7a6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_f5009eaf-3c7c-479d-90d0-169457e44d52" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_18cbabfe-e607-4d7e-906e-22c11532b2ae" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_f5009eaf-3c7c-479d-90d0-169457e44d52" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DebtConvertibleNotesOutstandingDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#DebtConvertibleNotesOutstandingDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/DebtConvertibleNotesOutstandingDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_cda4f30c-cfb2-4507-94f3-b1f9a8166d71" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_d7de21fa-eafc-4144-9235-68b6f563fde1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_cda4f30c-cfb2-4507-94f3-b1f9a8166d71" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_d7de21fa-eafc-4144-9235-68b6f563fde1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_2aa8f57c-66ca-4f0a-a166-60d4227640d2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_cda4f30c-cfb2-4507-94f3-b1f9a8166d71" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_2aa8f57c-66ca-4f0a-a166-60d4227640d2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/InvestmentsAvailableforSaleSecuritieswithUnrealizedLossesDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#InvestmentsAvailableforSaleSecuritieswithUnrealizedLossesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/InvestmentsAvailableforSaleSecuritieswithUnrealizedLossesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_31bed25e-92e7-4285-a4cc-35cc7ac7f775" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_9fb5fd28-ad75-4e83-9e87-783217c3b57a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_31bed25e-92e7-4285-a4cc-35cc7ac7f775" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_9fb5fd28-ad75-4e83-9e87-783217c3b57a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_5985ae08-86ed-47db-b497-eb7110764553" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_31bed25e-92e7-4285-a4cc-35cc7ac7f775" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_5985ae08-86ed-47db-b497-eb7110764553" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_cdbbb3d9-945c-48f0-9946-04eb897045fc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_24f79e23-48a4-4c06-a8ac-06c4d44573bf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_cdbbb3d9-945c-48f0-9946-04eb897045fc" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_24f79e23-48a4-4c06-a8ac-06c4d44573bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_c08aaad8-c1d8-48fb-a92b-4014af6fefac" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_cdbbb3d9-945c-48f0-9946-04eb897045fc" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_c08aaad8-c1d8-48fb-a92b-4014af6fefac" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/InvestmentsLengthofContractualMaturitiesDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#InvestmentsLengthofContractualMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/InvestmentsLengthofContractualMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance_e9d36e41-93ed-4bd7-88ef-0baa22af7e7e" xlink:href="afrm-20230331.xsd#afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_3ffb83aa-d6dc-4ec2-88e2-6a6aa3d6f4f4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance_e9d36e41-93ed-4bd7-88ef-0baa22af7e7e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_3ffb83aa-d6dc-4ec2-88e2-6a6aa3d6f4f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_bf101b3f-21a1-4cda-b277-41531541a488" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance_e9d36e41-93ed-4bd7-88ef-0baa22af7e7e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_bf101b3f-21a1-4cda-b277-41531541a488" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_ecdabff1-dbaa-4a74-a2bd-1b9090601679" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_fcaa23e6-8206-4654-a507-1f136778df93" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_ecdabff1-dbaa-4a74-a2bd-1b9090601679" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_fcaa23e6-8206-4654-a507-1f136778df93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_b456eae9-ce82-472b-abd5-ce055e4cfdc2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_ecdabff1-dbaa-4a74-a2bd-1b9090601679" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_b456eae9-ce82-472b-abd5-ce055e4cfdc2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_1d3463e8-d685-4ee6-81a5-fa2611deeff0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_5d85e9f9-fff1-4a81-a15f-d469c2f88954" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_1d3463e8-d685-4ee6-81a5-fa2611deeff0" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_5d85e9f9-fff1-4a81-a15f-d469c2f88954" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_2623eae0-9ddd-41a6-b1b5-e12fc841949e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_1d3463e8-d685-4ee6-81a5-fa2611deeff0" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_2623eae0-9ddd-41a6-b1b5-e12fc841949e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#FairValueofFinancialAssetsandLiabilitiesAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_ef53b2e6-4d74-42e8-8b1b-a18ed6434598" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_53154790-424a-4dae-9b8c-e71737f742da" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_ef53b2e6-4d74-42e8-8b1b-a18ed6434598" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_53154790-424a-4dae-9b8c-e71737f742da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RestrictedCashFairValueDisclosure_09151dce-4844-4636-b8a4-c9d0df1755a7" xlink:href="afrm-20230331.xsd#afrm_RestrictedCashFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_ef53b2e6-4d74-42e8-8b1b-a18ed6434598" xlink:to="loc_afrm_RestrictedCashFairValueDisclosure_09151dce-4844-4636-b8a4-c9d0df1755a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualTrustCertificatesAssetFairValueDisclosure_cddc5592-b582-45da-903e-078304d9b40a" xlink:href="afrm-20230331.xsd#afrm_ResidualTrustCertificatesAssetFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_ef53b2e6-4d74-42e8-8b1b-a18ed6434598" xlink:to="loc_afrm_ResidualTrustCertificatesAssetFairValueDisclosure_cddc5592-b582-45da-903e-078304d9b40a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsFairValueDisclosure_f44614d8-6f1e-46b4-892b-4f81ffd5d4b7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsFairValueDisclosure"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_ef53b2e6-4d74-42e8-8b1b-a18ed6434598" xlink:to="loc_us-gaap_OtherAssetsFairValueDisclosure_f44614d8-6f1e-46b4-892b-4f81ffd5d4b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAsset_1c198a4e-7298-493e-9b09-8af5cb2c1a35" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ServicingAsset"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_ef53b2e6-4d74-42e8-8b1b-a18ed6434598" xlink:to="loc_us-gaap_ServicingAsset_1c198a4e-7298-493e-9b09-8af5cb2c1a35" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_470454ff-5037-4ff0-b28d-39a77fac305d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_ef53b2e6-4d74-42e8-8b1b-a18ed6434598" xlink:to="loc_us-gaap_DerivativeAssets_470454ff-5037-4ff0-b28d-39a77fac305d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_563e6257-6759-4ea0-a9a1-eccdd582d9b0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingLiabilityAtFairValueAmount_649e0a4a-b0ba-4747-a4fe-d74361eb8738" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ServicingLiabilityAtFairValueAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_563e6257-6759-4ea0-a9a1-eccdd582d9b0" xlink:to="loc_us-gaap_ServicingLiabilityAtFairValueAmount_649e0a4a-b0ba-4747-a4fe-d74361eb8738" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PerformanceFeeLiabilityFairValueDisclosure_72cd4527-94cb-42ee-81e5-ce75713cc042" xlink:href="afrm-20230331.xsd#afrm_PerformanceFeeLiabilityFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_563e6257-6759-4ea0-a9a1-eccdd582d9b0" xlink:to="loc_afrm_PerformanceFeeLiabilityFairValueDisclosure_72cd4527-94cb-42ee-81e5-ce75713cc042" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualTrustCertificatesFairValueDisclosure_d054b5c9-1f30-4062-9a0a-466173e9964d" xlink:href="afrm-20230331.xsd#afrm_ResidualTrustCertificatesFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_563e6257-6759-4ea0-a9a1-eccdd582d9b0" xlink:to="loc_afrm_ResidualTrustCertificatesFairValueDisclosure_d054b5c9-1f30-4062-9a0a-466173e9964d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_17da2662-3404-4921-86f7-2f2b999fa04f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_563e6257-6759-4ea0-a9a1-eccdd582d9b0" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_17da2662-3404-4921-86f7-2f2b999fa04f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_23525159-fead-4c0b-9378-95e6a8c622b7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_563e6257-6759-4ea0-a9a1-eccdd582d9b0" xlink:to="loc_us-gaap_DerivativeLiabilities_23525159-fead-4c0b-9378-95e6a8c622b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure_81f82d84-200c-4da9-83ec-3db57f59ad7c" xlink:href="afrm-20230331.xsd#afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_563e6257-6759-4ea0-a9a1-eccdd582d9b0" xlink:to="loc_afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure_81f82d84-200c-4da9-83ec-3db57f59ad7c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFinancialAssetsandLiabilitiesNotRecordedatFairValueDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#FairValueofFinancialAssetsandLiabilitiesFinancialAssetsandLiabilitiesNotRecordedatFairValueDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFinancialAssetsandLiabilitiesNotRecordedatFairValueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_10ee08e8-0af4-4f66-a6eb-6098116b0118" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtFairValueDisclosures_e949d098-e717-4683-bc5e-c4f42c945eac" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConvertibleDebtFairValueDisclosures"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_10ee08e8-0af4-4f66-a6eb-6098116b0118" xlink:to="loc_us-gaap_ConvertibleDebtFairValueDisclosures_e949d098-e717-4683-bc5e-c4f42c945eac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesPayableFairValueDisclosure_47aab1c3-ebb8-47fb-a5c3-773346a44721" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NotesPayableFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_10ee08e8-0af4-4f66-a6eb-6098116b0118" xlink:to="loc_us-gaap_NotesPayableFairValueDisclosure_47aab1c3-ebb8-47fb-a5c3-773346a44721" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LinesOfCreditFairValueDisclosure_8a1e4277-2031-436a-ae41-e1192dbda3f7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LinesOfCreditFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_10ee08e8-0af4-4f66-a6eb-6098116b0118" xlink:to="loc_us-gaap_LinesOfCreditFairValueDisclosure_8a1e4277-2031-436a-ae41-e1192dbda3f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_608756b4-c21b-4929-97a4-c308b1853224" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableHeldForSaleFairValueDisclosure_4d62b1ba-4332-4246-8b03-01e238e47c8f" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableHeldForSaleFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_608756b4-c21b-4929-97a4-c308b1853224" xlink:to="loc_afrm_FinancingReceivableHeldForSaleFairValueDisclosure_4d62b1ba-4332-4246-8b03-01e238e47c8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableFairValueDisclosure_c84db730-24d8-4962-ba98-1720646bd0d8" xlink:href="afrm-20230331.xsd#afrm_FinancingReceivableFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_608756b4-c21b-4929-97a4-c308b1853224" xlink:to="loc_afrm_FinancingReceivableFairValueDisclosure_c84db730-24d8-4962-ba98-1720646bd0d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsFairValueDisclosure_2a386301-112b-4af2-936d-b2297589ac31" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_608756b4-c21b-4929-97a4-c308b1853224" xlink:to="loc_us-gaap_OtherAssetsFairValueDisclosure_2a386301-112b-4af2-936d-b2297589ac31" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/EquityIncentivePlansComponentsandClassificationofStockbasedCompensationDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#EquityIncentivePlansComponentsandClassificationofStockbasedCompensationDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/EquityIncentivePlansComponentsandClassificationofStockbasedCompensationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_569ede1b-337e-4d4c-a920-abdac358f95b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_2319972b-63a9-45ee-a7e4-00684b371cce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_569ede1b-337e-4d4c-a920-abdac358f95b" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_2319972b-63a9-45ee-a7e4-00684b371cce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_a19d4941-a089-4930-8cda-561156abf613" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_569ede1b-337e-4d4c-a920-abdac358f95b" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_a19d4941-a089-4930-8cda-561156abf613" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/RestructuringchargesnetScheduleofRestructuringCostsDetails" xlink:type="simple" xlink:href="afrm-20230331.xsd#RestructuringchargesnetScheduleofRestructuringCostsDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/RestructuringchargesnetScheduleofRestructuringCostsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_1f8dd507-7f04-491c-b4ed-ed63c67b8da5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestructuringCharges"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeveranceCosts1_e9572571-cc99-4884-a935-6b1025196ae0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SeveranceCosts1"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCharges_1f8dd507-7f04-491c-b4ed-ed63c67b8da5" xlink:to="loc_us-gaap_SeveranceCosts1_e9572571-cc99-4884-a935-6b1025196ae0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessExitCosts1_7c7ec6eb-8b9d-44e7-8eea-830874d9bb50" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessExitCosts1"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCharges_1f8dd507-7f04-491c-b4ed-ed63c67b8da5" xlink:to="loc_us-gaap_BusinessExitCosts1_7c7ec6eb-8b9d-44e7-8eea-830874d9bb50" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
