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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:10368371-8f3a-4e1d-9b08-dc2a187a495c,g:fc994fa4-cb2d-4e1a-bdae-50050a3f7e63-->
<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/CoverPage" xlink:type="simple" xlink:href="afrm-20201231.xsd#CoverPage"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CoverPage" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSUnaudited" xlink:type="simple" xlink:href="afrm-20201231.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETSUnaudited"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_199d4ec3-8048-486b-b376-cfe60ca0e794" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_51e97cd4-a76d-4496-b21f-4fd06b50c20e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_199d4ec3-8048-486b-b376-cfe60ca0e794" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_51e97cd4-a76d-4496-b21f-4fd06b50c20e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_11793d05-8727-48eb-b3a1-6f760a163b0d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_199d4ec3-8048-486b-b376-cfe60ca0e794" xlink:to="loc_us-gaap_RestrictedCash_11793d05-8727-48eb-b3a1-6f760a163b0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableHeldForSaleAmount_75e9052d-08d3-46de-a187-be6ddd9b5f96" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansReceivableHeldForSaleAmount"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_199d4ec3-8048-486b-b376-cfe60ca0e794" xlink:to="loc_us-gaap_LoansReceivableHeldForSaleAmount_75e9052d-08d3-46de-a187-be6ddd9b5f96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_e917b7a9-5cfc-4d89-8158-c8a64dfa6d28" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesReceivableNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_199d4ec3-8048-486b-b376-cfe60ca0e794" xlink:to="loc_us-gaap_NotesReceivableNet_e917b7a9-5cfc-4d89-8158-c8a64dfa6d28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNet_ed4d73fd-ff7c-4586-951d-0c73cbc10eda" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_199d4ec3-8048-486b-b376-cfe60ca0e794" xlink:to="loc_us-gaap_AccountsReceivableNet_ed4d73fd-ff7c-4586-951d-0c73cbc10eda" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_1d65c383-ef53-4189-a8cb-49ed0136b481" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_199d4ec3-8048-486b-b376-cfe60ca0e794" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_1d65c383-ef53-4189-a8cb-49ed0136b481" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_d2999051-4482-4a6a-bf38-f8c10199abf9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_199d4ec3-8048-486b-b376-cfe60ca0e794" xlink:to="loc_us-gaap_OtherAssets_d2999051-4482-4a6a-bf38-f8c10199abf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_622fa9f2-fa32-47a8-8d7d-772f4d4c881b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_4f47ba8f-b829-4c28-a851-cb5c43cffc68" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_622fa9f2-fa32-47a8-8d7d-772f4d4c881b" xlink:to="loc_us-gaap_Liabilities_4f47ba8f-b829-4c28-a851-cb5c43cffc68" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_d5d8f1a4-3d31-4ca5-adae-362e35d7a42d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_622fa9f2-fa32-47a8-8d7d-772f4d4c881b" xlink:to="loc_us-gaap_CommitmentsAndContingencies_d5d8f1a4-3d31-4ca5-adae-362e35d7a42d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_aa351c40-10be-439f-a7ca-90b6c7bc43b2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityCarryingAmountAttributableToParent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_622fa9f2-fa32-47a8-8d7d-772f4d4c881b" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_aa351c40-10be-439f-a7ca-90b6c7bc43b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_8c81dd4b-6c92-43da-a381-c9cec3157723" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_622fa9f2-fa32-47a8-8d7d-772f4d4c881b" xlink:to="loc_us-gaap_StockholdersEquity_8c81dd4b-6c92-43da-a381-c9cec3157723" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_f140321e-48cd-4346-9673-a2910e0de577" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_9d5852ae-0474-45fc-b796-d7f06a0dae89" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_f140321e-48cd-4346-9673-a2910e0de577" xlink:to="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_9d5852ae-0474-45fc-b796-d7f06a0dae89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ThirdPartyLoanOwnerPayable_efc608de-f2a5-4ae1-a833-1e4a4a1a2d0e" xlink:href="afrm-20201231.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_f140321e-48cd-4346-9673-a2910e0de577" xlink:to="loc_afrm_ThirdPartyLoanOwnerPayable_efc608de-f2a5-4ae1-a833-1e4a4a1a2d0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_d7f6c1a2-6fed-4dad-9b2a-8a20e4306fa9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_f140321e-48cd-4346-9673-a2910e0de577" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_d7f6c1a2-6fed-4dad-9b2a-8a20e4306fa9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_d0b743dd-98f1-4386-b941-1de732939798" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_f140321e-48cd-4346-9673-a2910e0de577" xlink:to="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_d0b743dd-98f1-4386-b941-1de732939798" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebt_089f8dd2-8ef6-457e-96bc-018e30b24f6c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_f140321e-48cd-4346-9673-a2910e0de577" xlink:to="loc_us-gaap_ConvertibleDebt_089f8dd2-8ef6-457e-96bc-018e30b24f6c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebt_822b5ba5-eaab-4e7e-a0c0-8c9abe0ae8a2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_f140321e-48cd-4346-9673-a2910e0de577" xlink:to="loc_us-gaap_SecuredDebt_822b5ba5-eaab-4e7e-a0c0-8c9abe0ae8a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_0737d351-b2fe-4c26-a7e0-fd655bf90827" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_f140321e-48cd-4346-9673-a2910e0de577" xlink:to="loc_us-gaap_LineOfCredit_0737d351-b2fe-4c26-a7e0-fd655bf90827" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_2c12d89c-023d-47bf-9c16-3ccb3475e98f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesReceivableNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_3d4e48cc-436d-4057-9ce7-2966c20bddcf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableNet_2c12d89c-023d-47bf-9c16-3ccb3475e98f" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_3d4e48cc-436d-4057-9ce7-2966c20bddcf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableGross_667ffccd-b6fa-4546-972f-ba846a3f2a1e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesReceivableGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableNet_2c12d89c-023d-47bf-9c16-3ccb3475e98f" xlink:to="loc_us-gaap_NotesReceivableGross_667ffccd-b6fa-4546-972f-ba846a3f2a1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_66c3f746-2908-4e4a-8a6d-2a2ee11c5aca" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_2aecca2e-f649-4cfb-9e3c-b92bf621a5fe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_66c3f746-2908-4e4a-8a6d-2a2ee11c5aca" xlink:to="loc_us-gaap_CommonStockValue_2aecca2e-f649-4cfb-9e3c-b92bf621a5fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_c2a606b3-c4bb-417d-b48b-247a85ec7688" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_66c3f746-2908-4e4a-8a6d-2a2ee11c5aca" xlink:to="loc_us-gaap_AdditionalPaidInCapital_c2a606b3-c4bb-417d-b48b-247a85ec7688" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_4234c1d3-bd42-4ca3-9cf1-dcd185a83e01" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_66c3f746-2908-4e4a-8a6d-2a2ee11c5aca" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_4234c1d3-bd42-4ca3-9cf1-dcd185a83e01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_973ab9b4-5201-4ed0-8a9d-5dd5b3de3ae4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_66c3f746-2908-4e4a-8a6d-2a2ee11c5aca" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_973ab9b4-5201-4ed0-8a9d-5dd5b3de3ae4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSUnauditedParenthetical" xlink:type="simple" xlink:href="afrm-20201231.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETSUnauditedParenthetical"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSUnauditedParenthetical" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsNet_f3a2364b-99b7-4680-80a8-2ab6a0b679cc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_56a4ad1b-27f7-4c59-8e90-b47e7f86d50a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_AssetsNet_f3a2364b-99b7-4680-80a8-2ab6a0b679cc" xlink:to="loc_us-gaap_Liabilities_56a4ad1b-27f7-4c59-8e90-b47e7f86d50a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_df09c3b8-c806-4769-890a-71add2056caa" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsNet_f3a2364b-99b7-4680-80a8-2ab6a0b679cc" xlink:to="loc_us-gaap_Assets_df09c3b8-c806-4769-890a-71add2056caa" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="afrm-20201231.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_c76743e8-5e9a-47c6-93ee-4f94e9b59ea9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_26b1e87e-afcf-4bd8-8501-69a82a01fd5d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_c76743e8-5e9a-47c6-93ee-4f94e9b59ea9" xlink:to="loc_us-gaap_Revenues_26b1e87e-afcf-4bd8-8501-69a82a01fd5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_ed88016b-8344-40ca-ad5d-022f29506f57" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_c76743e8-5e9a-47c6-93ee-4f94e9b59ea9" xlink:to="loc_us-gaap_CostsAndExpenses_ed88016b-8344-40ca-ad5d-022f29506f57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_528d6ae4-9742-4327-8130-29893b80fdec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_5cee2f15-a7e3-4df5-89d1-8fcf15e97721" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockDividendsAndOtherAdjustments"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_528d6ae4-9742-4327-8130-29893b80fdec" xlink:to="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_5cee2f15-a7e3-4df5-89d1-8fcf15e97721" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_bd36952d-c5f5-47b8-8de5-41f68daa07e9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_528d6ae4-9742-4327-8130-29893b80fdec" xlink:to="loc_us-gaap_NetIncomeLoss_bd36952d-c5f5-47b8-8de5-41f68daa07e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_f1d9e74c-2981-44c5-bd60-9269f618f81f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_abc6bb16-4a78-45d6-a3f0-747eb7c88f66" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_f1d9e74c-2981-44c5-bd60-9269f618f81f" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_abc6bb16-4a78-45d6-a3f0-747eb7c88f66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_66080ce7-9663-441d-9ba8-039b388fcce4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_f1d9e74c-2981-44c5-bd60-9269f618f81f" xlink:to="loc_us-gaap_NetIncomeLoss_66080ce7-9663-441d-9ba8-039b388fcce4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_35bad327-70b7-46b2-86f9-38902a68d8a0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_06b8663a-b00f-40ee-8a22-90d0b3b2bbd3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_35bad327-70b7-46b2-86f9-38902a68d8a0" xlink:to="loc_us-gaap_OperatingIncomeLoss_06b8663a-b00f-40ee-8a22-90d0b3b2bbd3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_913bf5f5-4978-45cc-93f2-6fb8d3bffc81" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_35bad327-70b7-46b2-86f9-38902a68d8a0" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_913bf5f5-4978-45cc-93f2-6fb8d3bffc81" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_96f9de4b-bb58-4b63-bbb7-ad763b3f11b7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f9dfdfdb-4796-44e4-9a94-0a9924036629" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_96f9de4b-bb58-4b63-bbb7-ad763b3f11b7" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f9dfdfdb-4796-44e4-9a94-0a9924036629" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_f064a0d7-6386-4d32-ac37-4c0b94aa03e9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_96f9de4b-bb58-4b63-bbb7-ad763b3f11b7" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_f064a0d7-6386-4d32-ac37-4c0b94aa03e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_d63e2c04-4603-4901-8a9d-a66cb38a2e41" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Revenues"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_631921c8-61e4-4a77-bef0-777a856e211d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainLossOnSalesOfLoansNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_d63e2c04-4603-4901-8a9d-a66cb38a2e41" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_631921c8-61e4-4a77-bef0-777a856e211d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_4ae3083e-9682-445f-aab5-6ed76899335a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_d63e2c04-4603-4901-8a9d-a66cb38a2e41" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_4ae3083e-9682-445f-aab5-6ed76899335a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_2fddad88-738c-4a8f-a44a-434a128350e2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_d63e2c04-4603-4901-8a9d-a66cb38a2e41" xlink:to="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_2fddad88-738c-4a8f-a44a-434a128350e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_3c5deebc-cc9b-4339-9fdd-d1c545c803d8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_d63e2c04-4603-4901-8a9d-a66cb38a2e41" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_3c5deebc-cc9b-4339-9fdd-d1c545c803d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_ed6850ab-17a5-4aa9-b920-071be06382b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LossOnFinancingReceivableCommitmentsToPurchase_6fedde0b-2611-4a20-9014-65ae05ce76df" xlink:href="afrm-20201231.xsd#afrm_LossOnFinancingReceivableCommitmentsToPurchase"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ed6850ab-17a5-4aa9-b920-071be06382b5" xlink:to="loc_afrm_LossOnFinancingReceivableCommitmentsToPurchase_6fedde0b-2611-4a20-9014-65ae05ce76df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_9e786c2b-d5ea-48c9-846b-354ab952c621" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ed6850ab-17a5-4aa9-b920-071be06382b5" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_9e786c2b-d5ea-48c9-846b-354ab952c621" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_93f501ce-1e40-4121-ae21-402bf1f2673b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpenseDebt"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ed6850ab-17a5-4aa9-b920-071be06382b5" xlink:to="loc_us-gaap_InterestExpenseDebt_93f501ce-1e40-4121-ae21-402bf1f2673b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ProcessingAndServicingExpense_138a1f4b-e5e7-4405-b423-4776b47d7f15" xlink:href="afrm-20201231.xsd#afrm_ProcessingAndServicingExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ed6850ab-17a5-4aa9-b920-071be06382b5" xlink:to="loc_afrm_ProcessingAndServicingExpense_138a1f4b-e5e7-4405-b423-4776b47d7f15" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_TechnologyAndDataAnalyticsExpense_78af3ee7-8b93-40d3-9f4d-d4a98f565e27" xlink:href="afrm-20201231.xsd#afrm_TechnologyAndDataAnalyticsExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ed6850ab-17a5-4aa9-b920-071be06382b5" xlink:to="loc_afrm_TechnologyAndDataAnalyticsExpense_78af3ee7-8b93-40d3-9f4d-d4a98f565e27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_8f7ff6f2-97a6-416d-a63f-44c6dbe394aa" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_ed6850ab-17a5-4aa9-b920-071be06382b5" xlink:to="loc_us-gaap_SellingAndMarketingExpense_8f7ff6f2-97a6-416d-a63f-44c6dbe394aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_327c223c-bcb0-412b-881a-00f58cd8b602" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ed6850ab-17a5-4aa9-b920-071be06382b5" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_327c223c-bcb0-412b-881a-00f58cd8b602" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_ef7897ac-28f3-4c37-9ed4-10187007a0ee" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_2a1efb6a-87a5-4a76-8b01-9155fd62e5ac" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_ef7897ac-28f3-4c37-9ed4-10187007a0ee" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_2a1efb6a-87a5-4a76-8b01-9155fd62e5ac" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTOFREDEEMABLECONVERTIBLEPREFERREDSTOCKANDSTOCKHOLDERSDEFICIT" xlink:type="simple" xlink:href="afrm-20201231.xsd#CONDENSEDCONSOLIDATEDSTATEMENTOFREDEEMABLECONVERTIBLEPREFERREDSTOCKANDSTOCKHOLDERSDEFICIT"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTOFREDEEMABLECONVERTIBLEPREFERREDSTOCKANDSTOCKHOLDERSDEFICIT" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTOFREDEEMABLECONVERTIBLEPREFERREDSTOCKANDSTOCKHOLDERSDEFICITParenthetical" xlink:type="simple" xlink:href="afrm-20201231.xsd#CONDENSEDCONSOLIDATEDSTATEMENTOFREDEEMABLECONVERTIBLEPREFERREDSTOCKANDSTOCKHOLDERSDEFICITParenthetical"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTOFREDEEMABLECONVERTIBLEPREFERREDSTOCKANDSTOCKHOLDERSDEFICITParenthetical" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWSUnaudited" xlink:type="simple" xlink:href="afrm-20201231.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWSUnaudited"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWSUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_f6447e4e-fb54-4ecb-ba12-42867a9d7ed8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_06dc9ffd-b2f7-4af4-8d68-4c2b098eb594" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_f6447e4e-fb54-4ecb-ba12-42867a9d7ed8" xlink:to="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_06dc9ffd-b2f7-4af4-8d68-4c2b098eb594" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_efc828a4-1270-4cd3-a867-9e3ee34535eb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_f6447e4e-fb54-4ecb-ba12-42867a9d7ed8" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_efc828a4-1270-4cd3-a867-9e3ee34535eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_cc418908-b5d7-4991-abfa-08e8c75054b8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_f6447e4e-fb54-4ecb-ba12-42867a9d7ed8" xlink:to="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_cc418908-b5d7-4991-abfa-08e8c75054b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSecuredDebt_9f0857da-879a-4d81-90b6-531bdfbad7eb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_f6447e4e-fb54-4ecb-ba12-42867a9d7ed8" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSecuredDebt_9f0857da-879a-4d81-90b6-531bdfbad7eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfSecuredDebt_54155224-7174-4f6a-9afa-4038469339b1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_f6447e4e-fb54-4ecb-ba12-42867a9d7ed8" xlink:to="loc_us-gaap_RepaymentsOfSecuredDebt_54155224-7174-4f6a-9afa-4038469339b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock_9f8bf87a-7e3d-4b1e-8578-f3f16c95918a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_f6447e4e-fb54-4ecb-ba12-42867a9d7ed8" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfRedeemableConvertiblePreferredStock_9f8bf87a-7e3d-4b1e-8578-f3f16c95918a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfRedeemableConvertiblePreferredStock_c2efb1af-b4b2-4d55-8e47-323740d0734a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForRepurchaseOfRedeemableConvertiblePreferredStock"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_f6447e4e-fb54-4ecb-ba12-42867a9d7ed8" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfRedeemableConvertiblePreferredStock_c2efb1af-b4b2-4d55-8e47-323740d0734a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_bde04c61-a65d-41f1-9527-d2b269d76fa5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_f6447e4e-fb54-4ecb-ba12-42867a9d7ed8" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_bde04c61-a65d-41f1-9527-d2b269d76fa5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_2dc53f6c-94a7-4004-b4a5-7c7ed69c81f1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_f6447e4e-fb54-4ecb-ba12-42867a9d7ed8" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_2dc53f6c-94a7-4004-b4a5-7c7ed69c81f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_5dd74b7f-f422-46d5-aaea-f80754720ee4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_0249a932-ac5b-456a-9b27-c21412935725" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5dd74b7f-f422-46d5-aaea-f80754720ee4" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_0249a932-ac5b-456a-9b27-c21412935725" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_43b43c45-2614-4daa-a27b-6f21d2ede8a3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5dd74b7f-f422-46d5-aaea-f80754720ee4" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_43b43c45-2614-4daa-a27b-6f21d2ede8a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ff003e7b-9ae4-4f4a-bb34-27e84a9b507b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5dd74b7f-f422-46d5-aaea-f80754720ee4" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ff003e7b-9ae4-4f4a-bb34-27e84a9b507b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_03edc4f5-809b-46cc-bb9f-fdfe4727fee6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_us-gaap_NetIncomeLoss_03edc4f5-809b-46cc-bb9f-fdfe4727fee6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_cf88d7f3-3cbd-4da1-b995-28979567ff1f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_cf88d7f3-3cbd-4da1-b995-28979567ff1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables_68fdafbd-2639-49c0-80b4-7af88aab90a6" xlink:href="afrm-20201231.xsd#afrm_AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_afrm_AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables_68fdafbd-2639-49c0-80b4-7af88aab90a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_691cce0d-ed0e-41e7-8241-355b13465c8c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_691cce0d-ed0e-41e7-8241-355b13465c8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_GainLossOnServicingAssetsAndLiabilities_8b7843c8-aad4-410e-8734-eeb72c5c03dd" xlink:href="afrm-20201231.xsd#afrm_GainLossOnServicingAssetsAndLiabilities"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_afrm_GainLossOnServicingAssetsAndLiabilities_8b7843c8-aad4-410e-8734-eeb72c5c03dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmbeddedDerivativeGainLossOnEmbeddedDerivativeNet_0ae4f13a-448d-4847-ac69-2452751281f9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmbeddedDerivativeGainLossOnEmbeddedDerivativeNet"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_us-gaap_EmbeddedDerivativeGainLossOnEmbeddedDerivativeNet_0ae4f13a-448d-4847-ac69-2452751281f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_GainLossOnResidualTrustCertificates_0ee15443-b7eb-4938-8655-f386d11cc876" xlink:href="afrm-20201231.xsd#afrm_GainLossOnResidualTrustCertificates"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_afrm_GainLossOnResidualTrustCertificates_0ee15443-b7eb-4938-8655-f386d11cc876" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfCommercialAgreementAsset_6248123e-d92c-49d8-a1ff-7a2f8c6d4ab2" xlink:href="afrm-20201231.xsd#afrm_AmortizationOfCommercialAgreementAsset"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_afrm_AmortizationOfCommercialAgreementAsset_6248123e-d92c-49d8-a1ff-7a2f8c6d4ab2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_7c495691-c131-4289-a8af-0a779bd0dd4e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_7c495691-c131-4289-a8af-0a779bd0dd4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_c9251669-ed7d-4f78-82c4-ebccdbcdf8cf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_us-gaap_ShareBasedCompensation_c9251669-ed7d-4f78-82c4-ebccdbcdf8cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_0936b79b-48f0-41c2-93a7-aeda6a2f1645" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_0936b79b-48f0-41c2-93a7-aeda6a2f1645" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_ee6cea6a-d696-422f-bb12-735da935f249" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxesAndTaxCredits"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_ee6cea6a-d696-422f-bb12-735da935f249" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_3251ae2b-d385-4475-bf55-18d9faf8991b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_3251ae2b-d385-4475-bf55-18d9faf8991b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToPurchaseLoansHeldForSale_5cfd4991-a202-4b88-8e1d-b54a361ceed0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToPurchaseLoansHeldForSale"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_us-gaap_PaymentsToPurchaseLoansHeldForSale_5cfd4991-a202-4b88-8e1d-b54a361ceed0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_86a74c6f-7a53-48ba-8a28-8b1626cf1066" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfLoansHeldForSale"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_86a74c6f-7a53-48ba-8a28-8b1626cf1066" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_cc030e45-08ae-479d-ac13-0aa0e70c6b01" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="16" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_cc030e45-08ae-479d-ac13-0aa0e70c6b01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_866f9392-2e14-49d2-87a6-90e5dc74395e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="17" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_866f9392-2e14-49d2-87a6-90e5dc74395e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_f379c034-5b4e-4839-8f61-60dba560835b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet"/>
    <link:calculationArc order="18" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_f379c034-5b4e-4839-8f61-60dba560835b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_63eefe37-b045-4fc6-bd59-2dbee5eccaf5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="19" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_63eefe37-b045-4fc6-bd59-2dbee5eccaf5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_0cea26aa-b838-460d-b215-663cf7c6deea" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities"/>
    <link:calculationArc order="20" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_0cea26aa-b838-460d-b215-663cf7c6deea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable_ae88adf0-53b9-4960-91f8-de7cf07d6a4f" xlink:href="afrm-20201231.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_5f7c8eaa-ff88-451d-bba8-2d83ddaa5e99" xlink:to="loc_afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable_ae88adf0-53b9-4960-91f8-de7cf07d6a4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c48138aa-b226-4b7e-b24d-b3d2472c5dec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireFinanceReceivables_2d3e2d43-83f5-442a-8390-0715e4b34b1e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_c48138aa-b226-4b7e-b24d-b3d2472c5dec" xlink:to="loc_us-gaap_PaymentsToAcquireFinanceReceivables_2d3e2d43-83f5-442a-8390-0715e4b34b1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_OriginationOfLoans_b56c7ba4-0573-44af-984c-c94babdd4eaf" xlink:href="afrm-20201231.xsd#afrm_OriginationOfLoans"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c48138aa-b226-4b7e-b24d-b3d2472c5dec" xlink:to="loc_afrm_OriginationOfLoans_b56c7ba4-0573-44af-984c-c94babdd4eaf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfFinanceReceivables_8dcb8bd2-7318-44d4-81e6-8600d548f040" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfFinanceReceivables"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c48138aa-b226-4b7e-b24d-b3d2472c5dec" xlink:to="loc_us-gaap_ProceedsFromSaleOfFinanceReceivables_8dcb8bd2-7318-44d4-81e6-8600d548f040" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromCollectionOfFinanceReceivables_768a8795-1e36-42ed-8bc1-d0a8527ac8b9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromCollectionOfFinanceReceivables"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c48138aa-b226-4b7e-b24d-b3d2472c5dec" xlink:to="loc_us-gaap_ProceedsFromCollectionOfFinanceReceivables_768a8795-1e36-42ed-8bc1-d0a8527ac8b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_8f2e5480-9874-4292-8dd8-0066406f9d9b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c48138aa-b226-4b7e-b24d-b3d2472c5dec" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_8f2e5480-9874-4292-8dd8-0066406f9d9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_5450f048-1191-4bef-bb19-5caa9529d957" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c48138aa-b226-4b7e-b24d-b3d2472c5dec" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_5450f048-1191-4bef-bb19-5caa9529d957" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BusinessDescription" xlink:type="simple" xlink:href="afrm-20201231.xsd#BusinessDescription"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BusinessDescription" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/BusinessDescriptionDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#BusinessDescriptionDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BusinessDescriptionDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/SummaryofSignificantAccountingPolicies" xlink:type="simple" xlink:href="afrm-20201231.xsd#SummaryofSignificantAccountingPolicies"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/SummaryofSignificantAccountingPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/SummaryofSignificantAccountingPoliciesPolicies" xlink:type="simple" xlink:href="afrm-20201231.xsd#SummaryofSignificantAccountingPoliciesPolicies"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/SummaryofSignificantAccountingPoliciesPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/SummaryofSignificantAccountingPoliciesDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#SummaryofSignificantAccountingPoliciesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/SummaryofSignificantAccountingPoliciesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/InterestIncome" xlink:type="simple" xlink:href="afrm-20201231.xsd#InterestIncome"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/InterestIncome" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/InterestIncomeTables" xlink:type="simple" xlink:href="afrm-20201231.xsd#InterestIncomeTables"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/InterestIncomeTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/InterestIncomeDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#InterestIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/InterestIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_35e993aa-5506-4289-9a55-24e70afc4536" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfPremiumsFinancingReceivables_4c03bfce-1e26-43e0-953a-fcacaab96a84" xlink:href="afrm-20201231.xsd#afrm_AmortizationOfPremiumsFinancingReceivables"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_35e993aa-5506-4289-9a55-24e70afc4536" xlink:to="loc_afrm_AmortizationOfPremiumsFinancingReceivables_4c03bfce-1e26-43e0-953a-fcacaab96a84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_f4f62ace-c116-4658-80c3-5be1f6816f63" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_35e993aa-5506-4289-9a55-24e70afc4536" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_f4f62ace-c116-4658-80c3-5be1f6816f63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccretionOfDiscountsFinancingReceivables_09a8f83c-b85e-4647-9d8d-f42bdbd3029f" xlink:href="afrm-20201231.xsd#afrm_AccretionOfDiscountsFinancingReceivables"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_35e993aa-5506-4289-9a55-24e70afc4536" xlink:to="loc_afrm_AccretionOfDiscountsFinancingReceivables_09a8f83c-b85e-4647-9d8d-f42bdbd3029f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_c7d381cd-ea5b-4257-81ad-861a0d6a3ada" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_35e993aa-5506-4289-9a55-24e70afc4536" xlink:to="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_c7d381cd-ea5b-4257-81ad-861a0d6a3ada" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLosses" xlink:type="simple" xlink:href="afrm-20201231.xsd#LoansHeldforInvestmentandAllowanceforCreditLosses"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLosses" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesTables" xlink:type="simple" xlink:href="afrm-20201231.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesTables"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesLoansHeldforInvestmentDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesLoansHeldforInvestmentDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesLoansHeldforInvestmentDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesAdditionalInformationDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesUnpaidPrincipalBalanceforLoansHeldforInvestmentDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesUnpaidPrincipalBalanceforLoansHeldforInvestmentDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesUnpaidPrincipalBalanceforLoansHeldforInvestmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee_c21d278b-8cd2-4d9e-ae18-0984bb8d479a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_4fa32ebb-659a-4cc3-8451-fa52087ee665" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee_c21d278b-8cd2-4d9e-ae18-0984bb8d479a" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_4fa32ebb-659a-4cc3-8451-fa52087ee665" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_c66d6b8d-5b45-405f-9fa4-ef61c4e07388" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableRecordedInvestmentPastDue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee_c21d278b-8cd2-4d9e-ae18-0984bb8d479a" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_c66d6b8d-5b45-405f-9fa4-ef61c4e07388" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesAllowanceforCreditLossDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesAllowanceforCreditLossDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesAllowanceforCreditLossDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/OtherAssets" xlink:type="simple" xlink:href="afrm-20201231.xsd#OtherAssets"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/OtherAssets" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/OtherAssetsTables" xlink:type="simple" xlink:href="afrm-20201231.xsd#OtherAssetsTables"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/OtherAssetsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/OtherAssetsDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#OtherAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/OtherAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_0affaa0b-f0d9-4ef4-b3f4-0926aec28e7f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EscrowDeposit_2de8badf-ba9f-40e0-b2fd-c57b7ced2dd7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EscrowDeposit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_0affaa0b-f0d9-4ef4-b3f4-0926aec28e7f" xlink:to="loc_us-gaap_EscrowDeposit_2de8badf-ba9f-40e0-b2fd-c57b7ced2dd7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAssetNet_2fe84429-aea4-478e-a296-334194cf7e27" xlink:href="afrm-20201231.xsd#afrm_CommercialAgreementAssetNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_0affaa0b-f0d9-4ef4-b3f4-0926aec28e7f" xlink:to="loc_afrm_CommercialAgreementAssetNet_2fe84429-aea4-478e-a296-334194cf7e27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_d058f41f-7dbc-421e-b93d-cb20586a076d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PrepaidExpenseCurrentAndNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_0affaa0b-f0d9-4ef4-b3f4-0926aec28e7f" xlink:to="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_d058f41f-7dbc-421e-b93d-cb20586a076d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CashDepositsProcessingReserves_579bc1dc-338b-40b1-9fdb-2617f891ce2d" xlink:href="afrm-20201231.xsd#afrm_CashDepositsProcessingReserves"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_0affaa0b-f0d9-4ef4-b3f4-0926aec28e7f" xlink:to="loc_afrm_CashDepositsProcessingReserves_579bc1dc-338b-40b1-9fdb-2617f891ce2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivables_f4b583eb-fc28-4a62-92e5-34aa8cdbde6a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherReceivables"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_0affaa0b-f0d9-4ef4-b3f4-0926aec28e7f" xlink:to="loc_us-gaap_OtherReceivables_f4b583eb-fc28-4a62-92e5-34aa8cdbde6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneous_85d62777-99db-445e-ac1f-12091a2c37c9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_0affaa0b-f0d9-4ef4-b3f4-0926aec28e7f" xlink:to="loc_us-gaap_OtherAssetsMiscellaneous_85d62777-99db-445e-ac1f-12091a2c37c9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/OtherAssetsAdditionalInformationDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#OtherAssetsAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/OtherAssetsAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/CommitmentandContingencies" xlink:type="simple" xlink:href="afrm-20201231.xsd#CommitmentandContingencies"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CommitmentandContingencies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/CommitmentandContingenciesTables" xlink:type="simple" xlink:href="afrm-20201231.xsd#CommitmentandContingenciesTables"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CommitmentandContingenciesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/CommitmentandContingenciesAdditionalInformationDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#CommitmentandContingenciesAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CommitmentandContingenciesAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/CommitmentandContingenciesFutureMinimumLeaseCommitmentsUnderOperatingLeasesDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#CommitmentandContingenciesFutureMinimumLeaseCommitmentsUnderOperatingLeasesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CommitmentandContingenciesFutureMinimumLeaseCommitmentsUnderOperatingLeasesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_44f21216-33f1-495e-9b74-c35bbac32db8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear_a5f85146-da53-4371-b369-54221b43e8a4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_44f21216-33f1-495e-9b74-c35bbac32db8" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear_a5f85146-da53-4371-b369-54221b43e8a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_ae869a41-eb13-46b6-b0f6-2433430fcab1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_44f21216-33f1-495e-9b74-c35bbac32db8" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_ae869a41-eb13-46b6-b0f6-2433430fcab1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_06a70d81-571a-4c65-bdc8-e9a16b922a1f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_44f21216-33f1-495e-9b74-c35bbac32db8" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_06a70d81-571a-4c65-bdc8-e9a16b922a1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_0e710c46-695c-4e4c-920b-ce248fb706d5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_44f21216-33f1-495e-9b74-c35bbac32db8" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_0e710c46-695c-4e4c-920b-ce248fb706d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_cf2d5293-96b7-495b-9f78-880ee75ddffc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_44f21216-33f1-495e-9b74-c35bbac32db8" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_cf2d5293-96b7-495b-9f78-880ee75ddffc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_f8754fe6-ce9a-45b0-9cad-41bf7b7c17b0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_44f21216-33f1-495e-9b74-c35bbac32db8" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_f8754fe6-ce9a-45b0-9cad-41bf7b7c17b0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/TransactionswithRelatedParties" xlink:type="simple" xlink:href="afrm-20201231.xsd#TransactionswithRelatedParties"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/TransactionswithRelatedParties" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/TransactionswithRelatedPartiesDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#TransactionswithRelatedPartiesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/TransactionswithRelatedPartiesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FundingDebt" xlink:type="simple" xlink:href="afrm-20201231.xsd#FundingDebt"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FundingDebt" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FundingDebtTables" xlink:type="simple" xlink:href="afrm-20201231.xsd#FundingDebtTables"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FundingDebtTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FundingDebtAggregateFutureMaturitiesofFundingDebtDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#FundingDebtAggregateFutureMaturitiesofFundingDebtDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FundingDebtAggregateFutureMaturitiesofFundingDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_d07d1784-3a0a-4302-bc0f-fd406335e2f4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_51a92002-632d-437b-a815-81ee2882dd7b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_d07d1784-3a0a-4302-bc0f-fd406335e2f4" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_51a92002-632d-437b-a815-81ee2882dd7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_c821604c-34a4-4c89-b8e5-f1b6ccb866be" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_d07d1784-3a0a-4302-bc0f-fd406335e2f4" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_c821604c-34a4-4c89-b8e5-f1b6ccb866be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_2b2407a1-172e-4b3c-9f11-008955f6724f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_fb02bed1-85bd-4848-a78a-75c3ca3e39f8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_2b2407a1-172e-4b3c-9f11-008955f6724f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_fb02bed1-85bd-4848-a78a-75c3ca3e39f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_e1e71702-1faa-429d-9f9d-f52bcaa7cb5c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_2b2407a1-172e-4b3c-9f11-008955f6724f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_e1e71702-1faa-429d-9f9d-f52bcaa7cb5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_8a87406b-9306-40b9-947c-697e4efaf50c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_2b2407a1-172e-4b3c-9f11-008955f6724f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_8a87406b-9306-40b9-947c-697e4efaf50c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_558dbd78-d305-462d-b5ef-f567639b6459" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_2b2407a1-172e-4b3c-9f11-008955f6724f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_558dbd78-d305-462d-b5ef-f567639b6459" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_142c7a3f-6487-4a1d-91e9-95929b6a608e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_2b2407a1-172e-4b3c-9f11-008955f6724f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_142c7a3f-6487-4a1d-91e9-95929b6a608e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_d0cd6b28-6644-4c47-94f7-45384c2b1e7a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_2b2407a1-172e-4b3c-9f11-008955f6724f" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_d0cd6b28-6644-4c47-94f7-45384c2b1e7a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FundingDebtAdditionalInformationDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#FundingDebtAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FundingDebtAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/NotesIssuedbySecuritizationTrusts" xlink:type="simple" xlink:href="afrm-20201231.xsd#NotesIssuedbySecuritizationTrusts"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/NotesIssuedbySecuritizationTrusts" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/NotesIssuedbySecuritizationTrustsDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#NotesIssuedbySecuritizationTrustsDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/NotesIssuedbySecuritizationTrustsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/ConvertibleDebt" xlink:type="simple" xlink:href="afrm-20201231.xsd#ConvertibleDebt"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/ConvertibleDebt" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/ConvertibleDebtDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#ConvertibleDebtDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/ConvertibleDebtDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/VariableInterestEntities" xlink:type="simple" xlink:href="afrm-20201231.xsd#VariableInterestEntities"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/VariableInterestEntities" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilities" xlink:type="simple" xlink:href="afrm-20201231.xsd#FairValueofFinancialAssetsandLiabilities"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilities" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesTables" xlink:type="simple" xlink:href="afrm-20201231.xsd#FairValueofFinancialAssetsandLiabilitiesTables"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails" xlink:type="simple" xlink:href="afrm-20201231.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_LiabilitiesFairValueDisclosure_61065d49-413d-490f-9ac0-ec690fb6b80b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingLiabilityAtFairValueAmount_b5906b4b-3120-4497-a343-f8a58670a533" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_61065d49-413d-490f-9ac0-ec690fb6b80b" xlink:to="loc_us-gaap_ServicingLiabilityAtFairValueAmount_b5906b4b-3120-4497-a343-f8a58670a533" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PerformanceFeeLiabilityFairValueDisclosure_0777d4fb-c96c-4c68-9abf-5eb4bd73680d" xlink:href="afrm-20201231.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_61065d49-413d-490f-9ac0-ec690fb6b80b" xlink:to="loc_afrm_PerformanceFeeLiabilityFairValueDisclosure_0777d4fb-c96c-4c68-9abf-5eb4bd73680d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_99d939b3-ab4b-4874-b7d0-b9aeb142e781" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_61065d49-413d-490f-9ac0-ec690fb6b80b" xlink:to="loc_us-gaap_DerivativeLiabilities_99d939b3-ab4b-4874-b7d0-b9aeb142e781" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualTrustCertificatesFairValueDisclosure_49e19bc8-0c91-4bd6-82db-0cf76cafe8b5" xlink:href="afrm-20201231.xsd#afrm_ResidualTrustCertificatesFairValueDisclosure"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_61065d49-413d-490f-9ac0-ec690fb6b80b" xlink:to="loc_afrm_ResidualTrustCertificatesFairValueDisclosure_49e19bc8-0c91-4bd6-82db-0cf76cafe8b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_faaf2b57-9d68-4ebd-b820-f42a61e747d7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAsset_0a61ab64-ed53-40ca-a1c4-ac898936c920" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ServicingAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_faaf2b57-9d68-4ebd-b820-f42a61e747d7" xlink:to="loc_us-gaap_ServicingAsset_0a61ab64-ed53-40ca-a1c4-ac898936c920" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails_1" xlink:type="simple" xlink:href="afrm-20201231.xsd#FairValueofFinancialAssetsandLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails_1"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_b20c4c2a-a707-4759-82ad-91a326779ce0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmbeddedDerivativeFairValueOfEmbeddedDerivativeLiability_42d33497-7e41-42d4-baef-4e1bf5af3267" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmbeddedDerivativeFairValueOfEmbeddedDerivativeLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_b20c4c2a-a707-4759-82ad-91a326779ce0" xlink:to="loc_us-gaap_EmbeddedDerivativeFairValueOfEmbeddedDerivativeLiability_42d33497-7e41-42d4-baef-4e1bf5af3267" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingLiabilityAtFairValueAmount_2bec288b-23fc-44ca-a36a-56e833654a5f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ServicingLiabilityAtFairValueAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_b20c4c2a-a707-4759-82ad-91a326779ce0" xlink:to="loc_us-gaap_ServicingLiabilityAtFairValueAmount_2bec288b-23fc-44ca-a36a-56e833654a5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PerformanceFeeLiabilityFairValueDisclosure_a39678fb-8422-4102-ad93-7a985a9b2ebf" xlink:href="afrm-20201231.xsd#afrm_PerformanceFeeLiabilityFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_b20c4c2a-a707-4759-82ad-91a326779ce0" xlink:to="loc_afrm_PerformanceFeeLiabilityFairValueDisclosure_a39678fb-8422-4102-ad93-7a985a9b2ebf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_e0170faa-8780-4ad6-b584-7c169ac568b2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_b20c4c2a-a707-4759-82ad-91a326779ce0" xlink:to="loc_us-gaap_DerivativeLiabilities_e0170faa-8780-4ad6-b584-7c169ac568b2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesAdditionalInformationDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#FairValueofFinancialAssetsandLiabilitiesAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFairValueOfServicingAssetsDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#FairValueofFinancialAssetsandLiabilitiesFairValueOfServicingAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFairValueOfServicingAssetsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFairValueOfServicingLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#FairValueofFinancialAssetsandLiabilitiesFairValueOfServicingLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFairValueOfServicingLiabilitiesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesQuantitativeInformationAboutSignificantUnobservableInputsForServicingAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#FairValueofFinancialAssetsandLiabilitiesQuantitativeInformationAboutSignificantUnobservableInputsForServicingAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesQuantitativeInformationAboutSignificantUnobservableInputsForServicingAssetsandLiabilitiesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesSummaryOfAdverseChangesInEstimatesForServicingAssetsandLiabilitiesInputsDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#FairValueofFinancialAssetsandLiabilitiesSummaryOfAdverseChangesInEstimatesForServicingAssetsandLiabilitiesInputsDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesSummaryOfAdverseChangesInEstimatesForServicingAssetsandLiabilitiesInputsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFairValueOfPerformanceFeeLiabilityDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#FairValueofFinancialAssetsandLiabilitiesFairValueOfPerformanceFeeLiabilityDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFairValueOfPerformanceFeeLiabilityDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesQuantitativeInformationAboutSignificantUnobservableInputsForPerformanceFeeLiabilityDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#FairValueofFinancialAssetsandLiabilitiesQuantitativeInformationAboutSignificantUnobservableInputsForPerformanceFeeLiabilityDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesQuantitativeInformationAboutSignificantUnobservableInputsForPerformanceFeeLiabilityDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesSummaryOfAdverseChangesInEstimatesForPerformanceFeeLiabilityInputsDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#FairValueofFinancialAssetsandLiabilitiesSummaryOfAdverseChangesInEstimatesForPerformanceFeeLiabilityInputsDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesSummaryOfAdverseChangesInEstimatesForPerformanceFeeLiabilityInputsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFairValueOfResidualTrustCertificatesDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#FairValueofFinancialAssetsandLiabilitiesFairValueOfResidualTrustCertificatesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFairValueOfResidualTrustCertificatesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesQuantitativeInformationAboutSignificantUnobservableInputsForResidualTrustCertificatesDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#FairValueofFinancialAssetsandLiabilitiesQuantitativeInformationAboutSignificantUnobservableInputsForResidualTrustCertificatesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesQuantitativeInformationAboutSignificantUnobservableInputsForResidualTrustCertificatesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesSummaryOfAdverseChangesInEstimatesForResidualTrustCertificatesInputsDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#FairValueofFinancialAssetsandLiabilitiesSummaryOfAdverseChangesInEstimatesForResidualTrustCertificatesInputsDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesSummaryOfAdverseChangesInEstimatesForResidualTrustCertificatesInputsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFinancialAssetsandLiabilitiesNotRecordedatFairValueDetails" xlink:type="simple" xlink:href="afrm-20201231.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_AssetsFairValueDisclosure_4c8ceafa-cfee-46cf-919d-54ad3e51f58a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableHeldForSaleFairValueDisclosure_a37bfe15-7ea4-4443-b8b1-5ca7bd94cb9b" xlink:href="afrm-20201231.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_4c8ceafa-cfee-46cf-919d-54ad3e51f58a" xlink:to="loc_afrm_FinancingReceivableHeldForSaleFairValueDisclosure_a37bfe15-7ea4-4443-b8b1-5ca7bd94cb9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableFairValueDisclosure_21bacbfe-ff29-4111-88c9-21581cacd16e" xlink:href="afrm-20201231.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_4c8ceafa-cfee-46cf-919d-54ad3e51f58a" xlink:to="loc_afrm_FinancingReceivableFairValueDisclosure_21bacbfe-ff29-4111-88c9-21581cacd16e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsFairValueDisclosure_d893863d-e233-44a1-8c23-80bbf88f2446" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_4c8ceafa-cfee-46cf-919d-54ad3e51f58a" xlink:to="loc_us-gaap_OtherAssetsFairValueDisclosure_d893863d-e233-44a1-8c23-80bbf88f2446" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RestrictedCashFairValueDisclosure_4081234b-ced5-4be6-979a-f063293fa8ff" xlink:href="afrm-20201231.xsd#afrm_RestrictedCashFairValueDisclosure"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_4c8ceafa-cfee-46cf-919d-54ad3e51f58a" xlink:to="loc_afrm_RestrictedCashFairValueDisclosure_4081234b-ced5-4be6-979a-f063293fa8ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableFairValueDisclosure_46e62c92-74e4-4fb9-bdf7-805821cabff5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsReceivableFairValueDisclosure"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_4c8ceafa-cfee-46cf-919d-54ad3e51f58a" xlink:to="loc_us-gaap_AccountsReceivableFairValueDisclosure_46e62c92-74e4-4fb9-bdf7-805821cabff5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_41769918-aac3-48f9-a1c5-7abdb421ee04" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_4c8ceafa-cfee-46cf-919d-54ad3e51f58a" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_41769918-aac3-48f9-a1c5-7abdb421ee04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_d6253e81-21e1-4db0-aec8-c23f8e33228a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LinesOfCreditFairValueDisclosure_d935b734-c705-4ea1-be68-42dcf1c440a1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LinesOfCreditFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_d6253e81-21e1-4db0-aec8-c23f8e33228a" xlink:to="loc_us-gaap_LinesOfCreditFairValueDisclosure_d935b734-c705-4ea1-be68-42dcf1c440a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccruedLiabilitiesAndOtherLiabilitiesFairValueDisclosure_9d6320cd-590f-4258-bd89-5151fc016055" xlink:href="afrm-20201231.xsd#afrm_AccruedLiabilitiesAndOtherLiabilitiesFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_d6253e81-21e1-4db0-aec8-c23f8e33228a" xlink:to="loc_afrm_AccruedLiabilitiesAndOtherLiabilitiesFairValueDisclosure_9d6320cd-590f-4258-bd89-5151fc016055" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableFairValueDisclosure_b30b2209-782f-4711-ae52-d809d53733a3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsPayableFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_d6253e81-21e1-4db0-aec8-c23f8e33228a" xlink:to="loc_us-gaap_AccountsPayableFairValueDisclosure_b30b2209-782f-4711-ae52-d809d53733a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtFairValueDisclosures_ecad92e1-2a4f-4d85-a0c7-6ae55d98f31b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConvertibleDebtFairValueDisclosures"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_d6253e81-21e1-4db0-aec8-c23f8e33228a" xlink:to="loc_us-gaap_ConvertibleDebtFairValueDisclosures_ecad92e1-2a4f-4d85-a0c7-6ae55d98f31b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansPayableFairValueDisclosure_9f89b8ee-7d41-4bae-9161-53443ec8ac0d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansPayableFairValueDisclosure"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_d6253e81-21e1-4db0-aec8-c23f8e33228a" xlink:to="loc_us-gaap_LoansPayableFairValueDisclosure_9f89b8ee-7d41-4bae-9161-53443ec8ac0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_InterestPayableFairValueDisclosure_1208f02e-a704-4e6a-9998-9264499b5b77" xlink:href="afrm-20201231.xsd#afrm_InterestPayableFairValueDisclosure"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_d6253e81-21e1-4db0-aec8-c23f8e33228a" xlink:to="loc_afrm_InterestPayableFairValueDisclosure_1208f02e-a704-4e6a-9998-9264499b5b77" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFinancialAssetsandLiabilitiesNotRecordedatFairValueDetails_1" xlink:type="simple" xlink:href="afrm-20201231.xsd#FairValueofFinancialAssetsandLiabilitiesFinancialAssetsandLiabilitiesNotRecordedatFairValueDetails_1"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFinancialAssetsandLiabilitiesNotRecordedatFairValueDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_42b448d8-50c9-492f-bbb0-19a8c45c08d8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansPayableFairValueDisclosure_f5cf5e8a-41d6-4579-8d6c-7ce2ce61f980" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansPayableFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_42b448d8-50c9-492f-bbb0-19a8c45c08d8" xlink:to="loc_us-gaap_LoansPayableFairValueDisclosure_f5cf5e8a-41d6-4579-8d6c-7ce2ce61f980" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesPayableFairValueDisclosure_9b4c0752-3d29-4935-8618-41c9ca073e06" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_42b448d8-50c9-492f-bbb0-19a8c45c08d8" xlink:to="loc_us-gaap_NotesPayableFairValueDisclosure_9b4c0752-3d29-4935-8618-41c9ca073e06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableFairValueDisclosure_3fe7db66-d810-4eed-9041-d4bde9ed12d4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsPayableFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_42b448d8-50c9-492f-bbb0-19a8c45c08d8" xlink:to="loc_us-gaap_AccountsPayableFairValueDisclosure_3fe7db66-d810-4eed-9041-d4bde9ed12d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccruedLiabilitiesAndOtherLiabilitiesFairValueDisclosure_95eb7f0b-fee5-4ede-baae-5a61a30e96ce" xlink:href="afrm-20201231.xsd#afrm_AccruedLiabilitiesAndOtherLiabilitiesFairValueDisclosure"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_42b448d8-50c9-492f-bbb0-19a8c45c08d8" xlink:to="loc_afrm_AccruedLiabilitiesAndOtherLiabilitiesFairValueDisclosure_95eb7f0b-fee5-4ede-baae-5a61a30e96ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_InterestPayableFairValueDisclosure_0c2b452e-7a75-43cf-bd42-7fb7b8b07fb3" xlink:href="afrm-20201231.xsd#afrm_InterestPayableFairValueDisclosure"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_42b448d8-50c9-492f-bbb0-19a8c45c08d8" xlink:to="loc_afrm_InterestPayableFairValueDisclosure_0c2b452e-7a75-43cf-bd42-7fb7b8b07fb3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LinesOfCreditFairValueDisclosure_323a70af-9ed1-4c29-b54a-32e8de2ba469" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LinesOfCreditFairValueDisclosure"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_42b448d8-50c9-492f-bbb0-19a8c45c08d8" xlink:to="loc_us-gaap_LinesOfCreditFairValueDisclosure_323a70af-9ed1-4c29-b54a-32e8de2ba469" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/RedeemableConvertiblePreferredStockandStockholdersDeficit" xlink:type="simple" xlink:href="afrm-20201231.xsd#RedeemableConvertiblePreferredStockandStockholdersDeficit"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/RedeemableConvertiblePreferredStockandStockholdersDeficit" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/RedeemableConvertiblePreferredStockandStockholdersDeficitTables" xlink:type="simple" xlink:href="afrm-20201231.xsd#RedeemableConvertiblePreferredStockandStockholdersDeficitTables"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/RedeemableConvertiblePreferredStockandStockholdersDeficitTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/RedeemableConvertiblePreferredStockandStockholdersDeficitScheduleofRedeemableConvertiblePreferredStockDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#RedeemableConvertiblePreferredStockandStockholdersDeficitScheduleofRedeemableConvertiblePreferredStockDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/RedeemableConvertiblePreferredStockandStockholdersDeficitScheduleofRedeemableConvertiblePreferredStockDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/RedeemableConvertiblePreferredStockandStockholdersDeficitAdditionalInformationDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#RedeemableConvertiblePreferredStockandStockholdersDeficitAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/RedeemableConvertiblePreferredStockandStockholdersDeficitAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/RedeemableConvertiblePreferredStockandStockholdersDeficitCommonStockReservedforIssuanceDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#RedeemableConvertiblePreferredStockandStockholdersDeficitCommonStockReservedforIssuanceDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/RedeemableConvertiblePreferredStockandStockholdersDeficitCommonStockReservedforIssuanceDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/RedeemableConvertiblePreferredStockandStockholdersDeficitWarrantActivityDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#RedeemableConvertiblePreferredStockandStockholdersDeficitWarrantActivityDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/RedeemableConvertiblePreferredStockandStockholdersDeficitWarrantActivityDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/StockBasedCompensation" xlink:type="simple" xlink:href="afrm-20201231.xsd#StockBasedCompensation"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/StockBasedCompensation" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/StockBasedCompensationTables" xlink:type="simple" xlink:href="afrm-20201231.xsd#StockBasedCompensationTables"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/StockBasedCompensationTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/StockBasedCompensationAdditionalInformationDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#StockBasedCompensationAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/StockBasedCompensationAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/StockBasedCompensationStockOptionActivityDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#StockBasedCompensationStockOptionActivityDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/StockBasedCompensationStockOptionActivityDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/StockBasedCompensationRSUActivityDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#StockBasedCompensationRSUActivityDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/StockBasedCompensationRSUActivityDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/StockBasedCompensationComponentsandClassificationofStockbasedCompensationDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#StockBasedCompensationComponentsandClassificationofStockbasedCompensationDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/StockBasedCompensationComponentsandClassificationofStockbasedCompensationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_437a8f0c-425a-4b35-ade3-d3fa4a05f323" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_499c8ee0-68aa-4b23-a6b2-aed851d451d4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_437a8f0c-425a-4b35-ade3-d3fa4a05f323" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_499c8ee0-68aa-4b23-a6b2-aed851d451d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_57776399-3221-4b6f-8f97-388e559b286f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_437a8f0c-425a-4b35-ade3-d3fa4a05f323" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_57776399-3221-4b6f-8f97-388e559b286f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/IncomeTaxes" xlink:type="simple" xlink:href="afrm-20201231.xsd#IncomeTaxes"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/IncomeTaxes" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/IncomeTaxesDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#IncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/IncomeTaxesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/NetLossperShareAttributabletoCommonStockholders" xlink:type="simple" xlink:href="afrm-20201231.xsd#NetLossperShareAttributabletoCommonStockholders"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/NetLossperShareAttributabletoCommonStockholders" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/NetLossperShareAttributabletoCommonStockholdersTables" xlink:type="simple" xlink:href="afrm-20201231.xsd#NetLossperShareAttributabletoCommonStockholdersTables"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/NetLossperShareAttributabletoCommonStockholdersTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/NetLossperShareAttributabletoCommonStockholdersBasicandDilutedNetLossPerShareDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#NetLossperShareAttributabletoCommonStockholdersBasicandDilutedNetLossPerShareDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/NetLossperShareAttributabletoCommonStockholdersBasicandDilutedNetLossPerShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_75a77e4c-e2b0-4cce-93ef-5f58718e5097" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities_0a293e2a-ca62-4c2e-bea1-432f5f172921" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_75a77e4c-e2b0-4cce-93ef-5f58718e5097" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities_0a293e2a-ca62-4c2e-bea1-432f5f172921" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_0dff35c8-7a71-41bf-b070-d152c9d5c537" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_75a77e4c-e2b0-4cce-93ef-5f58718e5097" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_0dff35c8-7a71-41bf-b070-d152c9d5c537" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_0056d7d2-2b67-459e-ae52-a9912f2429ea" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_1a4ef735-38df-4c63-a41d-57d72dffbf32" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_NetIncomeLossAvailableToCommonStockholdersDiluted_0056d7d2-2b67-459e-ae52-a9912f2429ea" xlink:to="loc_us-gaap_NetIncomeLoss_1a4ef735-38df-4c63-a41d-57d72dffbf32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_e232568c-c3f5-43d6-8194-25d5c9e8f902" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockDividendsAndOtherAdjustments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_0056d7d2-2b67-459e-ae52-a9912f2429ea" xlink:to="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_e232568c-c3f5-43d6-8194-25d5c9e8f902" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DilutiveSecuritiesEffectOnBasicEarningsPerShareOther_6121a2ef-4cb6-4e52-a57c-0f52028c0443" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DilutiveSecuritiesEffectOnBasicEarningsPerShareOther"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_0056d7d2-2b67-459e-ae52-a9912f2429ea" xlink:to="loc_us-gaap_DilutiveSecuritiesEffectOnBasicEarningsPerShareOther_6121a2ef-4cb6-4e52-a57c-0f52028c0443" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestOnConvertibleDebtNetOfTax_5cb7e775-e88c-41a6-806e-e5663893cae6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestOnConvertibleDebtNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_0056d7d2-2b67-459e-ae52-a9912f2429ea" xlink:to="loc_us-gaap_InterestOnConvertibleDebtNetOfTax_5cb7e775-e88c-41a6-806e-e5663893cae6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfDebtDiscountPremiumOnConvertibleDebtNetOfTax_4e21c724-9456-4267-969d-2657e03e6eed" xlink:href="afrm-20201231.xsd#afrm_AmortizationOfDebtDiscountPremiumOnConvertibleDebtNetOfTax"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_0056d7d2-2b67-459e-ae52-a9912f2429ea" xlink:to="loc_afrm_AmortizationOfDebtDiscountPremiumOnConvertibleDebtNetOfTax_4e21c724-9456-4267-969d-2657e03e6eed" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/NetLossperShareAttributabletoCommonStockholdersCommonStockEquivalentsExcludedfromCalculationofDilutedNetLossPerShareDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#NetLossperShareAttributabletoCommonStockholdersCommonStockEquivalentsExcludedfromCalculationofDilutedNetLossPerShareDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/NetLossperShareAttributabletoCommonStockholdersCommonStockEquivalentsExcludedfromCalculationofDilutedNetLossPerShareDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/SegmentsandGeographicalInformation" xlink:type="simple" xlink:href="afrm-20201231.xsd#SegmentsandGeographicalInformation"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/SegmentsandGeographicalInformation" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/SegmentsandGeographicalInformationTables" xlink:type="simple" xlink:href="afrm-20201231.xsd#SegmentsandGeographicalInformationTables"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/SegmentsandGeographicalInformationTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/SegmentsandGeographicalInformationAdditionalInformationDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#SegmentsandGeographicalInformationAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/SegmentsandGeographicalInformationAdditionalInformationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/SegmentsandGeographicalInformationRevenuebyGeographicAreaDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#SegmentsandGeographicalInformationRevenuebyGeographicAreaDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/SegmentsandGeographicalInformationRevenuebyGeographicAreaDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/SubsequentEvents" xlink:type="simple" xlink:href="afrm-20201231.xsd#SubsequentEvents"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/SubsequentEvents" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.affirm.com/role/SubsequentEventsDetails" xlink:type="simple" xlink:href="afrm-20201231.xsd#SubsequentEventsDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/SubsequentEventsDetails" xlink:type="extended"/>
</link:linkbase>
