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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:a5751c80-1def-4de4-89af-68f0aeee2d50,g:2d49fb4c-ea18-4a78-9d5d-5a5fa3777e3e-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="afrm-20210930.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_8874ddd3-e7fb-4f74-8033-35f5c499b277" 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_a93209da-178b-42eb-a7fa-a1ada8f7935f" 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_8874ddd3-e7fb-4f74-8033-35f5c499b277" xlink:to="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_a93209da-178b-42eb-a7fa-a1ada8f7935f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ThirdPartyLoanOwnerPayable_d002704f-c857-4998-b949-968518333b14" xlink:href="afrm-20210930.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_8874ddd3-e7fb-4f74-8033-35f5c499b277" xlink:to="loc_afrm_ThirdPartyLoanOwnerPayable_d002704f-c857-4998-b949-968518333b14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_b4de0c8f-c6ec-4f54-b0d5-92eda98364c1" 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_8874ddd3-e7fb-4f74-8033-35f5c499b277" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_b4de0c8f-c6ec-4f54-b0d5-92eda98364c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_1a0235fe-2298-45cb-ba26-f72629260eec" 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_8874ddd3-e7fb-4f74-8033-35f5c499b277" xlink:to="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_1a0235fe-2298-45cb-ba26-f72629260eec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebt_e449ce2f-019c-48ad-8f59-7efdea0d1a45" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecuredDebt"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_8874ddd3-e7fb-4f74-8033-35f5c499b277" xlink:to="loc_us-gaap_SecuredDebt_e449ce2f-019c-48ad-8f59-7efdea0d1a45" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_401ddefc-6db8-4e66-b3af-7e476dcaf327" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCredit"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_8874ddd3-e7fb-4f74-8033-35f5c499b277" xlink:to="loc_us-gaap_LineOfCredit_401ddefc-6db8-4e66-b3af-7e476dcaf327" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_3d105683-e50b-49f1-bfee-13eb8667472a" 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_8166b415-0266-4cfa-aa5c-bf7db1f24362" 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_3d105683-e50b-49f1-bfee-13eb8667472a" xlink:to="loc_us-gaap_CommonStockValue_8166b415-0266-4cfa-aa5c-bf7db1f24362" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_e0490510-3b83-48e7-8d67-7661bc5999c5" 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_3d105683-e50b-49f1-bfee-13eb8667472a" xlink:to="loc_us-gaap_AdditionalPaidInCapital_e0490510-3b83-48e7-8d67-7661bc5999c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_5cdfaca2-cb45-4824-ab31-6cad93c89ef1" 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_3d105683-e50b-49f1-bfee-13eb8667472a" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_5cdfaca2-cb45-4824-ab31-6cad93c89ef1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_a28b52c7-c053-4817-adc0-1990dfd4e3b9" 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_3d105683-e50b-49f1-bfee-13eb8667472a" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_a28b52c7-c053-4817-adc0-1990dfd4e3b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_988bfb8e-ceb3-4684-a9a0-ea78cb18ef68" 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_92a28214-b8ff-44e2-93ca-7f8367a4630e" 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_988bfb8e-ceb3-4684-a9a0-ea78cb18ef68" xlink:to="loc_us-gaap_Liabilities_92a28214-b8ff-44e2-93ca-7f8367a4630e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_490b01b6-13fc-4814-be79-9b519409b4d1" 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_988bfb8e-ceb3-4684-a9a0-ea78cb18ef68" xlink:to="loc_us-gaap_CommitmentsAndContingencies_490b01b6-13fc-4814-be79-9b519409b4d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_f5cfdd79-3b4a-451c-a581-9446792da493" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_988bfb8e-ceb3-4684-a9a0-ea78cb18ef68" xlink:to="loc_us-gaap_StockholdersEquity_f5cfdd79-3b4a-451c-a581-9446792da493" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_5e2ca62e-baa7-455e-b0ba-5e2a77bc0048" 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_NotesReceivableGross_c202f1bb-f1f4-4a4a-8931-155a6a49292e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesReceivableGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableNet_5e2ca62e-baa7-455e-b0ba-5e2a77bc0048" xlink:to="loc_us-gaap_NotesReceivableGross_c202f1bb-f1f4-4a4a-8931-155a6a49292e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_f144c051-35ca-4da9-a528-a2dbc093a3d6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableNet_5e2ca62e-baa7-455e-b0ba-5e2a77bc0048" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_f144c051-35ca-4da9-a528-a2dbc093a3d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_0ea3d468-8696-4ed1-8b1e-2aefd24229c6" 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_da359c92-37a2-4b40-816f-5a4ed3b89dc5" 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_0ea3d468-8696-4ed1-8b1e-2aefd24229c6" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_da359c92-37a2-4b40-816f-5a4ed3b89dc5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_1b5b38c7-108e-486d-be25-992c3c5a88d2" 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_0ea3d468-8696-4ed1-8b1e-2aefd24229c6" xlink:to="loc_us-gaap_RestrictedCash_1b5b38c7-108e-486d-be25-992c3c5a88d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInvestments_80686ade-892e-4807-88a9-573a40818b80" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_0ea3d468-8696-4ed1-8b1e-2aefd24229c6" xlink:to="loc_us-gaap_OtherInvestments_80686ade-892e-4807-88a9-573a40818b80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableHeldForSaleAmount_0ed02d45-5bbf-45ac-bb39-f3448ce6f5b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansReceivableHeldForSaleAmount"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_0ea3d468-8696-4ed1-8b1e-2aefd24229c6" xlink:to="loc_us-gaap_LoansReceivableHeldForSaleAmount_0ed02d45-5bbf-45ac-bb39-f3448ce6f5b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_d7990755-30d8-44a6-b34a-dd7a4067c16d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesReceivableNet"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_0ea3d468-8696-4ed1-8b1e-2aefd24229c6" xlink:to="loc_us-gaap_NotesReceivableNet_d7990755-30d8-44a6-b34a-dd7a4067c16d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNet_b25abba1-1c27-4dc4-81f7-9d11e195c5b9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsReceivableNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_0ea3d468-8696-4ed1-8b1e-2aefd24229c6" xlink:to="loc_us-gaap_AccountsReceivableNet_b25abba1-1c27-4dc4-81f7-9d11e195c5b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_a36c3660-bce3-418a-b541-265a52887dbd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_0ea3d468-8696-4ed1-8b1e-2aefd24229c6" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_a36c3660-bce3-418a-b541-265a52887dbd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_3ed844c6-ab63-4581-a8c3-dd847a0f334b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_0ea3d468-8696-4ed1-8b1e-2aefd24229c6" xlink:to="loc_us-gaap_Goodwill_3ed844c6-ab63-4581-a8c3-dd847a0f334b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_2ee0a1cc-b0a8-4ecd-857a-0c522fa7b6d1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_0ea3d468-8696-4ed1-8b1e-2aefd24229c6" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_2ee0a1cc-b0a8-4ecd-857a-0c522fa7b6d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAssetNet_65158595-a4a4-4d80-a59d-2dc66caf59f6" xlink:href="afrm-20210930.xsd#afrm_CommercialAgreementAssetNet"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_0ea3d468-8696-4ed1-8b1e-2aefd24229c6" xlink:to="loc_afrm_CommercialAgreementAssetNet_65158595-a4a4-4d80-a59d-2dc66caf59f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_7d347616-c20f-4510-99ad-1259ac250c4b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_0ea3d468-8696-4ed1-8b1e-2aefd24229c6" xlink:to="loc_us-gaap_OtherAssets_7d347616-c20f-4510-99ad-1259ac250c4b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="afrm-20210930.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsNet_011c5e91-5c9d-4109-a9e5-e2fff62c3b3e" 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_Assets_e7415310-1bc4-402f-9dd0-b929c4b131eb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsNet_011c5e91-5c9d-4109-a9e5-e2fff62c3b3e" xlink:to="loc_us-gaap_Assets_e7415310-1bc4-402f-9dd0-b929c4b131eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_504fda4e-870d-4901-bb41-61c3bccb275e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsNet_011c5e91-5c9d-4109-a9e5-e2fff62c3b3e" xlink:to="loc_us-gaap_Liabilities_504fda4e-870d-4901-bb41-61c3bccb275e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="afrm-20210930.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_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_4b9fb9c2-aa65-4790-9944-cad0158a51a4" 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_28e6d1fc-f4ff-4688-b4b4-4e3c3dbf8498" 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_4b9fb9c2-aa65-4790-9944-cad0158a51a4" xlink:to="loc_us-gaap_OperatingIncomeLoss_28e6d1fc-f4ff-4688-b4b4-4e3c3dbf8498" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_8e18c32c-9c92-4275-ab8b-c2f3e684ac79" 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_4b9fb9c2-aa65-4790-9944-cad0158a51a4" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_8e18c32c-9c92-4275-ab8b-c2f3e684ac79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_d3a93bf4-776b-4f85-abb9-296db4ece138" 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_NetIncomeLoss_0c86fa75-94e0-4d1a-a38b-48ecd98fe71f" 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_ComprehensiveIncomeNetOfTax_d3a93bf4-776b-4f85-abb9-296db4ece138" xlink:to="loc_us-gaap_NetIncomeLoss_0c86fa75-94e0-4d1a-a38b-48ecd98fe71f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_2e00244a-4fee-4c8b-9057-344dbe115ab2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_d3a93bf4-776b-4f85-abb9-296db4ece138" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_2e00244a-4fee-4c8b-9057-344dbe115ab2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_889a47ab-f54c-4f95-b1c5-4ab093828229" 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_22ea7d8b-0626-478c-be21-24470b3180b8" 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_889a47ab-f54c-4f95-b1c5-4ab093828229" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_22ea7d8b-0626-478c-be21-24470b3180b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_f18aca2a-547d-410e-bc8e-51113513f127" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_889a47ab-f54c-4f95-b1c5-4ab093828229" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_f18aca2a-547d-410e-bc8e-51113513f127" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_f35d2bcc-006f-4821-837e-6b25e91ed570" 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_a00bc66e-e9c8-4e2c-abbc-3bcf351fd2d8" xlink:href="afrm-20210930.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_f35d2bcc-006f-4821-837e-6b25e91ed570" xlink:to="loc_afrm_LossOnFinancingReceivableCommitmentsToPurchase_a00bc66e-e9c8-4e2c-abbc-3bcf351fd2d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_9b24fb19-1715-48bb-b387-f183ec1745bb" 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_f35d2bcc-006f-4821-837e-6b25e91ed570" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_9b24fb19-1715-48bb-b387-f183ec1745bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_d9852a20-5dee-44d7-bf18-52cd025611b4" 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_f35d2bcc-006f-4821-837e-6b25e91ed570" xlink:to="loc_us-gaap_InterestExpenseDebt_d9852a20-5dee-44d7-bf18-52cd025611b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ProcessingAndServicingExpense_91c11640-7a99-444b-b46e-2d3965f7c4d4" xlink:href="afrm-20210930.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_f35d2bcc-006f-4821-837e-6b25e91ed570" xlink:to="loc_afrm_ProcessingAndServicingExpense_91c11640-7a99-444b-b46e-2d3965f7c4d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_TechnologyAndDataAnalyticsExpense_4feebd7d-d50e-4c2d-af1b-5d484ab55ea8" xlink:href="afrm-20210930.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_f35d2bcc-006f-4821-837e-6b25e91ed570" xlink:to="loc_afrm_TechnologyAndDataAnalyticsExpense_4feebd7d-d50e-4c2d-af1b-5d484ab55ea8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_45e92a9b-41c9-4214-ae89-c0cae4f868ad" 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_f35d2bcc-006f-4821-837e-6b25e91ed570" xlink:to="loc_us-gaap_SellingAndMarketingExpense_45e92a9b-41c9-4214-ae89-c0cae4f868ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_3f753890-55e6-414b-94c2-0945ebf648f0" 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_f35d2bcc-006f-4821-837e-6b25e91ed570" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_3f753890-55e6-414b-94c2-0945ebf648f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_5a961960-0103-4f6a-94cb-b2fbbcbe5325" 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_2fd27f07-a404-4e21-b9ee-ed39450ae643" 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_5a961960-0103-4f6a-94cb-b2fbbcbe5325" xlink:to="loc_us-gaap_Revenues_2fd27f07-a404-4e21-b9ee-ed39450ae643" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_884ffc62-251c-486f-a714-ba407da552d7" 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_5a961960-0103-4f6a-94cb-b2fbbcbe5325" xlink:to="loc_us-gaap_CostsAndExpenses_884ffc62-251c-486f-a714-ba407da552d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_f5b937ff-7332-4513-94e9-ec827f36b667" 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_RevenueFromContractWithCustomerExcludingAssessedTax_ca676dc2-68a3-467e-9ab1-642d8d0dec60" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_f5b937ff-7332-4513-94e9-ec827f36b667" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_ca676dc2-68a3-467e-9ab1-642d8d0dec60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_75dcaa63-af0e-4913-8a29-c7f3a519b173" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_f5b937ff-7332-4513-94e9-ec827f36b667" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_75dcaa63-af0e-4913-8a29-c7f3a519b173" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_17e867ab-d6a6-47e8-8778-832812b61593" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainLossOnSalesOfLoansNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_f5b937ff-7332-4513-94e9-ec827f36b667" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_17e867ab-d6a6-47e8-8778-832812b61593" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_1b7d3ed5-1c25-4572-9d01-bfcdf258df05" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_f5b937ff-7332-4513-94e9-ec827f36b667" xlink:to="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_1b7d3ed5-1c25-4572-9d01-bfcdf258df05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_43b25513-d0bc-40aa-8391-11abfb397048" 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_9e3a2035-d57c-49fb-848a-264ca0a98daa" 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_43b25513-d0bc-40aa-8391-11abfb397048" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_9e3a2035-d57c-49fb-848a-264ca0a98daa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_8af4b8cb-308d-4290-8ce9-decf9b365504" 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_43b25513-d0bc-40aa-8391-11abfb397048" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_8af4b8cb-308d-4290-8ce9-decf9b365504" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="afrm-20210930.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_351417a6-4683-4f77-bbf9-d03ace3acec2" 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_879a0a1b-9ab1-44fe-99a8-64c96eb6c72a" 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_351417a6-4683-4f77-bbf9-d03ace3acec2" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_879a0a1b-9ab1-44fe-99a8-64c96eb6c72a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f7a3d547-d651-46b1-b737-d3b1790ceb44" 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_351417a6-4683-4f77-bbf9-d03ace3acec2" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f7a3d547-d651-46b1-b737-d3b1790ceb44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a68830e5-4f6a-4025-9d5d-bc1079927203" 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_351417a6-4683-4f77-bbf9-d03ace3acec2" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a68830e5-4f6a-4025-9d5d-bc1079927203" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_4395cd85-d503-4cd5-a561-041d95ef1ddb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_351417a6-4683-4f77-bbf9-d03ace3acec2" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_4395cd85-d503-4cd5-a561-041d95ef1ddb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bc0cc0c4-3974-4974-9a30-c129499ec916" 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_88b1457d-ae16-4be9-9ba7-dc530168ce6e" 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_bc0cc0c4-3974-4974-9a30-c129499ec916" xlink:to="loc_us-gaap_PaymentsToAcquireFinanceReceivables_88b1457d-ae16-4be9-9ba7-dc530168ce6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfFinanceReceivables_531729b7-6ee8-43ab-b164-db98fd9f938b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfFinanceReceivables"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bc0cc0c4-3974-4974-9a30-c129499ec916" xlink:to="loc_us-gaap_ProceedsFromSaleOfFinanceReceivables_531729b7-6ee8-43ab-b164-db98fd9f938b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromCollectionOfFinanceReceivables_6e0e7c15-4960-4048-b240-f5ae6fb158f6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromCollectionOfFinanceReceivables"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bc0cc0c4-3974-4974-9a30-c129499ec916" xlink:to="loc_us-gaap_ProceedsFromCollectionOfFinanceReceivables_6e0e7c15-4960-4048-b240-f5ae6fb158f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_0d3f79d6-2c54-4d97-a477-2da5a42d256d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bc0cc0c4-3974-4974-9a30-c129499ec916" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_0d3f79d6-2c54-4d97-a477-2da5a42d256d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_5aa10613-1715-4561-9f1c-7b005b3e3670" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bc0cc0c4-3974-4974-9a30-c129499ec916" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_5aa10613-1715-4561-9f1c-7b005b3e3670" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_181b2cff-f2b1-4cee-8648-bce7a65e9289" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bc0cc0c4-3974-4974-9a30-c129499ec916" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_181b2cff-f2b1-4cee-8648-bce7a65e9289" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_3cadb19b-38e7-4de6-8670-5c847290e0f4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bc0cc0c4-3974-4974-9a30-c129499ec916" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_3cadb19b-38e7-4de6-8670-5c847290e0f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ProceedsFromOtherInvestingActivities_25816a2f-254f-4be2-814f-694658bce6b9" xlink:href="afrm-20210930.xsd#afrm_ProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bc0cc0c4-3974-4974-9a30-c129499ec916" xlink:to="loc_afrm_ProceedsFromOtherInvestingActivities_25816a2f-254f-4be2-814f-694658bce6b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PaymentsForOtherInvestingActivities_68915c12-9746-4702-94ce-79927fe7443d" xlink:href="afrm-20210930.xsd#afrm_PaymentsForOtherInvestingActivities"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bc0cc0c4-3974-4974-9a30-c129499ec916" xlink:to="loc_afrm_PaymentsForOtherInvestingActivities_68915c12-9746-4702-94ce-79927fe7443d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_03ba2272-a221-4892-ae21-288c62659f4b" 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_42140b54-d8b7-4288-9e40-2f819ceb3346" 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_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_us-gaap_NetIncomeLoss_42140b54-d8b7-4288-9e40-2f819ceb3346" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_158a5412-ddbf-486c-9352-2c95b14bf200" 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_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_158a5412-ddbf-486c-9352-2c95b14bf200" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables_e4f8b5ef-6e71-4b35-98fd-d26918e8b02c" xlink:href="afrm-20210930.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_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_afrm_AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables_e4f8b5ef-6e71-4b35-98fd-d26918e8b02c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_a8d91b4a-f147-45d7-ba1f-9150ed5885c8" 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_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_a8d91b4a-f147-45d7-ba1f-9150ed5885c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_GainLossOnServicingAssetsAndLiabilities_ace04bcf-b384-4c4a-bd54-e713ea83c344" xlink:href="afrm-20210930.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_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_afrm_GainLossOnServicingAssetsAndLiabilities_ace04bcf-b384-4c4a-bd54-e713ea83c344" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfCommercialAgreementAssets_4afa518f-0977-491a-8f1e-82bf90af34f4" xlink:href="afrm-20210930.xsd#afrm_AmortizationOfCommercialAgreementAssets"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_afrm_AmortizationOfCommercialAgreementAssets_4afa518f-0977-491a-8f1e-82bf90af34f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_c5b44a38-2bd4-40b6-a92b-db54c3940bd9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_c5b44a38-2bd4-40b6-a92b-db54c3940bd9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_e8ebc601-e021-4807-a889-4dffab1cf941" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_us-gaap_ShareBasedCompensation_e8ebc601-e021-4807-a889-4dffab1cf941" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_fd4423e5-cb1e-4d18-ab56-4109516d7582" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_fd4423e5-cb1e-4d18-ab56-4109516d7582" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_05ae9db2-ad2e-4319-bfa1-1f4588cc806b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_05ae9db2-ad2e-4319-bfa1-1f4588cc806b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToPurchaseLoansHeldForSale_70bef452-44e8-4db6-bb15-17b988912724" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToPurchaseLoansHeldForSale"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_us-gaap_PaymentsToPurchaseLoansHeldForSale_70bef452-44e8-4db6-bb15-17b988912724" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_d4b41f3d-0f51-4c95-8c76-7041b57613da" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfLoansHeldForSale"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_d4b41f3d-0f51-4c95-8c76-7041b57613da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_90c1b96f-7ffb-4a89-814b-05267190c279" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_90c1b96f-7ffb-4a89-814b-05267190c279" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_1eea820d-2949-40d1-a235-877225c8b824" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_1eea820d-2949-40d1-a235-877225c8b824" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_ee13a94d-8064-4059-a3dc-8b7ece38e3cf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_ee13a94d-8064-4059-a3dc-8b7ece38e3cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable_7c6bef07-30d3-48fb-b922-bcbe1ff084f4" xlink:href="afrm-20210930.xsd#afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable_7c6bef07-30d3-48fb-b922-bcbe1ff084f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_6e852e11-0313-4a21-8560-01c50dde5284" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_6e852e11-0313-4a21-8560-01c50dde5284" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_eaadf68f-7d38-4080-9ca2-7f604e6d1b1a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities"/>
    <link:calculationArc order="18" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_03ba2272-a221-4892-ae21-288c62659f4b" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_eaadf68f-7d38-4080-9ca2-7f604e6d1b1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_24338ce2-bfbf-4ab3-858f-2898fa9dd602" 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_118693fa-daba-4d9b-a28d-1c0f9a8ace99" 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_24338ce2-bfbf-4ab3-858f-2898fa9dd602" xlink:to="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_118693fa-daba-4d9b-a28d-1c0f9a8ace99" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_0a8e1a07-1dea-4443-a164-6d620f09d1f1" 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_24338ce2-bfbf-4ab3-858f-2898fa9dd602" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_0a8e1a07-1dea-4443-a164-6d620f09d1f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_c7a5708c-bdc3-4a86-829e-58f6111703b8" 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_24338ce2-bfbf-4ab3-858f-2898fa9dd602" xlink:to="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_c7a5708c-bdc3-4a86-829e-58f6111703b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSecuredDebt_f9218d59-79d6-408c-a240-fd879af926ae" 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_24338ce2-bfbf-4ab3-858f-2898fa9dd602" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSecuredDebt_f9218d59-79d6-408c-a240-fd879af926ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfSecuredDebt_d9e516ff-53bf-4189-aa3e-d3289076aa94" 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_24338ce2-bfbf-4ab3-858f-2898fa9dd602" xlink:to="loc_us-gaap_RepaymentsOfSecuredDebt_d9e516ff-53bf-4189-aa3e-d3289076aa94" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromConvertibleDebt_5b2dc20a-ab73-4cc5-a759-30b0df7d937c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromConvertibleDebt"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_24338ce2-bfbf-4ab3-858f-2898fa9dd602" xlink:to="loc_us-gaap_ProceedsFromConvertibleDebt_5b2dc20a-ab73-4cc5-a759-30b0df7d937c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ProceedsFromStockOptionsAndWarrantsExercised_22d55ea8-375b-46a9-95fa-3e87c04aaf5f" xlink:href="afrm-20210930.xsd#afrm_ProceedsFromStockOptionsAndWarrantsExercised"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_24338ce2-bfbf-4ab3-858f-2898fa9dd602" xlink:to="loc_afrm_ProceedsFromStockOptionsAndWarrantsExercised_22d55ea8-375b-46a9-95fa-3e87c04aaf5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_1b4957a9-0c95-4022-b7ca-58c5ab0bdd5d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_24338ce2-bfbf-4ab3-858f-2898fa9dd602" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_1b4957a9-0c95-4022-b7ca-58c5ab0bdd5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_656263be-e0bb-4e3e-b7ea-ad97695965dc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_24338ce2-bfbf-4ab3-858f-2898fa9dd602" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_656263be-e0bb-4e3e-b7ea-ad97695965dc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/InterestIncomeScheduleofInterestIncomeDetails" xlink:type="simple" xlink:href="afrm-20210930.xsd#InterestIncomeScheduleofInterestIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/InterestIncomeScheduleofInterestIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_7c0fa2ae-c4bb-408a-b604-7df6e9e46dde" 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_us-gaap_InterestAndFeeIncomeLoansAndLeases_dc16e499-9d7e-4da6-8d28-1ad5c927ee2e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_7c0fa2ae-c4bb-408a-b604-7df6e9e46dde" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_dc16e499-9d7e-4da6-8d28-1ad5c927ee2e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccretionOfDiscountsFinancingReceivables_f1b6f0f8-968e-4b86-aefa-89faa5416e1f" xlink:href="afrm-20210930.xsd#afrm_AccretionOfDiscountsFinancingReceivables"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_7c0fa2ae-c4bb-408a-b604-7df6e9e46dde" xlink:to="loc_afrm_AccretionOfDiscountsFinancingReceivables_f1b6f0f8-968e-4b86-aefa-89faa5416e1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfPremiumsFinancingReceivables_904ff740-4d32-40ea-a14d-c60c95714480" xlink:href="afrm-20210930.xsd#afrm_AmortizationOfPremiumsFinancingReceivables"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_7c0fa2ae-c4bb-408a-b604-7df6e9e46dde" xlink:to="loc_afrm_AmortizationOfPremiumsFinancingReceivables_904ff740-4d32-40ea-a14d-c60c95714480" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_a33a74b0-bb84-4c54-80f2-6c6ff2a64af4" 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_7c0fa2ae-c4bb-408a-b604-7df6e9e46dde" xlink:to="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_a33a74b0-bb84-4c54-80f2-6c6ff2a64af4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails" xlink:type="simple" xlink:href="afrm-20210930.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_bafae2ed-77d1-47ae-93f0-c98c1b945f2a" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOff_b0f5fffd-5e6d-49fe-93c0-a00a4f52c0ec" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_bafae2ed-77d1-47ae-93f0-c98c1b945f2a" xlink:to="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOff_b0f5fffd-5e6d-49fe-93c0-a00a4f52c0ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_be0316b1-974c-4c02-aac2-4921f35fb0d9" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_bafae2ed-77d1-47ae-93f0-c98c1b945f2a" xlink:to="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_be0316b1-974c-4c02-aac2-4921f35fb0d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_a09a63bb-4a19-457c-b85a-6de8a8b84ce7" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOff_9fe621df-de5a-46a9-b36e-03f532ddc021" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_a09a63bb-4a19-457c-b85a-6de8a8b84ce7" xlink:to="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOff_9fe621df-de5a-46a9-b36e-03f532ddc021" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearRecoveries_630ab79d-03d7-494e-a956-b294e5ff95cf" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_a09a63bb-4a19-457c-b85a-6de8a8b84ce7" xlink:to="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearRecoveries_630ab79d-03d7-494e-a956-b294e5ff95cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_b506633c-d2b5-43d3-9d83-340449339b9c" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOff_f730aac2-48b0-4e67-8ede-1a397b7d9d40" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_b506633c-d2b5-43d3-9d83-340449339b9c" xlink:to="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOff_f730aac2-48b0-4e67-8ede-1a397b7d9d40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_1ff1bda8-181e-406b-ab6b-7499c7821b3e" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_b506633c-d2b5-43d3-9d83-340449339b9c" xlink:to="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_1ff1bda8-181e-406b-ab6b-7499c7821b3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableWriteOff_d79f3df6-644d-48ef-a005-ae8ca16bba7f" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableWriteOff"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOff_deb5ecd8-5afb-4650-a60e-c57a796da023" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableWriteOff_d79f3df6-644d-48ef-a005-ae8ca16bba7f" xlink:to="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOff_deb5ecd8-5afb-4650-a60e-c57a796da023" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOff_a827a6d4-4e73-4705-9a0b-5ddc3c42c0c7" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableWriteOff_d79f3df6-644d-48ef-a005-ae8ca16bba7f" xlink:to="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOff_a827a6d4-4e73-4705-9a0b-5ddc3c42c0c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOff_62bb919d-54b5-4eae-963b-77073b405029" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableWriteOff_d79f3df6-644d-48ef-a005-ae8ca16bba7f" xlink:to="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOff_62bb919d-54b5-4eae-963b-77073b405029" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOff_d686be06-d0e7-478f-be2c-c843a5ecaa09" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableWriteOff_d79f3df6-644d-48ef-a005-ae8ca16bba7f" xlink:to="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOff_d686be06-d0e7-478f-be2c-c843a5ecaa09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOff_dccfc92e-c4b2-436b-8273-ee02554f0153" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableWriteOff_d79f3df6-644d-48ef-a005-ae8ca16bba7f" xlink:to="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOff_dccfc92e-c4b2-436b-8273-ee02554f0153" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOff_3a55d607-3431-420b-9f71-a6bc2c0ee060" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableWriteOff_d79f3df6-644d-48ef-a005-ae8ca16bba7f" xlink:to="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOff_3a55d607-3431-420b-9f71-a6bc2c0ee060" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_a1d74ddc-e962-401d-99ec-d2d02f38782a" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOff_f1585d19-7b84-405e-8656-03ef64caffe4" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_a1d74ddc-e962-401d-99ec-d2d02f38782a" xlink:to="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOff_f1585d19-7b84-405e-8656-03ef64caffe4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_d3c3fc48-d55a-4ab3-8703-be187238f8ba" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_a1d74ddc-e962-401d-99ec-d2d02f38782a" xlink:to="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_d3c3fc48-d55a-4ab3-8703-be187238f8ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_d4eb7034-3a69-43cf-b226-4272447f394c" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivablesWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_f9f1042c-49a2-4a26-8aac-1d9a67e6fecb" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_d4eb7034-3a69-43cf-b226-4272447f394c" xlink:to="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_f9f1042c-49a2-4a26-8aac-1d9a67e6fecb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_37acf2cb-eaab-4c29-ba1e-bc99815d898b" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_d4eb7034-3a69-43cf-b226-4272447f394c" xlink:to="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_37acf2cb-eaab-4c29-ba1e-bc99815d898b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_2b103bb5-6fdb-4ddd-bffe-1960255fcfba" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_d4eb7034-3a69-43cf-b226-4272447f394c" xlink:to="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_2b103bb5-6fdb-4ddd-bffe-1960255fcfba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_c6284db6-2c73-4447-87ec-194c78b0449c" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_d4eb7034-3a69-43cf-b226-4272447f394c" xlink:to="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_c6284db6-2c73-4447-87ec-194c78b0449c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_d4622b46-8c58-414a-8bb5-503c77ca29f5" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_d4eb7034-3a69-43cf-b226-4272447f394c" xlink:to="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_d4622b46-8c58-414a-8bb5-503c77ca29f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_c20f3090-e6c7-454d-bc65-c41cb9f5b227" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_d4eb7034-3a69-43cf-b226-4272447f394c" xlink:to="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_c20f3090-e6c7-454d-bc65-c41cb9f5b227" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableRecoveries_7317bbea-b6e2-473e-82d8-49605096326d" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableRecoveries"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearRecoveries_0758c7ee-3a55-49a0-ac44-77a783a907e4" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableRecoveries_7317bbea-b6e2-473e-82d8-49605096326d" xlink:to="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearRecoveries_0758c7ee-3a55-49a0-ac44-77a783a907e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_a02251bb-100f-4c30-ae07-86c6c4670d05" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableRecoveries_7317bbea-b6e2-473e-82d8-49605096326d" xlink:to="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_a02251bb-100f-4c30-ae07-86c6c4670d05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_188cdcec-bdb4-4f1b-8b89-49762505eacd" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableRecoveries_7317bbea-b6e2-473e-82d8-49605096326d" xlink:to="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_188cdcec-bdb4-4f1b-8b89-49762505eacd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_9b9325a9-b5a8-41ee-ad11-535a6572ff46" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableRecoveries_7317bbea-b6e2-473e-82d8-49605096326d" xlink:to="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_9b9325a9-b5a8-41ee-ad11-535a6572ff46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_3afade51-dc52-4f27-988d-6d59380ba9ce" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableRecoveries_7317bbea-b6e2-473e-82d8-49605096326d" xlink:to="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_3afade51-dc52-4f27-988d-6d59380ba9ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_d790c619-1ef4-4d88-b01e-5b8b171717a7" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableRecoveries_7317bbea-b6e2-473e-82d8-49605096326d" xlink:to="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_d790c619-1ef4-4d88-b01e-5b8b171717a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_ed172e24-1196-42b1-9a46-729a51c20355" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedInCurrentFiscalYear_2f826306-d3eb-4733-b05f-550ed884cb37" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableOriginatedInCurrentFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_ed172e24-1196-42b1-9a46-729a51c20355" xlink:to="loc_us-gaap_FinancingReceivableOriginatedInCurrentFiscalYear_2f826306-d3eb-4733-b05f-550ed884cb37" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear_42f1557d-7df7-4f3a-9e24-ce4e49ba1de6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_ed172e24-1196-42b1-9a46-729a51c20355" xlink:to="loc_us-gaap_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear_42f1557d-7df7-4f3a-9e24-ce4e49ba1de6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear_510dfbd1-c392-4cd9-875b-714ce15ed35d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_ed172e24-1196-42b1-9a46-729a51c20355" xlink:to="loc_us-gaap_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear_510dfbd1-c392-4cd9-875b-714ce15ed35d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear_21bc9acc-1f8b-4f44-893b-7681977f3718" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_ed172e24-1196-42b1-9a46-729a51c20355" xlink:to="loc_us-gaap_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear_21bc9acc-1f8b-4f44-893b-7681977f3718" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear_7673b4ba-d1b1-4587-9832-b10286b6df48" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_ed172e24-1196-42b1-9a46-729a51c20355" xlink:to="loc_us-gaap_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear_7673b4ba-d1b1-4587-9832-b10286b6df48" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear_4cd28758-4271-4905-bec3-85d489df40e7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_ed172e24-1196-42b1-9a46-729a51c20355" xlink:to="loc_us-gaap_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear_4cd28758-4271-4905-bec3-85d489df40e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_9a1b803c-5e49-40c8-a707-7472c9cf4438" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOff_b5f30129-44d3-4f42-85ca-28ef41992702" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_9a1b803c-5e49-40c8-a707-7472c9cf4438" xlink:to="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOff_b5f30129-44d3-4f42-85ca-28ef41992702" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_90b876a7-d775-4d19-afc6-d2947fb19d9d" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_9a1b803c-5e49-40c8-a707-7472c9cf4438" xlink:to="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_90b876a7-d775-4d19-afc6-d2947fb19d9d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_8591998c-6a90-4141-9ceb-b02fe85323d0" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOff_f6ea22f3-0842-4ae0-b228-02d816455420" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_8591998c-6a90-4141-9ceb-b02fe85323d0" xlink:to="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOff_f6ea22f3-0842-4ae0-b228-02d816455420" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_b42b4896-74ed-4f8c-a1cc-2223414e2ece" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_8591998c-6a90-4141-9ceb-b02fe85323d0" xlink:to="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_b42b4896-74ed-4f8c-a1cc-2223414e2ece" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails_1" xlink:type="simple" xlink:href="afrm-20210930.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails_1"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_77073676-7684-4173-95a9-48a295bced6a" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivablesWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableWriteOff_83e7810e-c6a8-460c-8790-4adb9205be96" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableWriteOff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_77073676-7684-4173-95a9-48a295bced6a" xlink:to="loc_afrm_FinancingReceivableWriteOff_83e7810e-c6a8-460c-8790-4adb9205be96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableRecoveries_ed28fd9b-6253-464d-9826-dc4ddeb1db13" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableRecoveries"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_77073676-7684-4173-95a9-48a295bced6a" xlink:to="loc_afrm_FinancingReceivableRecoveries_ed28fd9b-6253-464d-9826-dc4ddeb1db13" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesUnpaidPrincipalBalanceforLoansHeldforInvestmentDetails" xlink:type="simple" xlink:href="afrm-20210930.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesUnpaidPrincipalBalanceforLoansHeldforInvestmentDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesUnpaidPrincipalBalanceforLoansHeldforInvestmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_694b8ef2-1ef0-4727-966b-834d0b3861e7" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_c32ace00-9a2c-4150-afad-a7a2dace4337" 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_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_694b8ef2-1ef0-4727-966b-834d0b3861e7" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentCurrent_c32ace00-9a2c-4150-afad-a7a2dace4337" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_13647aef-6b0a-471f-b6de-a47493d71000" 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_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_694b8ef2-1ef0-4727-966b-834d0b3861e7" xlink:to="loc_us-gaap_FinancingReceivableRecordedInvestmentPastDue_13647aef-6b0a-471f-b6de-a47493d71000" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BusinessCombinationFairValueofConsiderationTransferredDetails" xlink:type="simple" xlink:href="afrm-20210930.xsd#BusinessCombinationFairValueofConsiderationTransferredDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BusinessCombinationFairValueofConsiderationTransferredDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_53eddab6-6cac-4f9f-afa8-36bcfb29cc99" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_aac8b983-4808-4477-81ed-eb64b0bcab9d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferred1_53eddab6-6cac-4f9f-afa8-36bcfb29cc99" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_aac8b983-4808-4477-81ed-eb64b0bcab9d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_4c86c560-61f1-4a9a-b583-3cdf65daa5af" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferred1_53eddab6-6cac-4f9f-afa8-36bcfb29cc99" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_4c86c560-61f1-4a9a-b583-3cdf65daa5af" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BusinessCombinationAllocationofConsiderationPaidtoFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails" xlink:type="simple" xlink:href="afrm-20210930.xsd#BusinessCombinationAllocationofConsiderationPaidtoFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BusinessCombinationAllocationofConsiderationPaidtoFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_aac9fd9a-eb1a-4a42-856e-3754ffd068ce" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_0c6286a4-2629-49d6-b471-7445725c7c95" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_aac9fd9a-eb1a-4a42-856e-3754ffd068ce" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_0c6286a4-2629-49d6-b471-7445725c7c95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_e1c59ba8-e80d-4258-b277-e8cfc25c7378" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_aac9fd9a-eb1a-4a42-856e-3754ffd068ce" xlink:to="loc_us-gaap_Goodwill_e1c59ba8-e80d-4258-b277-e8cfc25c7378" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_fcda93ec-f6d8-4ed3-b197-c167576a5f8a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_ebb3d732-a6be-49bd-b69b-2b139c5b2032" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_fcda93ec-f6d8-4ed3-b197-c167576a5f8a" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_ebb3d732-a6be-49bd-b69b-2b139c5b2032" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsIntangibleAssetsDetails" xlink:type="simple" xlink:href="afrm-20210930.xsd#BalanceSheetComponentsIntangibleAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_9436fee8-7a94-4c98-ad73-cfc293477a0d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_342d745d-6b7d-4edb-8d9a-b58a745ebb5c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_9436fee8-7a94-4c98-ad73-cfc293477a0d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_342d745d-6b7d-4edb-8d9a-b58a745ebb5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_e29c0faf-1115-42e1-8df0-3b7f63d5db5b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_9436fee8-7a94-4c98-ad73-cfc293477a0d" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_e29c0faf-1115-42e1-8df0-3b7f63d5db5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_c07dfb4e-b302-452f-a945-b6a85a59be73" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_d3edf4b6-2e5f-48ea-9bd6-47764e75125d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_c07dfb4e-b302-452f-a945-b6a85a59be73" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_d3edf4b6-2e5f-48ea-9bd6-47764e75125d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_1a1d26b6-77a1-4ef3-9aab-090bc8d199ed" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_c07dfb4e-b302-452f-a945-b6a85a59be73" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_1a1d26b6-77a1-4ef3-9aab-090bc8d199ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_567f9eb7-8aa8-436c-908c-b2b7cf31e326" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_76548041-b405-404e-b0fc-449a4252e869" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_567f9eb7-8aa8-436c-908c-b2b7cf31e326" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_76548041-b405-404e-b0fc-449a4252e869" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_bc30bd43-9985-4e5f-bf36-947c24f42d7b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_567f9eb7-8aa8-436c-908c-b2b7cf31e326" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_bc30bd43-9985-4e5f-bf36-947c24f42d7b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsIntangibleAssetsDetails_1" xlink:type="simple" xlink:href="afrm-20210930.xsd#BalanceSheetComponentsIntangibleAssetsDetails_1"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsIntangibleAssetsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_4703a962-969f-46d1-b40d-e72372bb1745" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_cd304c2e-b947-4a5c-a213-ee7af4171804" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_4703a962-969f-46d1-b40d-e72372bb1745" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_cd304c2e-b947-4a5c-a213-ee7af4171804" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_d71b4600-3b05-4d67-aa90-ed42794b67e2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_4703a962-969f-46d1-b40d-e72372bb1745" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_d71b4600-3b05-4d67-aa90-ed42794b67e2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsExpectedFutureAmortizationExpenseDetails" xlink:type="simple" xlink:href="afrm-20210930.xsd#BalanceSheetComponentsExpectedFutureAmortizationExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsExpectedFutureAmortizationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_c33d4b0c-cad1-45ab-a7ca-65b196ebf8ca" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_ef5dc9a3-41f8-4e8b-8376-a6ebc7215d66" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_c33d4b0c-cad1-45ab-a7ca-65b196ebf8ca" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_ef5dc9a3-41f8-4e8b-8376-a6ebc7215d66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_7fd667f8-7621-4587-9858-20edd91809de" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_c33d4b0c-cad1-45ab-a7ca-65b196ebf8ca" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_7fd667f8-7621-4587-9858-20edd91809de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_edb571d1-16d3-403b-ac9c-0af6178f635a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_c33d4b0c-cad1-45ab-a7ca-65b196ebf8ca" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_edb571d1-16d3-403b-ac9c-0af6178f635a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_ac30930f-4fa7-4d2f-8a10-bfbdb0f5c6ac" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_c33d4b0c-cad1-45ab-a7ca-65b196ebf8ca" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_ac30930f-4fa7-4d2f-8a10-bfbdb0f5c6ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearThree_1765d45e-8bb7-4f40-931a-641df6f1ff8d" xlink:href="afrm-20210930.xsd#afrm_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearThree"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_c33d4b0c-cad1-45ab-a7ca-65b196ebf8ca" xlink:to="loc_afrm_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearThree_1765d45e-8bb7-4f40-931a-641df6f1ff8d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsOtherAssetsDetails" xlink:type="simple" xlink:href="afrm-20210930.xsd#BalanceSheetComponentsOtherAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsOtherAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_c2ce425b-f55d-42d1-95d3-cb465c6f71e4" 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_OperatingLeaseRightOfUseAsset_b205281d-bb1a-4818-be1b-f6cad2cb3877" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_c2ce425b-f55d-42d1-95d3-cb465c6f71e4" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_b205281d-bb1a-4818-be1b-f6cad2cb3877" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidTaxes_04c667c2-7c25-42cf-9914-f71fd4633afb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PrepaidTaxes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_c2ce425b-f55d-42d1-95d3-cb465c6f71e4" xlink:to="loc_us-gaap_PrepaidTaxes_04c667c2-7c25-42cf-9914-f71fd4633afb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_309bf3bb-c18e-457b-9a24-89f761b2771e" 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_c2ce425b-f55d-42d1-95d3-cb465c6f71e4" xlink:to="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_309bf3bb-c18e-457b-9a24-89f761b2771e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecurities_0f83011a-704b-4ee0-94c8-7fefbd7773c8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HeldToMaturitySecurities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_c2ce425b-f55d-42d1-95d3-cb465c6f71e4" xlink:to="loc_us-gaap_HeldToMaturitySecurities_0f83011a-704b-4ee0-94c8-7fefbd7773c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CashDepositsProcessingReserves_74e0cb9b-8176-44bd-b64b-1380eab9a266" xlink:href="afrm-20210930.xsd#afrm_CashDepositsProcessingReserves"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_c2ce425b-f55d-42d1-95d3-cb465c6f71e4" xlink:to="loc_afrm_CashDepositsProcessingReserves_74e0cb9b-8176-44bd-b64b-1380eab9a266" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivables_c943bf20-390f-4f17-9261-0487664cf5b1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherReceivables"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_c2ce425b-f55d-42d1-95d3-cb465c6f71e4" xlink:to="loc_us-gaap_OtherReceivables_c943bf20-390f-4f17-9261-0487664cf5b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneous_f53b08c7-b868-48fe-9d30-f3df7d564f7b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetsMiscellaneous"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_c2ce425b-f55d-42d1-95d3-cb465c6f71e4" xlink:to="loc_us-gaap_OtherAssetsMiscellaneous_f53b08c7-b868-48fe-9d30-f3df7d564f7b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsAccruedExpensesandOtherLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20210930.xsd#BalanceSheetComponentsAccruedExpensesandOtherLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsAccruedExpensesandOtherLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_987b891d-2f97-424b-9c31-8bb089c9fcf9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedLiabilitiesAndOtherLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_c309397e-5bc0-4cfd-a813-841756d6a83d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_987b891d-2f97-424b-9c31-8bb089c9fcf9" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_c309397e-5bc0-4cfd-a813-841756d6a83d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_0a2d86b3-5dcd-429c-82f2-12b3a95227cc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_987b891d-2f97-424b-9c31-8bb089c9fcf9" xlink:to="loc_us-gaap_OperatingLeaseLiability_0a2d86b3-5dcd-429c-82f2-12b3a95227cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_a7ab80ca-51e2-47c6-9d31-a3b5f5012cd7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedLiabilitiesCurrentAndNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_987b891d-2f97-424b-9c31-8bb089c9fcf9" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_a7ab80ca-51e2-47c6-9d31-a3b5f5012cd7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementLiability_0b138b44-0c58-4a39-a0ab-95dcf8ff44df" xlink:href="afrm-20210930.xsd#afrm_CommercialAgreementLiability"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_987b891d-2f97-424b-9c31-8bb089c9fcf9" xlink:to="loc_afrm_CommercialAgreementLiability_0b138b44-0c58-4a39-a0ab-95dcf8ff44df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_ceeace8f-9dcd-4907-9038-e4068ba4fc27" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_987b891d-2f97-424b-9c31-8bb089c9fcf9" xlink:to="loc_us-gaap_OtherLiabilities_ceeace8f-9dcd-4907-9038-e4068ba4fc27" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LeasesMaturitiesofLeaseLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20210930.xsd#LeasesMaturitiesofLeaseLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LeasesMaturitiesofLeaseLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_212981a7-23fb-4c9e-a461-d6facc64169b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_da9f4033-7150-4b8e-84cf-0068eddb4d3b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_212981a7-23fb-4c9e-a461-d6facc64169b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_da9f4033-7150-4b8e-84cf-0068eddb4d3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_b09285ab-3e4a-43b5-a2fa-3e2c4bb7e238" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_212981a7-23fb-4c9e-a461-d6facc64169b" xlink:to="loc_us-gaap_OperatingLeaseLiability_b09285ab-3e4a-43b5-a2fa-3e2c4bb7e238" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LeasesMaturitiesofLeaseLiabilitiesDetails_1" xlink:type="simple" xlink:href="afrm-20210930.xsd#LeasesMaturitiesofLeaseLiabilitiesDetails_1"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LeasesMaturitiesofLeaseLiabilitiesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_59e6e7b3-0da7-4b7d-aad0-5835d92fff45" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_1410e258-4bd3-47a6-b0e7-03f890ef4311" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_59e6e7b3-0da7-4b7d-aad0-5835d92fff45" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_1410e258-4bd3-47a6-b0e7-03f890ef4311" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_452c3953-5f21-48ae-b8e7-42f18b2319e9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_59e6e7b3-0da7-4b7d-aad0-5835d92fff45" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_452c3953-5f21-48ae-b8e7-42f18b2319e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_6ffba7ca-861f-4009-b135-6c4012a659c3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_59e6e7b3-0da7-4b7d-aad0-5835d92fff45" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_6ffba7ca-861f-4009-b135-6c4012a659c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_09489e7a-ef18-4774-bae1-c18c943a6a63" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_59e6e7b3-0da7-4b7d-aad0-5835d92fff45" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_09489e7a-ef18-4774-bae1-c18c943a6a63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_e02df361-bd90-4d50-ac53-2ca72ccc8dda" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_59e6e7b3-0da7-4b7d-aad0-5835d92fff45" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_e02df361-bd90-4d50-ac53-2ca72ccc8dda" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_c80ad975-aa2e-45d9-a766-7390b7bca89e" xlink:href="afrm-20210930.xsd#afrm_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_59e6e7b3-0da7-4b7d-aad0-5835d92fff45" xlink:to="loc_afrm_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_c80ad975-aa2e-45d9-a766-7390b7bca89e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DebtAggregateFutureMaturitiesofFundingDebtDetails" xlink:type="simple" xlink:href="afrm-20210930.xsd#DebtAggregateFutureMaturitiesofFundingDebtDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/DebtAggregateFutureMaturitiesofFundingDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_b3659bec-2be1-4be1-94a0-24e0ff018f0b" 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_79ce67b9-82b3-43c9-bd70-7aa2bc82127d" 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_b3659bec-2be1-4be1-94a0-24e0ff018f0b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_79ce67b9-82b3-43c9-bd70-7aa2bc82127d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_7b7ab3f2-f8d5-40e4-8152-e97a97673ce7" 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_b3659bec-2be1-4be1-94a0-24e0ff018f0b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_7b7ab3f2-f8d5-40e4-8152-e97a97673ce7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_b4ec9c11-8c6c-4bfd-9c5b-1aa82fccb0a7" 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_b3659bec-2be1-4be1-94a0-24e0ff018f0b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_b4ec9c11-8c6c-4bfd-9c5b-1aa82fccb0a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_f6058a8f-b430-4a9a-ae90-7935376a0111" 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_b3659bec-2be1-4be1-94a0-24e0ff018f0b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_f6058a8f-b430-4a9a-ae90-7935376a0111" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_c0bc8bd6-0be7-497f-b552-e2cfad3d5710" 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_b3659bec-2be1-4be1-94a0-24e0ff018f0b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_c0bc8bd6-0be7-497f-b552-e2cfad3d5710" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_100054e7-e687-45dc-90b5-3843b0befd62" 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_b3659bec-2be1-4be1-94a0-24e0ff018f0b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_100054e7-e687-45dc-90b5-3843b0befd62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_710f40ce-dedd-4eaf-b708-e5785021025f" 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_fb95f246-018c-4de4-85ca-df5e22036cee" 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_710f40ce-dedd-4eaf-b708-e5785021025f" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_fb95f246-018c-4de4-85ca-df5e22036cee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_52ce56b7-ef53-4ca2-8007-8f32e1ab7f38" 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_710f40ce-dedd-4eaf-b708-e5785021025f" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_52ce56b7-ef53-4ca2-8007-8f32e1ab7f38" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/InvestmentsAvailableforSaleSecuritieswithUnrealizedLossesDetails" xlink:type="simple" xlink:href="afrm-20210930.xsd#InvestmentsAvailableforSaleSecuritieswithUnrealizedLossesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/InvestmentsAvailableforSaleSecuritieswithUnrealizedLossesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_0a0743e0-fd23-4356-b007-44abd5a37c97" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_f9112c7e-3f6f-4290-9255-027f1c8fc887" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_0a0743e0-fd23-4356-b007-44abd5a37c97" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_f9112c7e-3f6f-4290-9255-027f1c8fc887" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_753ed10b-a1b7-459c-a5e7-caa090644b79" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_0a0743e0-fd23-4356-b007-44abd5a37c97" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_753ed10b-a1b7-459c-a5e7-caa090644b79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_db50361b-92c9-4542-a321-83cdf841b0e6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_91394cb0-a2e9-4541-8bc1-d200cad1e82a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_db50361b-92c9-4542-a321-83cdf841b0e6" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_91394cb0-a2e9-4541-8bc1-d200cad1e82a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_013efa7a-e692-4d31-b84d-17616e14a030" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_db50361b-92c9-4542-a321-83cdf841b0e6" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_013efa7a-e692-4d31-b84d-17616e14a030" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/InvestmentsLengthofContractualMaturitiesDetails" xlink:type="simple" xlink:href="afrm-20210930.xsd#InvestmentsLengthofContractualMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/InvestmentsLengthofContractualMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_9fc3f01f-7448-4e7a-b733-f4510e7cb098" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_a5277121-22c4-4e7d-8bb0-8f93d679f6ec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_9fc3f01f-7448-4e7a-b733-f4510e7cb098" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_a5277121-22c4-4e7d-8bb0-8f93d679f6ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_986e6be9-af23-4d49-9657-bbca044346ca" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_9fc3f01f-7448-4e7a-b733-f4510e7cb098" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_986e6be9-af23-4d49-9657-bbca044346ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance_6cbdc2d7-bd7d-4473-bb57-c3758c663f7d" xlink:href="afrm-20210930.xsd#afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_b64c5748-9a70-4c9f-8a52-53e0f1c6a9f4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance_6cbdc2d7-bd7d-4473-bb57-c3758c663f7d" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_b64c5748-9a70-4c9f-8a52-53e0f1c6a9f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_12efc827-cba0-43dc-943c-4ddbd651a1ef" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance_6cbdc2d7-bd7d-4473-bb57-c3758c663f7d" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_12efc827-cba0-43dc-943c-4ddbd651a1ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_427efb1b-017a-4806-a6b6-2e75986b92d4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_a1cc7701-661d-4260-b7b0-42148edd2b55" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_427efb1b-017a-4806-a6b6-2e75986b92d4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_a1cc7701-661d-4260-b7b0-42148edd2b55" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_ab603ab1-4adc-4891-91b4-33ddadc76a43" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_427efb1b-017a-4806-a6b6-2e75986b92d4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_ab603ab1-4adc-4891-91b4-33ddadc76a43" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="simple" xlink:href="afrm-20210930.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_1e4af850-59da-49f0-8df0-484faa1d61d6" 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_c665a6e5-c9e2-4cd9-a172-c286b2f598cf" 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_1e4af850-59da-49f0-8df0-484faa1d61d6" xlink:to="loc_us-gaap_ServicingLiabilityAtFairValueAmount_c665a6e5-c9e2-4cd9-a172-c286b2f598cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PerformanceFeeLiabilityFairValueDisclosure_04262b06-c60d-4ca9-ba92-270ad2eaa152" xlink:href="afrm-20210930.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_1e4af850-59da-49f0-8df0-484faa1d61d6" xlink:to="loc_afrm_PerformanceFeeLiabilityFairValueDisclosure_04262b06-c60d-4ca9-ba92-270ad2eaa152" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualTrustCertificatesFairValueDisclosure_0686f964-c940-4516-bfe6-90380427d851" xlink:href="afrm-20210930.xsd#afrm_ResidualTrustCertificatesFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_1e4af850-59da-49f0-8df0-484faa1d61d6" xlink:to="loc_afrm_ResidualTrustCertificatesFairValueDisclosure_0686f964-c940-4516-bfe6-90380427d851" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_30966016-451b-4ad3-9135-91bf03924f7f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_1e4af850-59da-49f0-8df0-484faa1d61d6" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_30966016-451b-4ad3-9135-91bf03924f7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure_bb2ca8d7-737e-444c-8d10-3d21679586d9" xlink:href="afrm-20210930.xsd#afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_1e4af850-59da-49f0-8df0-484faa1d61d6" xlink:to="loc_afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure_bb2ca8d7-737e-444c-8d10-3d21679586d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_098a8be7-4a69-462c-8e5d-db52f4a33f0a" 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_ReceivablesFairValueDisclosure_9b1891c0-dbeb-41b8-8e8f-f1e2b489f62d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReceivablesFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_098a8be7-4a69-462c-8e5d-db52f4a33f0a" xlink:to="loc_us-gaap_ReceivablesFairValueDisclosure_9b1891c0-dbeb-41b8-8e8f-f1e2b489f62d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualTrustCertificatesAssetFairValueDisclosure_1cce82d8-48f1-4ca3-9799-8e4a55a3fcdd" xlink:href="afrm-20210930.xsd#afrm_ResidualTrustCertificatesAssetFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_098a8be7-4a69-462c-8e5d-db52f4a33f0a" xlink:to="loc_afrm_ResidualTrustCertificatesAssetFairValueDisclosure_1cce82d8-48f1-4ca3-9799-8e4a55a3fcdd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAsset_6ac56fe9-a67b-41cd-a63b-d6d3b93bac28" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ServicingAsset"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_098a8be7-4a69-462c-8e5d-db52f4a33f0a" xlink:to="loc_us-gaap_ServicingAsset_6ac56fe9-a67b-41cd-a63b-d6d3b93bac28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_a104a610-aabd-4fca-88f1-7bf45e8d540e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_098a8be7-4a69-462c-8e5d-db52f4a33f0a" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_a104a610-aabd-4fca-88f1-7bf45e8d540e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_744cad83-08ea-49ac-8d3e-2d35cf88bcd4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_098a8be7-4a69-462c-8e5d-db52f4a33f0a" xlink:to="loc_us-gaap_DerivativeAssets_744cad83-08ea-49ac-8d3e-2d35cf88bcd4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFinancialAssetsandLiabilitiesNotRecordedatFairValueDetails" xlink:type="simple" xlink:href="afrm-20210930.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_c7156506-8c47-4e3d-a8c9-f85bb9c7e415" 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_CashAndCashEquivalentsFairValueDisclosure_ff83bbad-7eff-4b27-a71b-509fdace2fd8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_c7156506-8c47-4e3d-a8c9-f85bb9c7e415" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_ff83bbad-7eff-4b27-a71b-509fdace2fd8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RestrictedCashFairValueDisclosure_93e2b9e3-235d-413a-b98f-884599b98ff1" xlink:href="afrm-20210930.xsd#afrm_RestrictedCashFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_c7156506-8c47-4e3d-a8c9-f85bb9c7e415" xlink:to="loc_afrm_RestrictedCashFairValueDisclosure_93e2b9e3-235d-413a-b98f-884599b98ff1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableHeldForSaleFairValueDisclosure_e5d688e2-dbe7-4f18-83ee-9cb6326db18d" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableHeldForSaleFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_c7156506-8c47-4e3d-a8c9-f85bb9c7e415" xlink:to="loc_afrm_FinancingReceivableHeldForSaleFairValueDisclosure_e5d688e2-dbe7-4f18-83ee-9cb6326db18d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableFairValueDisclosure_ffdaa48b-57e4-414f-9bbe-298571bc0dd0" xlink:href="afrm-20210930.xsd#afrm_FinancingReceivableFairValueDisclosure"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_c7156506-8c47-4e3d-a8c9-f85bb9c7e415" xlink:to="loc_afrm_FinancingReceivableFairValueDisclosure_ffdaa48b-57e4-414f-9bbe-298571bc0dd0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableFairValueDisclosure_da2e0f9b-5b6a-4da5-b339-5de1e94a910a" 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_c7156506-8c47-4e3d-a8c9-f85bb9c7e415" xlink:to="loc_us-gaap_AccountsReceivableFairValueDisclosure_da2e0f9b-5b6a-4da5-b339-5de1e94a910a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsFairValueDisclosure_308f4b55-b1a2-41d1-a022-06098d8a971b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetsFairValueDisclosure"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_c7156506-8c47-4e3d-a8c9-f85bb9c7e415" xlink:to="loc_us-gaap_OtherAssetsFairValueDisclosure_308f4b55-b1a2-41d1-a022-06098d8a971b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_64f35d77-d9ba-4853-b25f-5116736de9f6" 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_AccountsPayableFairValueDisclosure_537b12f7-3fee-45e4-9fd6-3d16ac1740df" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsPayableFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_64f35d77-d9ba-4853-b25f-5116736de9f6" xlink:to="loc_us-gaap_AccountsPayableFairValueDisclosure_537b12f7-3fee-45e4-9fd6-3d16ac1740df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansPayableFairValueDisclosure_9d717903-03fd-4eba-abba-349ac9e54632" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LoansPayableFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_64f35d77-d9ba-4853-b25f-5116736de9f6" xlink:to="loc_us-gaap_LoansPayableFairValueDisclosure_9d717903-03fd-4eba-abba-349ac9e54632" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_InterestPayableFairValueDisclosure_db096aaf-effa-4264-b067-7348addfd17e" xlink:href="afrm-20210930.xsd#afrm_InterestPayableFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_64f35d77-d9ba-4853-b25f-5116736de9f6" xlink:to="loc_afrm_InterestPayableFairValueDisclosure_db096aaf-effa-4264-b067-7348addfd17e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccruedLiabilitiesAndOtherLiabilitiesFairValueDisclosure_a955d7c4-7277-4b08-8cf8-0375b25fe81c" xlink:href="afrm-20210930.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_64f35d77-d9ba-4853-b25f-5116736de9f6" xlink:to="loc_afrm_AccruedLiabilitiesAndOtherLiabilitiesFairValueDisclosure_a955d7c4-7277-4b08-8cf8-0375b25fe81c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesPayableFairValueDisclosure_03c4a067-7cfd-4631-8d10-c611be785d63" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesPayableFairValueDisclosure"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_64f35d77-d9ba-4853-b25f-5116736de9f6" xlink:to="loc_us-gaap_NotesPayableFairValueDisclosure_03c4a067-7cfd-4631-8d10-c611be785d63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LinesOfCreditFairValueDisclosure_28605bdd-6df8-4594-81ff-22e6099b0c62" 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_64f35d77-d9ba-4853-b25f-5116736de9f6" xlink:to="loc_us-gaap_LinesOfCreditFairValueDisclosure_28605bdd-6df8-4594-81ff-22e6099b0c62" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/EquityIncentivePlansComponentsandClassificationofStockbasedCompensationDetails" xlink:type="simple" xlink:href="afrm-20210930.xsd#EquityIncentivePlansComponentsandClassificationofStockbasedCompensationDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/EquityIncentivePlansComponentsandClassificationofStockbasedCompensationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_1da7ddff-ec70-4507-a071-111a4522aec1" 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_AllocatedShareBasedCompensationExpense_2e55bd85-6c78-4142-ab53-83df43b3804c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_1da7ddff-ec70-4507-a071-111a4522aec1" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_2e55bd85-6c78-4142-ab53-83df43b3804c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_6ef9260e-3c28-42b2-9099-80c771ab31e9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_1da7ddff-ec70-4507-a071-111a4522aec1" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_6ef9260e-3c28-42b2-9099-80c771ab31e9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/NetLossperShareAttributabletoCommonStockholdersBasicandDilutedNetLossPerShareDetails" xlink:type="simple" xlink:href="afrm-20210930.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_9b1504e6-c19a-4296-9426-b9183b1ec15a" 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_WeightedAverageNumberOfSharesOutstandingBasic_801511fd-3ae9-4ec6-acc7-aa3615533d9c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_9b1504e6-c19a-4296-9426-b9183b1ec15a" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_801511fd-3ae9-4ec6-acc7-aa3615533d9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities_2a29147c-691b-4dff-9fcc-974fbd776172" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_9b1504e6-c19a-4296-9426-b9183b1ec15a" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities_2a29147c-691b-4dff-9fcc-974fbd776172" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_0649e528-1c26-4272-86c8-0745f2164696" 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_d57ff252-8ce7-4ac9-999c-ec4d7624dfb1" 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_0649e528-1c26-4272-86c8-0745f2164696" xlink:to="loc_us-gaap_NetIncomeLoss_d57ff252-8ce7-4ac9-999c-ec4d7624dfb1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DilutiveSecuritiesEffectOnBasicEarningsPerShareOther_17378c9a-2b0b-4d24-88a4-3e4e621fc3dc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DilutiveSecuritiesEffectOnBasicEarningsPerShareOther"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_0649e528-1c26-4272-86c8-0745f2164696" xlink:to="loc_us-gaap_DilutiveSecuritiesEffectOnBasicEarningsPerShareOther_17378c9a-2b0b-4d24-88a4-3e4e621fc3dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestOnConvertibleDebtNetOfTax_c4800c30-bb07-4aec-8361-90b84ca68933" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestOnConvertibleDebtNetOfTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_0649e528-1c26-4272-86c8-0745f2164696" xlink:to="loc_us-gaap_InterestOnConvertibleDebtNetOfTax_c4800c30-bb07-4aec-8361-90b84ca68933" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfDebtDiscountPremiumOnConvertibleDebtNetOfTax_c6ce72e8-f99e-4232-b4de-8db143063ffc" xlink:href="afrm-20210930.xsd#afrm_AmortizationOfDebtDiscountPremiumOnConvertibleDebtNetOfTax"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_0649e528-1c26-4272-86c8-0745f2164696" xlink:to="loc_afrm_AmortizationOfDebtDiscountPremiumOnConvertibleDebtNetOfTax_c6ce72e8-f99e-4232-b4de-8db143063ffc" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
