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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:6463c3fb-3a6a-4e77-b90e-75d072c35681,g:4ee7d5c3-2bc3-474f-bbe0-b11d3ee9699c-->
<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/CONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="afrm-20220630.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_6e3ff0e9-cc04-4eed-a7c2-be8de335fc66" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_5070a678-2dea-47ba-8670-e9a0839818e0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_6e3ff0e9-cc04-4eed-a7c2-be8de335fc66" xlink:to="loc_us-gaap_Liabilities_5070a678-2dea-47ba-8670-e9a0839818e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_64ce847d-26a2-4a23-8268-06fc16a1a29d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_6e3ff0e9-cc04-4eed-a7c2-be8de335fc66" xlink:to="loc_us-gaap_CommitmentsAndContingencies_64ce847d-26a2-4a23-8268-06fc16a1a29d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_29a8dcd4-036e-4025-bdd8-056231d79372" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_6e3ff0e9-cc04-4eed-a7c2-be8de335fc66" xlink:to="loc_us-gaap_StockholdersEquity_29a8dcd4-036e-4025-bdd8-056231d79372" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_139f16f3-0f21-44e5-9b64-527f677f531e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_608f31a2-fb77-4f61-affc-c6f936d2d7d4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_139f16f3-0f21-44e5-9b64-527f677f531e" xlink:to="loc_us-gaap_CommonStockValue_608f31a2-fb77-4f61-affc-c6f936d2d7d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_ebf61fd9-261d-4178-9456-f76e2127b6e5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_139f16f3-0f21-44e5-9b64-527f677f531e" xlink:to="loc_us-gaap_AdditionalPaidInCapital_ebf61fd9-261d-4178-9456-f76e2127b6e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_b6c5087c-c8f6-4db5-8680-c2b2624f6877" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_139f16f3-0f21-44e5-9b64-527f677f531e" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_b6c5087c-c8f6-4db5-8680-c2b2624f6877" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_3e47a8dd-da3a-46ee-8475-54f1a6a42121" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_139f16f3-0f21-44e5-9b64-527f677f531e" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_3e47a8dd-da3a-46ee-8475-54f1a6a42121" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_f019b5fe-9e29-4bf6-9004-95b7f128dc2a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_b248ffc2-5b91-4736-8d9c-c272a0d23f85" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_f019b5fe-9e29-4bf6-9004-95b7f128dc2a" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_b248ffc2-5b91-4736-8d9c-c272a0d23f85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_c3b27eb7-0e80-4dc6-8790-201b968decd9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_f019b5fe-9e29-4bf6-9004-95b7f128dc2a" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_c3b27eb7-0e80-4dc6-8790-201b968decd9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_f00236d8-bad2-4f20-917f-4e4e1e1eb5f2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_5cee4ea4-6d6e-46b3-984d-f7225eb47546" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_f00236d8-bad2-4f20-917f-4e4e1e1eb5f2" xlink:to="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_5cee4ea4-6d6e-46b3-984d-f7225eb47546" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ThirdPartyLoanOwnerPayable_2ad04eca-2def-4485-84d3-3e5c40f54e0b" xlink:href="afrm-20220630.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_f00236d8-bad2-4f20-917f-4e4e1e1eb5f2" xlink:to="loc_afrm_ThirdPartyLoanOwnerPayable_2ad04eca-2def-4485-84d3-3e5c40f54e0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_fbe1287b-6625-4535-8746-78e1cca75e48" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_f00236d8-bad2-4f20-917f-4e4e1e1eb5f2" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_fbe1287b-6625-4535-8746-78e1cca75e48" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_42655336-9eea-4680-8ebc-b24eb4991aa9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedLiabilitiesAndOtherLiabilities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_f00236d8-bad2-4f20-917f-4e4e1e1eb5f2" xlink:to="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_42655336-9eea-4680-8ebc-b24eb4991aa9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebt_96d552cc-5e27-4017-a6e8-1f116715c5f8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConvertibleDebt"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_f00236d8-bad2-4f20-917f-4e4e1e1eb5f2" xlink:to="loc_us-gaap_ConvertibleDebt_96d552cc-5e27-4017-a6e8-1f116715c5f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebt_1246be8f-5d3a-43dd-a64c-6d3ae81c7660" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuredDebt"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_f00236d8-bad2-4f20-917f-4e4e1e1eb5f2" xlink:to="loc_us-gaap_SecuredDebt_1246be8f-5d3a-43dd-a64c-6d3ae81c7660" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_fbc3693d-7a02-490a-b516-211cad2a7bc2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCredit"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_f00236d8-bad2-4f20-917f-4e4e1e1eb5f2" xlink:to="loc_us-gaap_LineOfCredit_fbc3693d-7a02-490a-b516-211cad2a7bc2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_1db696d4-5b0b-4af4-9d23-db0409949c54" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_e34aa777-2a1c-42db-80f2-b403b0026e7c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_1db696d4-5b0b-4af4-9d23-db0409949c54" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_e34aa777-2a1c-42db-80f2-b403b0026e7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_febf4699-ac0a-48ac-b682-cd1e36025759" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedCash"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_1db696d4-5b0b-4af4-9d23-db0409949c54" xlink:to="loc_us-gaap_RestrictedCash_febf4699-ac0a-48ac-b682-cd1e36025759" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInvestments_1d498629-87bc-46f2-9d96-0c0f22b87a28" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_1db696d4-5b0b-4af4-9d23-db0409949c54" xlink:to="loc_us-gaap_OtherInvestments_1d498629-87bc-46f2-9d96-0c0f22b87a28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableHeldForSaleAmount_84f11699-5c3c-47df-acc5-f20c54b76c3c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LoansReceivableHeldForSaleAmount"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_1db696d4-5b0b-4af4-9d23-db0409949c54" xlink:to="loc_us-gaap_LoansReceivableHeldForSaleAmount_84f11699-5c3c-47df-acc5-f20c54b76c3c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_90e4c639-501a-4d3a-875b-1913fab6d978" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_1db696d4-5b0b-4af4-9d23-db0409949c54" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_90e4c639-501a-4d3a-875b-1913fab6d978" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNet_ba7a39c3-1936-4e3d-9c2d-f8e48a591a87" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_1db696d4-5b0b-4af4-9d23-db0409949c54" xlink:to="loc_us-gaap_AccountsReceivableNet_ba7a39c3-1936-4e3d-9c2d-f8e48a591a87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_a0ea3b68-2726-43d5-b6da-12e8de7f6c02" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_1db696d4-5b0b-4af4-9d23-db0409949c54" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_a0ea3b68-2726-43d5-b6da-12e8de7f6c02" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_0d77bcdc-6157-4207-adb1-b438a4046b46" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_1db696d4-5b0b-4af4-9d23-db0409949c54" xlink:to="loc_us-gaap_Goodwill_0d77bcdc-6157-4207-adb1-b438a4046b46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_c1734961-bb08-4205-8a4b-63da5aa46327" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_1db696d4-5b0b-4af4-9d23-db0409949c54" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_c1734961-bb08-4205-8a4b-63da5aa46327" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAssetNet_bbc3a676-cb8f-408b-a140-95fff3b30e5f" xlink:href="afrm-20220630.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_1db696d4-5b0b-4af4-9d23-db0409949c54" xlink:to="loc_afrm_CommercialAgreementAssetNet_bbc3a676-cb8f-408b-a140-95fff3b30e5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_fb918c04-9376-488d-b4be-79c6189bffeb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_1db696d4-5b0b-4af4-9d23-db0409949c54" xlink:to="loc_us-gaap_OtherAssets_fb918c04-9376-488d-b4be-79c6189bffeb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="afrm-20220630.xsd#CONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsNet_a1905861-e190-4ec7-9918-f3c21f6b58d1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_3da5b8b1-6aa6-4ffd-a7d7-11976ea67a84" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsNet_a1905861-e190-4ec7-9918-f3c21f6b58d1" xlink:to="loc_us-gaap_Assets_3da5b8b1-6aa6-4ffd-a7d7-11976ea67a84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_08d01115-f22c-457e-906e-82c0f216f106" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsNet_a1905861-e190-4ec7-9918-f3c21f6b58d1" xlink:to="loc_us-gaap_Liabilities_08d01115-f22c-457e-906e-82c0f216f106" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="afrm-20220630.xsd#CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_f1000acb-0109-4a75-8f2b-69914ba1f78a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_3bd3981a-4dd9-4004-b624-e0a583274969" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f1000acb-0109-4a75-8f2b-69914ba1f78a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_3bd3981a-4dd9-4004-b624-e0a583274969" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_59afc26e-7ac6-4434-bdc8-5d7fe4735d21" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f1000acb-0109-4a75-8f2b-69914ba1f78a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_59afc26e-7ac6-4434-bdc8-5d7fe4735d21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_9da0c333-dc13-49ba-9517-94e7a260071f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_34a6924e-37aa-4064-a0f6-3a2a2b0505c7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_9da0c333-dc13-49ba-9517-94e7a260071f" xlink:to="loc_us-gaap_Revenues_34a6924e-37aa-4064-a0f6-3a2a2b0505c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_cfe71de8-a6a4-4ca4-86c9-db56c82ad722" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CostsAndExpenses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_9da0c333-dc13-49ba-9517-94e7a260071f" xlink:to="loc_us-gaap_CostsAndExpenses_cfe71de8-a6a4-4ca4-86c9-db56c82ad722" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_f54720fa-2b46-47f0-a8b1-a4b109e5a9b8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_80381354-66c1-407d-aecb-53c06f4c1917" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockDividendsAndOtherAdjustments"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_f54720fa-2b46-47f0-a8b1-a4b109e5a9b8" xlink:to="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_80381354-66c1-407d-aecb-53c06f4c1917" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_3b60c902-d29e-435b-97aa-4912c811347f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_f54720fa-2b46-47f0-a8b1-a4b109e5a9b8" xlink:to="loc_us-gaap_NetIncomeLoss_3b60c902-d29e-435b-97aa-4912c811347f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_8e0efbfb-65eb-4b00-b4fb-c69e7b615834" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_c385446c-8724-4bd4-a7a7-aa08ab827001" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_8e0efbfb-65eb-4b00-b4fb-c69e7b615834" xlink:to="loc_us-gaap_NetIncomeLoss_c385446c-8724-4bd4-a7a7-aa08ab827001" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_45f387ae-35ab-4744-b970-4549f6c9a646" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_8e0efbfb-65eb-4b00-b4fb-c69e7b615834" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_45f387ae-35ab-4744-b970-4549f6c9a646" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_96c4148a-ae88-4cfa-8b76-1b37bfa64db0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c5ad5934-9b12-40d2-bb62-13bb8b9b69ef" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_96c4148a-ae88-4cfa-8b76-1b37bfa64db0" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c5ad5934-9b12-40d2-bb62-13bb8b9b69ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_5128851a-6776-4574-8a8f-0856e911e268" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_96c4148a-ae88-4cfa-8b76-1b37bfa64db0" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_5128851a-6776-4574-8a8f-0856e911e268" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_8c507f9f-453a-47ae-8b22-0778db2c8f1f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LossOnFinancingReceivableCommitmentsToPurchase_b4ddac94-7b5b-4075-8e5a-2e502f9c4393" xlink:href="afrm-20220630.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_8c507f9f-453a-47ae-8b22-0778db2c8f1f" xlink:to="loc_afrm_LossOnFinancingReceivableCommitmentsToPurchase_b4ddac94-7b5b-4075-8e5a-2e502f9c4393" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_5137687e-bc4c-4a23-bbd2-40e414f2fa6f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_8c507f9f-453a-47ae-8b22-0778db2c8f1f" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_5137687e-bc4c-4a23-bbd2-40e414f2fa6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_e985946e-4759-4d4e-9d03-8509930ae1ae" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_8c507f9f-453a-47ae-8b22-0778db2c8f1f" xlink:to="loc_us-gaap_InterestExpenseDebt_e985946e-4759-4d4e-9d03-8509930ae1ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ProcessingAndServicingExpense_016aa88a-f8a8-4317-bc4b-a8dbe4eecad2" xlink:href="afrm-20220630.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_8c507f9f-453a-47ae-8b22-0778db2c8f1f" xlink:to="loc_afrm_ProcessingAndServicingExpense_016aa88a-f8a8-4317-bc4b-a8dbe4eecad2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_TechnologyAndDataAnalyticsExpense_0abf1111-a342-41eb-b673-461ea59430e2" xlink:href="afrm-20220630.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_8c507f9f-453a-47ae-8b22-0778db2c8f1f" xlink:to="loc_afrm_TechnologyAndDataAnalyticsExpense_0abf1111-a342-41eb-b673-461ea59430e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_c464c4e4-57f5-4ce6-82fd-aeb664581506" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_8c507f9f-453a-47ae-8b22-0778db2c8f1f" xlink:to="loc_us-gaap_SellingAndMarketingExpense_c464c4e4-57f5-4ce6-82fd-aeb664581506" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_4983cf5c-0d61-4b3f-b427-4c008c32753c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_8c507f9f-453a-47ae-8b22-0778db2c8f1f" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_4983cf5c-0d61-4b3f-b427-4c008c32753c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_82ddc43b-d03d-4b9e-bd7e-28ed9c4b555e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_adba178e-9643-4ffc-a427-a3cf0cf7d3af" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_82ddc43b-d03d-4b9e-bd7e-28ed9c4b555e" xlink:to="loc_us-gaap_OperatingIncomeLoss_adba178e-9643-4ffc-a427-a3cf0cf7d3af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_1e58dd72-faec-4f09-98d5-081b3217316e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_82ddc43b-d03d-4b9e-bd7e-28ed9c4b555e" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_1e58dd72-faec-4f09-98d5-081b3217316e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_acef89f9-3b95-4f3f-9214-a445cb9d8a25" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Revenues"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_c3140e07-58f3-4d17-b3e3-73446e41e21f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_acef89f9-3b95-4f3f-9214-a445cb9d8a25" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_c3140e07-58f3-4d17-b3e3-73446e41e21f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_87586241-46cd-44c2-b462-238853ce6d00" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_acef89f9-3b95-4f3f-9214-a445cb9d8a25" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_87586241-46cd-44c2-b462-238853ce6d00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_c15a746d-b7d0-4f7d-aa65-9ce0c89ecf85" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_acef89f9-3b95-4f3f-9214-a445cb9d8a25" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_c15a746d-b7d0-4f7d-aa65-9ce0c89ecf85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_2413fe0a-cb49-4005-b040-1ce15abe2d19" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_acef89f9-3b95-4f3f-9214-a445cb9d8a25" xlink:to="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_2413fe0a-cb49-4005-b040-1ce15abe2d19" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="afrm-20220630.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6cb6ebf6-3d12-4b79-8057-bf855cd4ef86" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromConvertibleDebt_82fef07e-38b0-4c2c-8cc9-9b570d78dbce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromConvertibleDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6cb6ebf6-3d12-4b79-8057-bf855cd4ef86" xlink:to="loc_us-gaap_ProceedsFromConvertibleDebt_82fef07e-38b0-4c2c-8cc9-9b570d78dbce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_e01fd68f-52dc-45bf-bb66-578dc4fe082b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromLongTermLinesOfCredit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6cb6ebf6-3d12-4b79-8057-bf855cd4ef86" xlink:to="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_e01fd68f-52dc-45bf-bb66-578dc4fe082b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_0cf94557-c928-4a8d-9071-271b5fcbbed6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6cb6ebf6-3d12-4b79-8057-bf855cd4ef86" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_0cf94557-c928-4a8d-9071-271b5fcbbed6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_f656ae70-190c-4d94-8f23-d4d69283aad7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfLongTermLinesOfCredit"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6cb6ebf6-3d12-4b79-8057-bf855cd4ef86" xlink:to="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_f656ae70-190c-4d94-8f23-d4d69283aad7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSecuredDebt_012323c3-8108-4fa4-afd3-11ee9563c920" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceOfSecuredDebt"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6cb6ebf6-3d12-4b79-8057-bf855cd4ef86" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSecuredDebt_012323c3-8108-4fa4-afd3-11ee9563c920" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfSecuredDebt_3bfdb7fd-e35b-4436-9479-e53bc36ea62c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfSecuredDebt"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6cb6ebf6-3d12-4b79-8057-bf855cd4ef86" xlink:to="loc_us-gaap_RepaymentsOfSecuredDebt_3bfdb7fd-e35b-4436-9479-e53bc36ea62c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock_3ed78ee4-5338-42f7-b685-ae39852ad7d2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6cb6ebf6-3d12-4b79-8057-bf855cd4ef86" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock_3ed78ee4-5338-42f7-b685-ae39852ad7d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PaymentsForConversionOfRedeemableConvertiblePreferredStock_a9de622e-8436-4a42-b757-2b277399672b" xlink:href="afrm-20220630.xsd#afrm_PaymentsForConversionOfRedeemableConvertiblePreferredStock"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6cb6ebf6-3d12-4b79-8057-bf855cd4ef86" xlink:to="loc_afrm_PaymentsForConversionOfRedeemableConvertiblePreferredStock_a9de622e-8436-4a42-b757-2b277399672b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_4b00cdeb-30c0-443b-9696-006c234c6a16" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceInitialPublicOffering"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6cb6ebf6-3d12-4b79-8057-bf855cd4ef86" xlink:to="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_4b00cdeb-30c0-443b-9696-006c234c6a16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ProceedsFromStockOptionsAndWarrantsExercised_97a6b9d6-eec3-49a9-b2dd-347a0626be96" xlink:href="afrm-20220630.xsd#afrm_ProceedsFromStockOptionsAndWarrantsExercised"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6cb6ebf6-3d12-4b79-8057-bf855cd4ef86" xlink:to="loc_afrm_ProceedsFromStockOptionsAndWarrantsExercised_97a6b9d6-eec3-49a9-b2dd-347a0626be96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_5df20130-5047-4931-b583-510c08fd19be" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6cb6ebf6-3d12-4b79-8057-bf855cd4ef86" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_5df20130-5047-4931-b583-510c08fd19be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_e314c9ed-97e0-4e04-a16f-f35f4b2976bc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6cb6ebf6-3d12-4b79-8057-bf855cd4ef86" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_e314c9ed-97e0-4e04-a16f-f35f4b2976bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b37e1349-75a2-4b16-bd85-1731044ec9aa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_bfaa83fb-6cc8-45de-8568-152630d2bfec" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b37e1349-75a2-4b16-bd85-1731044ec9aa" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_bfaa83fb-6cc8-45de-8568-152630d2bfec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireIntangibleAssets_3d10fc5f-3d3b-463a-99ff-d90d5d6338d0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireIntangibleAssets"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b37e1349-75a2-4b16-bd85-1731044ec9aa" xlink:to="loc_us-gaap_PaymentsToAcquireIntangibleAssets_3d10fc5f-3d3b-463a-99ff-d90d5d6338d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireFinanceReceivables_0ff299bd-60f2-4bc9-8a39-51fc99da7f8c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireFinanceReceivables"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b37e1349-75a2-4b16-bd85-1731044ec9aa" xlink:to="loc_us-gaap_PaymentsToAcquireFinanceReceivables_0ff299bd-60f2-4bc9-8a39-51fc99da7f8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PaymentsForOtherInvestingActivities_68b53990-8944-4b7a-9edd-0020e2e73f51" xlink:href="afrm-20220630.xsd#afrm_PaymentsForOtherInvestingActivities"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b37e1349-75a2-4b16-bd85-1731044ec9aa" xlink:to="loc_afrm_PaymentsForOtherInvestingActivities_68b53990-8944-4b7a-9edd-0020e2e73f51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromCollectionOfFinanceReceivables_d9ef8e0f-1a0e-4857-97dc-a75a2286bbd0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromCollectionOfFinanceReceivables"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b37e1349-75a2-4b16-bd85-1731044ec9aa" xlink:to="loc_us-gaap_ProceedsFromCollectionOfFinanceReceivables_d9ef8e0f-1a0e-4857-97dc-a75a2286bbd0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfFinanceReceivables_58c1fc4b-00ab-4d76-b22c-73ab08e9319c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleOfFinanceReceivables"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b37e1349-75a2-4b16-bd85-1731044ec9aa" xlink:to="loc_us-gaap_ProceedsFromSaleOfFinanceReceivables_58c1fc4b-00ab-4d76-b22c-73ab08e9319c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_da6b5d0d-6e87-443e-aba2-fcfdc3edcad0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b37e1349-75a2-4b16-bd85-1731044ec9aa" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_da6b5d0d-6e87-443e-aba2-fcfdc3edcad0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_578d7ec8-c697-4d71-95b0-df5964e64c6a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b37e1349-75a2-4b16-bd85-1731044ec9aa" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_578d7ec8-c697-4d71-95b0-df5964e64c6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ProceedsFromOtherInvestingActivities_9644ef1a-2555-48e6-83b8-d4728799582a" xlink:href="afrm-20220630.xsd#afrm_ProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b37e1349-75a2-4b16-bd85-1731044ec9aa" xlink:to="loc_afrm_ProceedsFromOtherInvestingActivities_9644ef1a-2555-48e6-83b8-d4728799582a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_fbd76ffd-1fe3-4dfa-b2ef-3d0cc0502e46" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_b37e1349-75a2-4b16-bd85-1731044ec9aa" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_fbd76ffd-1fe3-4dfa-b2ef-3d0cc0502e46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_31dc6039-cfdd-4397-ada3-e41c17cb3d2c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_us-gaap_NetIncomeLoss_31dc6039-cfdd-4397-ada3-e41c17cb3d2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_8800e841-a454-4478-8884-ec6bc067d03b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_8800e841-a454-4478-8884-ec6bc067d03b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables_154da8a6-8f78-4ee4-a0c4-ec333d1869e7" xlink:href="afrm-20220630.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_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_afrm_AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables_154da8a6-8f78-4ee4-a0c4-ec333d1869e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_ef7eaecd-b0ac-4102-a5fc-a63a9cd82024" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnSalesOfLoansNet"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_ef7eaecd-b0ac-4102-a5fc-a63a9cd82024" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_GainLossOnChangesInFairValueOfAssetsAndLiabilities_db7d7e5f-fae5-429e-b46a-8e5ca0768feb" xlink:href="afrm-20220630.xsd#afrm_GainLossOnChangesInFairValueOfAssetsAndLiabilities"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_afrm_GainLossOnChangesInFairValueOfAssetsAndLiabilities_db7d7e5f-fae5-429e-b46a-8e5ca0768feb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfCommercialAgreementAssets_f5e71c04-f3f0-4a5e-99b0-3e3fffe1729b" xlink:href="afrm-20220630.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_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_afrm_AmortizationOfCommercialAgreementAssets_f5e71c04-f3f0-4a5e-99b0-3e3fffe1729b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_0b716b92-fc8b-46a4-a2d9-92905ab29d1b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_0b716b92-fc8b-46a4-a2d9-92905ab29d1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfDiscountOnAvailableForSaleSecurities_ea6aa43b-d8b8-40c3-bebf-fb45acc342d0" xlink:href="afrm-20220630.xsd#afrm_AmortizationOfDiscountOnAvailableForSaleSecurities"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_afrm_AmortizationOfDiscountOnAvailableForSaleSecurities_ea6aa43b-d8b8-40c3-bebf-fb45acc342d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseImpairmentLoss_0bb2eae6-addc-4955-9cc2-c959e83fb364" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseImpairmentLoss"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_us-gaap_OperatingLeaseImpairmentLoss_0bb2eae6-addc-4955-9cc2-c959e83fb364" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IncreaseDecreaseInCommercialAgreementAssets_ffd556fa-368b-4ad7-b782-59f24fca2dcc" xlink:href="afrm-20220630.xsd#afrm_IncreaseDecreaseInCommercialAgreementAssets"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_afrm_IncreaseDecreaseInCommercialAgreementAssets_ffd556fa-368b-4ad7-b782-59f24fca2dcc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_f70d4f5d-e141-4d7e-96e3-af73eeb87c1a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_us-gaap_ShareBasedCompensation_f70d4f5d-e141-4d7e-96e3-af73eeb87c1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_1d2aaa22-9185-436f-9ab9-1eeb13172dda" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_1d2aaa22-9185-436f-9ab9-1eeb13172dda" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_c5caf000-c22d-4e8a-91b1-a817a7ee0083" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_c5caf000-c22d-4e8a-91b1-a817a7ee0083" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToPurchaseLoansHeldForSale_b5d8b7d9-f000-4777-827b-5a3e33bbb93f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToPurchaseLoansHeldForSale"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_us-gaap_PaymentsToPurchaseLoansHeldForSale_b5d8b7d9-f000-4777-827b-5a3e33bbb93f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_d924314e-8af7-4289-8568-65522d70b3f9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromSaleOfLoansHeldForSale"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_d924314e-8af7-4289-8568-65522d70b3f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_448265a6-642f-4327-832a-db69c1469514" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="16" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_448265a6-642f-4327-832a-db69c1469514" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_ef638b83-4b71-4910-9b4d-8f49656e1abe" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="17" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_ef638b83-4b71-4910-9b4d-8f49656e1abe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_8d843a87-ebdc-48f5-a1b1-70c001785168" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="18" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_8d843a87-ebdc-48f5-a1b1-70c001785168" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable_c84ade53-6f26-4b3e-aa82-cac04c7631ce" xlink:href="afrm-20220630.xsd#afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable"/>
    <link:calculationArc order="19" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable_c84ade53-6f26-4b3e-aa82-cac04c7631ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_9d6a2afb-5de9-4a92-bff6-73c0f668eb10" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet"/>
    <link:calculationArc order="20" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_9d6a2afb-5de9-4a92-bff6-73c0f668eb10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_dbcd5da5-40dd-4e52-b3c0-a337b050d755" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities"/>
    <link:calculationArc order="21" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a6798061-aa6b-487c-9125-f35994ecb73e" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_dbcd5da5-40dd-4e52-b3c0-a337b050d755" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_78e71f80-439d-4908-87a6-c116703110aa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_13521a2a-bd34-44ed-a58c-5b4d24a7598f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_78e71f80-439d-4908-87a6-c116703110aa" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_13521a2a-bd34-44ed-a58c-5b4d24a7598f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_8c3c54bc-d5a5-4d32-a51b-82bd06571d74" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_78e71f80-439d-4908-87a6-c116703110aa" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_8c3c54bc-d5a5-4d32-a51b-82bd06571d74" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e235b6b0-35be-4e7a-85e7-9ad84f45b69c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_78e71f80-439d-4908-87a6-c116703110aa" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e235b6b0-35be-4e7a-85e7-9ad84f45b69c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_78b93504-236d-486d-9ad0-5d1cbc32b9b1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_78e71f80-439d-4908-87a6-c116703110aa" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_78b93504-236d-486d-9ad0-5d1cbc32b9b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_4616c2e2-f4c2-41f9-878e-ee6e1cece825" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_da2be340-915e-4e23-85dc-6f2bbfd0811e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_4616c2e2-f4c2-41f9-878e-ee6e1cece825" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_da2be340-915e-4e23-85dc-6f2bbfd0811e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_1ee8624a-a6b4-4d8b-a7d2-efabb7e879e7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedCash"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_4616c2e2-f4c2-41f9-878e-ee6e1cece825" xlink:to="loc_us-gaap_RestrictedCash_1ee8624a-a6b4-4d8b-a7d2-efabb7e879e7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/InterestIncomeScheduleofInterestIncomeDetails" xlink:type="simple" xlink:href="afrm-20220630.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_a4f4b5f0-582c-4666-8292-94c1d6b8c5fe" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_9c6d2eef-5547-4261-83b9-317886880b4e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestAndFeeIncomeLoansAndLeases"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_a4f4b5f0-582c-4666-8292-94c1d6b8c5fe" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_9c6d2eef-5547-4261-83b9-317886880b4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccretionOfDiscountsFinancingReceivables_b4424940-f554-484d-881d-e2810c7df9a7" xlink:href="afrm-20220630.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_a4f4b5f0-582c-4666-8292-94c1d6b8c5fe" xlink:to="loc_afrm_AccretionOfDiscountsFinancingReceivables_b4424940-f554-484d-881d-e2810c7df9a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfPremiumsFinancingReceivables_084cb8c9-01be-4a3f-ad1d-14a81bdb64d0" xlink:href="afrm-20220630.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_a4f4b5f0-582c-4666-8292-94c1d6b8c5fe" xlink:to="loc_afrm_AmortizationOfPremiumsFinancingReceivables_084cb8c9-01be-4a3f-ad1d-14a81bdb64d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_8024c765-1191-44e7-88cc-09abe57780b2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAccruedInterestWriteoff"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestAndDividendIncomeOperating_a4f4b5f0-582c-4666-8292-94c1d6b8c5fe" xlink:to="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_8024c765-1191-44e7-88cc-09abe57780b2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesLoansHeldforInvestmentDetails" xlink:type="simple" xlink:href="afrm-20220630.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesLoansHeldforInvestmentDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesLoansHeldforInvestmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_d5a9eed2-c0f1-49ee-ae24-87187688a94b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee_ab0791af-cac2-4b45-a7ed-6fb8f582b455" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_d5a9eed2-c0f1-49ee-ae24-87187688a94b" xlink:to="loc_us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee_ab0791af-cac2-4b45-a7ed-6fb8f582b455" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableUnamortizedPurchaseDiscount_becd507e-31f8-4eb3-9c5e-b81875c01235" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivableUnamortizedPurchaseDiscount"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_d5a9eed2-c0f1-49ee-ae24-87187688a94b" xlink:to="loc_afrm_FinancingReceivableUnamortizedPurchaseDiscount_becd507e-31f8-4eb3-9c5e-b81875c01235" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestBeforeAllowanceForCreditLoss_7cf16440-fd3a-4b1a-ab41-944275eec5af" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancingReceivableAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_d5a9eed2-c0f1-49ee-ae24-87187688a94b" xlink:to="loc_us-gaap_FinancingReceivableAccruedInterestBeforeAllowanceForCreditLoss_7cf16440-fd3a-4b1a-ab41-944275eec5af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableAcquiredInBusinessCombinationFairValueAdjustment_55d713a6-c2ba-4a9a-a3f0-5c91bb919901" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivableAcquiredInBusinessCombinationFairValueAdjustment"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_d5a9eed2-c0f1-49ee-ae24-87187688a94b" xlink:to="loc_afrm_FinancingReceivableAcquiredInBusinessCombinationFairValueAdjustment_55d713a6-c2ba-4a9a-a3f0-5c91bb919901" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableLossOnSelfOrganizingLoans_865e3cc2-4022-4516-a1d7-46c9ed5d120c" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivableLossOnSelfOrganizingLoans"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_d5a9eed2-c0f1-49ee-ae24-87187688a94b" xlink:to="loc_afrm_FinancingReceivableLossOnSelfOrganizingLoans_865e3cc2-4022-4516-a1d7-46c9ed5d120c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableUnamortizedPurchasePremium_1b072483-5f46-410b-a29b-9e06449ff001" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivableUnamortizedPurchasePremium"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_d5a9eed2-c0f1-49ee-ae24-87187688a94b" xlink:to="loc_afrm_FinancingReceivableUnamortizedPurchasePremium_1b072483-5f46-410b-a29b-9e06449ff001" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails" xlink:type="simple" xlink:href="afrm-20220630.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_1adc8809-1945-454a-b8e7-39b79e068d1d" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOff_566c6f63-e896-4014-b2e4-f0924a22cf2a" xlink:href="afrm-20220630.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_1adc8809-1945-454a-b8e7-39b79e068d1d" xlink:to="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOff_566c6f63-e896-4014-b2e4-f0924a22cf2a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_77450999-0cf6-45e2-b68b-7fc79a9b0736" xlink:href="afrm-20220630.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_1adc8809-1945-454a-b8e7-39b79e068d1d" xlink:to="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_77450999-0cf6-45e2-b68b-7fc79a9b0736" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss_0c1e96e0-42a1-4f9e-b54e-4a2c15504597" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivableAmortizedCostBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedInCurrentFiscalYear_6ff23920-458d-4ed0-a8c1-440b676fb0b3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_0c1e96e0-42a1-4f9e-b54e-4a2c15504597" xlink:to="loc_us-gaap_FinancingReceivableOriginatedInCurrentFiscalYear_6ff23920-458d-4ed0-a8c1-440b676fb0b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear_e703aa7e-d13e-4050-b93a-e60eccf18120" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_0c1e96e0-42a1-4f9e-b54e-4a2c15504597" xlink:to="loc_us-gaap_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYear_e703aa7e-d13e-4050-b93a-e60eccf18120" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear_0cc34302-72b9-4460-8a1b-d9f219dc9519" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_0c1e96e0-42a1-4f9e-b54e-4a2c15504597" xlink:to="loc_us-gaap_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYear_0cc34302-72b9-4460-8a1b-d9f219dc9519" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear_01b7b140-7d46-47ac-84c0-4aa700cec02e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_0c1e96e0-42a1-4f9e-b54e-4a2c15504597" xlink:to="loc_us-gaap_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYear_01b7b140-7d46-47ac-84c0-4aa700cec02e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear_5d3bfc6d-1127-40e9-807f-169114fafacb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_0c1e96e0-42a1-4f9e-b54e-4a2c15504597" xlink:to="loc_us-gaap_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYear_5d3bfc6d-1127-40e9-807f-169114fafacb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear_134f9989-194c-48b0-b42c-07249ea16a21" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_0c1e96e0-42a1-4f9e-b54e-4a2c15504597" xlink:to="loc_us-gaap_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYear_134f9989-194c-48b0-b42c-07249ea16a21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableWriteOff_51f3298e-4051-4bec-86de-47f4e128e4a0" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivableWriteOff"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOff_6f78538b-2182-4cd9-b60b-7e3d24edf939" xlink:href="afrm-20220630.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_51f3298e-4051-4bec-86de-47f4e128e4a0" xlink:to="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOff_6f78538b-2182-4cd9-b60b-7e3d24edf939" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOff_0e347502-030b-4143-8df2-4385de8631d4" xlink:href="afrm-20220630.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_51f3298e-4051-4bec-86de-47f4e128e4a0" xlink:to="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOff_0e347502-030b-4143-8df2-4385de8631d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOff_37762972-4986-452b-b094-cf314600ced0" xlink:href="afrm-20220630.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_51f3298e-4051-4bec-86de-47f4e128e4a0" xlink:to="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOff_37762972-4986-452b-b094-cf314600ced0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOff_d0e50238-a0f0-495a-b0ba-4fad0f477676" xlink:href="afrm-20220630.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_51f3298e-4051-4bec-86de-47f4e128e4a0" xlink:to="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOff_d0e50238-a0f0-495a-b0ba-4fad0f477676" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOff_baeffc5e-24d4-4fc9-9315-ad6fd9e3fd74" xlink:href="afrm-20220630.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_51f3298e-4051-4bec-86de-47f4e128e4a0" xlink:to="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOff_baeffc5e-24d4-4fc9-9315-ad6fd9e3fd74" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOff_1e37dc73-c5c7-4984-848b-288dec702cea" xlink:href="afrm-20220630.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_51f3298e-4051-4bec-86de-47f4e128e4a0" xlink:to="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOff_1e37dc73-c5c7-4984-848b-288dec702cea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_dba8ca7e-f681-4dd2-9feb-71ae6bd74dde" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOff_a47b98d3-292e-485f-9ff0-587e8e736445" xlink:href="afrm-20220630.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_dba8ca7e-f681-4dd2-9feb-71ae6bd74dde" xlink:to="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOff_a47b98d3-292e-485f-9ff0-587e8e736445" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_d9825c0f-7bea-4bd5-8b59-64b961e20daa" xlink:href="afrm-20220630.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_dba8ca7e-f681-4dd2-9feb-71ae6bd74dde" xlink:to="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_d9825c0f-7bea-4bd5-8b59-64b961e20daa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivablesWriteOffRecoveriesNet_3293baec-a000-4f2c-82ee-c85752958e61" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivablesWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_848f5ecb-d822-4beb-9be8-b6333af9f5d7" xlink:href="afrm-20220630.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_3293baec-a000-4f2c-82ee-c85752958e61" xlink:to="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_848f5ecb-d822-4beb-9be8-b6333af9f5d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_32062468-ec4c-46c2-a139-e09cf0c2e1f1" xlink:href="afrm-20220630.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_3293baec-a000-4f2c-82ee-c85752958e61" xlink:to="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_32062468-ec4c-46c2-a139-e09cf0c2e1f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_b6a49069-95c7-4c41-912a-39f7dd8e63a7" xlink:href="afrm-20220630.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_3293baec-a000-4f2c-82ee-c85752958e61" xlink:to="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_b6a49069-95c7-4c41-912a-39f7dd8e63a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_b6ffdde2-6958-4ba5-a539-51cd237b34d1" xlink:href="afrm-20220630.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_3293baec-a000-4f2c-82ee-c85752958e61" xlink:to="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_b6ffdde2-6958-4ba5-a539-51cd237b34d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_8bc2413e-fa74-4c17-8a46-cadde9b86fff" xlink:href="afrm-20220630.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_3293baec-a000-4f2c-82ee-c85752958e61" xlink:to="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_8bc2413e-fa74-4c17-8a46-cadde9b86fff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_a8ed4021-0ca5-4ee4-a170-54f8852166a2" xlink:href="afrm-20220630.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_3293baec-a000-4f2c-82ee-c85752958e61" xlink:to="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_a8ed4021-0ca5-4ee4-a170-54f8852166a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableRecoveries_39ced8a8-005a-4b42-b40d-64535b1767c5" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivableRecoveries"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearRecoveries_03ecdffc-58ed-4dff-9fad-277e49c75a0b" xlink:href="afrm-20220630.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_39ced8a8-005a-4b42-b40d-64535b1767c5" xlink:to="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearRecoveries_03ecdffc-58ed-4dff-9fad-277e49c75a0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_bf9de2d8-3c42-4881-a866-6b329c1d0377" xlink:href="afrm-20220630.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_39ced8a8-005a-4b42-b40d-64535b1767c5" xlink:to="loc_afrm_FinancingReceivableYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_bf9de2d8-3c42-4881-a866-6b329c1d0377" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_383cc00c-2f7b-4442-986c-6a080a3c5bf6" xlink:href="afrm-20220630.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_39ced8a8-005a-4b42-b40d-64535b1767c5" xlink:to="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_383cc00c-2f7b-4442-986c-6a080a3c5bf6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_94a9d698-59e9-441c-8097-0ad4de681324" xlink:href="afrm-20220630.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_39ced8a8-005a-4b42-b40d-64535b1767c5" xlink:to="loc_afrm_FinancingReceivableYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_94a9d698-59e9-441c-8097-0ad4de681324" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_9974f981-d66a-4e92-a9d7-956844cd576b" xlink:href="afrm-20220630.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_39ced8a8-005a-4b42-b40d-64535b1767c5" xlink:to="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_9974f981-d66a-4e92-a9d7-956844cd576b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_4ee36e25-b04a-43a5-8ce4-276a1ef9a9e9" xlink:href="afrm-20220630.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_39ced8a8-005a-4b42-b40d-64535b1767c5" xlink:to="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_4ee36e25-b04a-43a5-8ce4-276a1ef9a9e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_365bb205-5138-42a8-a43e-fe249a9009b4" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOff_7445913c-c99f-49fe-ad53-faff4463087c" xlink:href="afrm-20220630.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_365bb205-5138-42a8-a43e-fe249a9009b4" xlink:to="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOff_7445913c-c99f-49fe-ad53-faff4463087c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_a153cf1c-af2f-4a59-9a78-b2fabc49389c" xlink:href="afrm-20220630.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_365bb205-5138-42a8-a43e-fe249a9009b4" xlink:to="loc_afrm_FinancingReceivableYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_a153cf1c-af2f-4a59-9a78-b2fabc49389c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_b94a20c5-ac50-45eb-ad20-58d7e067bef9" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOff_43235e01-8faa-45f5-a10e-81409213a1a5" xlink:href="afrm-20220630.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_b94a20c5-ac50-45eb-ad20-58d7e067bef9" xlink:to="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearWriteOff_43235e01-8faa-45f5-a10e-81409213a1a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearRecoveries_d8ae5bf7-82e2-4e06-8e3a-cec405a7bf6c" xlink:href="afrm-20220630.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_b94a20c5-ac50-45eb-ad20-58d7e067bef9" xlink:to="loc_afrm_FinancingReceivableYearOneOriginatedCurrentFiscalYearRecoveries_d8ae5bf7-82e2-4e06-8e3a-cec405a7bf6c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_adb8e8c6-b1ef-4163-acf2-01add9dccd37" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOff_0c3ce5dd-33a0-4e41-8cdf-c1bdbb7b5303" xlink:href="afrm-20220630.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_adb8e8c6-b1ef-4163-acf2-01add9dccd37" xlink:to="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOff_0c3ce5dd-33a0-4e41-8cdf-c1bdbb7b5303" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_fa203714-0d94-4d8a-973f-c2d6f40959ae" xlink:href="afrm-20220630.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_adb8e8c6-b1ef-4163-acf2-01add9dccd37" xlink:to="loc_afrm_FinancingReceivableOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_fa203714-0d94-4d8a-973f-c2d6f40959ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_4045f0d6-4f6d-4da3-9f9d-9017e4e292a2" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOff_2bedbe68-7740-43ca-b4c7-3226aaab2745" xlink:href="afrm-20220630.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_4045f0d6-4f6d-4da3-9f9d-9017e4e292a2" xlink:to="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOff_2bedbe68-7740-43ca-b4c7-3226aaab2745" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_e2183329-b98d-499f-b421-57d5ee60455f" xlink:href="afrm-20220630.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_4045f0d6-4f6d-4da3-9f9d-9017e4e292a2" xlink:to="loc_afrm_FinancingReceivableYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_e2183329-b98d-499f-b421-57d5ee60455f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesCreditQualitybyITACsScoreDetails_1" xlink:type="simple" xlink:href="afrm-20220630.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_85675ae5-de30-48c7-992d-a878373bff56" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivablesWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableWriteOff_bd863899-2000-4187-adbb-fa5fb31f9847" xlink:href="afrm-20220630.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_85675ae5-de30-48c7-992d-a878373bff56" xlink:to="loc_afrm_FinancingReceivableWriteOff_bd863899-2000-4187-adbb-fa5fb31f9847" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableRecoveries_de859add-18df-49e1-86ef-c3a4c7a96049" xlink:href="afrm-20220630.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_85675ae5-de30-48c7-992d-a878373bff56" xlink:to="loc_afrm_FinancingReceivableRecoveries_de859add-18df-49e1-86ef-c3a4c7a96049" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/AcquisitionsFairValueofConsiderationTransferredDetails" xlink:type="simple" xlink:href="afrm-20220630.xsd#AcquisitionsFairValueofConsiderationTransferredDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/AcquisitionsFairValueofConsiderationTransferredDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_af0064d9-997f-44d6-842d-ce6a3f1fda12" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_50f2caa8-d53c-4774-89be-1ae2e5ffd29a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_af0064d9-997f-44d6-842d-ce6a3f1fda12" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_50f2caa8-d53c-4774-89be-1ae2e5ffd29a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_e539e775-503a-4111-b464-e30cdbd57173" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_af0064d9-997f-44d6-842d-ce6a3f1fda12" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable_e539e775-503a-4111-b464-e30cdbd57173" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_BusinessCombinationContingentConsiderationAssets_b198a6f7-4ed9-42ab-a17d-368cbbf4f394" xlink:href="afrm-20220630.xsd#afrm_BusinessCombinationContingentConsiderationAssets"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferred1_af0064d9-997f-44d6-842d-ce6a3f1fda12" xlink:to="loc_afrm_BusinessCombinationContingentConsiderationAssets_b198a6f7-4ed9-42ab-a17d-368cbbf4f394" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred_0483a092-44f0-46fd-89d0-763ad859919d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationConsiderationTransferred1_af0064d9-997f-44d6-842d-ce6a3f1fda12" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred_0483a092-44f0-46fd-89d0-763ad859919d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/AcquisitionsAllocationofConsiderationPaidtoFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails" xlink:type="simple" xlink:href="afrm-20220630.xsd#AcquisitionsAllocationofConsiderationPaidtoFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/AcquisitionsAllocationofConsiderationPaidtoFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_6fa11e66-7287-4030-a431-8ad34fd9b0dc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_01f01e2f-e907-4d14-8b14-5bbb7d0c4b2d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_6fa11e66-7287-4030-a431-8ad34fd9b0dc" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_01f01e2f-e907-4d14-8b14-5bbb7d0c4b2d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedRestrictedCash_142b1a3f-b527-4097-ad30-c620694d3701" xlink:href="afrm-20220630.xsd#afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedRestrictedCash"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_6fa11e66-7287-4030-a431-8ad34fd9b0dc" xlink:to="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedRestrictedCash_142b1a3f-b527-4097-ad30-c620694d3701" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancingReceivableBeforeAllowanceForCreditLoss_2a648cbc-2a30-492a-b4e1-409642cdf342" xlink:href="afrm-20220630.xsd#afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancingReceivableBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_6fa11e66-7287-4030-a431-8ad34fd9b0dc" xlink:to="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancingReceivableBeforeAllowanceForCreditLoss_2a648cbc-2a30-492a-b4e1-409642cdf342" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccountsReceivables_45a3c352-44b7-44f7-8af7-9c92abd9183a" xlink:href="afrm-20220630.xsd#afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccountsReceivables"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_6fa11e66-7287-4030-a431-8ad34fd9b0dc" xlink:to="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccountsReceivables_45a3c352-44b7-44f7-8af7-9c92abd9183a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_4468767f-7e0f-4448-9658-f2ac2920e39b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_6fa11e66-7287-4030-a431-8ad34fd9b0dc" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_4468767f-7e0f-4448-9658-f2ac2920e39b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_6bc8dd70-f4c0-49e7-b5e7-7a246e11b530" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_6fa11e66-7287-4030-a431-8ad34fd9b0dc" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_6bc8dd70-f4c0-49e7-b5e7-7a246e11b530" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets_17ba9ed2-e6b3-4ae0-bdca-3c53c1ecf9ce" xlink:href="afrm-20220630.xsd#afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_6fa11e66-7287-4030-a431-8ad34fd9b0dc" xlink:to="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets_17ba9ed2-e6b3-4ae0-bdca-3c53c1ecf9ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_70290a94-7a1c-4293-858e-57f53da8787b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_5fceaa93-504e-479a-9a9e-a0ca8568220d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_70290a94-7a1c-4293-858e-57f53da8787b" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_5fceaa93-504e-479a-9a9e-a0ca8568220d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_8177a303-393b-4369-a61d-ba8a30ee1400" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_70290a94-7a1c-4293-858e-57f53da8787b" xlink:to="loc_us-gaap_Goodwill_8177a303-393b-4369-a61d-ba8a30ee1400" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_763af65c-fb1b-453d-94c7-ed11b4fbc9e0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccountsPayable_3b550432-80d3-4751-b482-1ec85e5fb029" xlink:href="afrm-20220630.xsd#afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccountsPayable"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_763af65c-fb1b-453d-94c7-ed11b4fbc9e0" xlink:to="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccountsPayable_3b550432-80d3-4751-b482-1ec85e5fb029" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedInterest_f3308e68-479c-42e4-bbbc-b07c9446871d" xlink:href="afrm-20220630.xsd#afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_763af65c-fb1b-453d-94c7-ed11b4fbc9e0" xlink:to="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedInterest_f3308e68-479c-42e4-bbbc-b07c9446871d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedLiabilitiesAndOtherLiabilities_7ec50135-ad16-40af-bb0a-82f88538c1a4" xlink:href="afrm-20220630.xsd#afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedLiabilitiesAndOtherLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_763af65c-fb1b-453d-94c7-ed11b4fbc9e0" xlink:to="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedLiabilitiesAndOtherLiabilities_7ec50135-ad16-40af-bb0a-82f88538c1a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedSecuredDebt_062df5c4-4c84-4f58-a680-c20e4f371858" xlink:href="afrm-20220630.xsd#afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedSecuredDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_763af65c-fb1b-453d-94c7-ed11b4fbc9e0" xlink:to="loc_afrm_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedSecuredDebt_062df5c4-4c84-4f58-a680-c20e4f371858" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_3fc61a55-7492-4c5e-a48b-e96eb2e05c0c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_483236d5-9aed-406d-98d4-818d29acc06e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_3fc61a55-7492-4c5e-a48b-e96eb2e05c0c" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_483236d5-9aed-406d-98d4-818d29acc06e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_7315b01e-029f-4790-a27a-14168e4882da" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_3fc61a55-7492-4c5e-a48b-e96eb2e05c0c" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities_7315b01e-029f-4790-a27a-14168e4882da" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsPropertyEquipmentandSoftwareDetails" xlink:type="simple" xlink:href="afrm-20220630.xsd#BalanceSheetComponentsPropertyEquipmentandSoftwareDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsPropertyEquipmentandSoftwareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_6af3f537-bae4-40be-9be9-006afa22b24a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_001433bb-0e39-4455-ab51-ffb471041f21" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_6af3f537-bae4-40be-9be9-006afa22b24a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_001433bb-0e39-4455-ab51-ffb471041f21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_e357e4a2-75a4-4e3b-8883-f990612672d1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_6af3f537-bae4-40be-9be9-006afa22b24a" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_e357e4a2-75a4-4e3b-8883-f990612672d1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsIntangibleAssetsDetails" xlink:type="simple" xlink:href="afrm-20220630.xsd#BalanceSheetComponentsIntangibleAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_bec99e50-e885-449e-99f1-2689b25cfd4d" xlink:href="afrm-20220630.xsd#afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_c9cc58f8-4429-4d41-b398-d4488698c30e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_bec99e50-e885-449e-99f1-2689b25cfd4d" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_c9cc58f8-4429-4d41-b398-d4488698c30e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_e696a544-bd7b-490e-a311-231ac0300067" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_bec99e50-e885-449e-99f1-2689b25cfd4d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_e696a544-bd7b-490e-a311-231ac0300067" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_50eb7c54-e91a-4b7d-bed2-397ad3427089" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_3448d6d4-7341-43b1-aa4e-25bb7ea95265" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_50eb7c54-e91a-4b7d-bed2-397ad3427089" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_3448d6d4-7341-43b1-aa4e-25bb7ea95265" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_10ba3c10-339b-4bd3-85a4-e612eeaad9a5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_50eb7c54-e91a-4b7d-bed2-397ad3427089" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_10ba3c10-339b-4bd3-85a4-e612eeaad9a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_3459db6c-00e0-4fea-a75a-a2b413f92929" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_5cdd4e37-a294-451b-b11f-2eb3d651790e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_3459db6c-00e0-4fea-a75a-a2b413f92929" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_5cdd4e37-a294-451b-b11f-2eb3d651790e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_5fb260a4-7d7c-4a17-9063-097218fcddd4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_3459db6c-00e0-4fea-a75a-a2b413f92929" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_5fb260a4-7d7c-4a17-9063-097218fcddd4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsIntangibleAssetsDetails_1" xlink:type="simple" xlink:href="afrm-20220630.xsd#BalanceSheetComponentsIntangibleAssetsDetails_1"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsIntangibleAssetsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_f8a9eceb-6d38-42e0-a5df-1ddbe27141cf" xlink:href="afrm-20220630.xsd#afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_b58d9646-62a4-4dcc-a050-32f60f4713a0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_f8a9eceb-6d38-42e0-a5df-1ddbe27141cf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_b58d9646-62a4-4dcc-a050-32f60f4713a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_ee0cdc8a-16bc-4979-a079-5fc3cc34889a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_f8a9eceb-6d38-42e0-a5df-1ddbe27141cf" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_ee0cdc8a-16bc-4979-a079-5fc3cc34889a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsExpectedFutureAmortizationExpenseDetails" xlink:type="simple" xlink:href="afrm-20220630.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_040fd883-c3a2-4e38-b41e-d34f601c190c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_c414dcea-d44e-426e-878c-87ae7176c878" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_040fd883-c3a2-4e38-b41e-d34f601c190c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_c414dcea-d44e-426e-878c-87ae7176c878" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_79165b66-67a5-4e55-a40a-fb0d01907825" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_040fd883-c3a2-4e38-b41e-d34f601c190c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_79165b66-67a5-4e55-a40a-fb0d01907825" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_4026f279-90e7-495e-94d9-0b22ddbc8423" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_040fd883-c3a2-4e38-b41e-d34f601c190c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_4026f279-90e7-495e-94d9-0b22ddbc8423" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_1ebfe006-c013-403d-ae61-72bee1a71547" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_040fd883-c3a2-4e38-b41e-d34f601c190c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_1ebfe006-c013-403d-ae61-72bee1a71547" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour_6d410ed4-60b2-4bb2-b742-8df7f4e82a80" xlink:href="afrm-20220630.xsd#afrm_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_040fd883-c3a2-4e38-b41e-d34f601c190c" xlink:to="loc_afrm_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearFour_6d410ed4-60b2-4bb2-b742-8df7f4e82a80" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsOtherAssetsDetails" xlink:type="simple" xlink:href="afrm-20220630.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_89af1102-085a-4fe0-a379-0aa848e0d499" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_43772433-c153-419b-95aa-b6b609be11c4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_89af1102-085a-4fe0-a379-0aa848e0d499" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_43772433-c153-419b-95aa-b6b609be11c4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_1b5d0086-80a2-4603-badc-619fbf75d6eb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_89af1102-085a-4fe0-a379-0aa848e0d499" xlink:to="loc_us-gaap_DerivativeAssets_1b5d0086-80a2-4603-badc-619fbf75d6eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidTaxes_b3dc5a40-df19-40e5-b110-2e5bf0507c7b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PrepaidTaxes"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_89af1102-085a-4fe0-a379-0aa848e0d499" xlink:to="loc_us-gaap_PrepaidTaxes_b3dc5a40-df19-40e5-b110-2e5bf0507c7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HeldToMaturitySecurities_0f1a0792-a9e5-4420-bb47-005ace457be6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_89af1102-085a-4fe0-a379-0aa848e0d499" xlink:to="loc_us-gaap_HeldToMaturitySecurities_0f1a0792-a9e5-4420-bb47-005ace457be6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_2f65451c-d9c7-4e2f-8c39-acef9dea01a5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PrepaidExpenseCurrentAndNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_89af1102-085a-4fe0-a379-0aa848e0d499" xlink:to="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_2f65451c-d9c7-4e2f-8c39-acef9dea01a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CashDepositsProcessingReserves_facfe6ac-0a8b-4e06-8df1-f1c74a6b5525" xlink:href="afrm-20220630.xsd#afrm_CashDepositsProcessingReserves"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_89af1102-085a-4fe0-a379-0aa848e0d499" xlink:to="loc_afrm_CashDepositsProcessingReserves_facfe6ac-0a8b-4e06-8df1-f1c74a6b5525" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivables_ac027a36-89f8-48fa-b590-684ea388f586" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherReceivables"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_89af1102-085a-4fe0-a379-0aa848e0d499" xlink:to="loc_us-gaap_OtherReceivables_ac027a36-89f8-48fa-b590-684ea388f586" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneous_6e020826-b8c1-4a11-8c5a-19518fd286d7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsMiscellaneous"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_89af1102-085a-4fe0-a379-0aa848e0d499" xlink:to="loc_us-gaap_OtherAssetsMiscellaneous_6e020826-b8c1-4a11-8c5a-19518fd286d7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsAccruedExpensesandOtherLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20220630.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_b6b29b43-f412-4d77-82d5-67b0dd34b162" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedLiabilitiesAndOtherLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_825f87f1-4142-41c6-a8a9-377e8492f02c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_b6b29b43-f412-4d77-82d5-67b0dd34b162" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_825f87f1-4142-41c6-a8a9-377e8492f02c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_0c1492ba-69df-4c45-a8e9-f846040a449a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_b6b29b43-f412-4d77-82d5-67b0dd34b162" xlink:to="loc_us-gaap_OperatingLeaseLiability_0c1492ba-69df-4c45-a8e9-f846040a449a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DerivativeInstrumentsCollateralHeld_d69d9549-ae9d-4c1e-908a-dca71bc21474" xlink:href="afrm-20220630.xsd#afrm_DerivativeInstrumentsCollateralHeld"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_b6b29b43-f412-4d77-82d5-67b0dd34b162" xlink:to="loc_afrm_DerivativeInstrumentsCollateralHeld_d69d9549-ae9d-4c1e-908a-dca71bc21474" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_759659e9-24e1-4a74-ac1a-a7fcee82ebef" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedLiabilitiesCurrentAndNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_b6b29b43-f412-4d77-82d5-67b0dd34b162" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_759659e9-24e1-4a74-ac1a-a7fcee82ebef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementLiability_2c17e7e7-480f-4f33-9255-634a570279c9" xlink:href="afrm-20220630.xsd#afrm_CommercialAgreementLiability"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_b6b29b43-f412-4d77-82d5-67b0dd34b162" xlink:to="loc_afrm_CommercialAgreementLiability_2c17e7e7-480f-4f33-9255-634a570279c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_b9b036d1-1470-4232-bcb8-3f5d89979325" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_b6b29b43-f412-4d77-82d5-67b0dd34b162" xlink:to="loc_us-gaap_OtherLiabilities_b9b036d1-1470-4232-bcb8-3f5d89979325" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LeasesMaturitiesofLeaseLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20220630.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_aeb2b5ad-0ad1-4fdb-9efd-c8d8a2f753e9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_957c8f50-0e61-4aa6-b601-6119aa06040a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_aeb2b5ad-0ad1-4fdb-9efd-c8d8a2f753e9" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_957c8f50-0e61-4aa6-b601-6119aa06040a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_f2895a0c-6c39-4e51-897a-8d36b7ce74e5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_aeb2b5ad-0ad1-4fdb-9efd-c8d8a2f753e9" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_f2895a0c-6c39-4e51-897a-8d36b7ce74e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_75c8f015-b36e-430a-8683-3ab46dfcaff6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_aeb2b5ad-0ad1-4fdb-9efd-c8d8a2f753e9" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_75c8f015-b36e-430a-8683-3ab46dfcaff6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_0c37fb02-2c85-4023-9fbe-dcbaa423e7db" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_aeb2b5ad-0ad1-4fdb-9efd-c8d8a2f753e9" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_0c37fb02-2c85-4023-9fbe-dcbaa423e7db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_fa00a570-3d25-412e-ac7b-fef5e5acfa92" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_aeb2b5ad-0ad1-4fdb-9efd-c8d8a2f753e9" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_fa00a570-3d25-412e-ac7b-fef5e5acfa92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_7cd372f8-e1b2-46ef-b6f6-7d23eb8ac42f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_aeb2b5ad-0ad1-4fdb-9efd-c8d8a2f753e9" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_7cd372f8-e1b2-46ef-b6f6-7d23eb8ac42f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LeasesMaturitiesofLeaseLiabilitiesDetails_1" xlink:type="simple" xlink:href="afrm-20220630.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_23595fc3-161a-4ae7-968d-fa07936a9af8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_ff404bc9-1bb5-49e9-b946-8c60089d428e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_23595fc3-161a-4ae7-968d-fa07936a9af8" xlink:to="loc_us-gaap_OperatingLeaseLiability_ff404bc9-1bb5-49e9-b946-8c60089d428e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_84808f86-bc13-48c5-ac7f-940c8b254923" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_23595fc3-161a-4ae7-968d-fa07936a9af8" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_84808f86-bc13-48c5-ac7f-940c8b254923" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DebtAggregateFutureMaturitiesofFundingDebtDetails" xlink:type="simple" xlink:href="afrm-20220630.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_498d9213-7d21-4b7e-99b1-b27def3dad23" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_6a913b50-025b-41f8-90c2-38d654367c5e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_498d9213-7d21-4b7e-99b1-b27def3dad23" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_6a913b50-025b-41f8-90c2-38d654367c5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_420faceb-7198-4928-9a6c-0096cc5dc77f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_498d9213-7d21-4b7e-99b1-b27def3dad23" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_420faceb-7198-4928-9a6c-0096cc5dc77f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_c6ca608a-731a-430b-a8c2-aeb7e52bc627" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_498d9213-7d21-4b7e-99b1-b27def3dad23" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_c6ca608a-731a-430b-a8c2-aeb7e52bc627" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_cdfaad37-939a-45bc-945e-f4124831fc9d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_498d9213-7d21-4b7e-99b1-b27def3dad23" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_cdfaad37-939a-45bc-945e-f4124831fc9d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_af5ffd89-05d2-44ba-bc52-e4c24bbe511f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_498d9213-7d21-4b7e-99b1-b27def3dad23" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_af5ffd89-05d2-44ba-bc52-e4c24bbe511f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_f656d9cc-5cdf-4536-8f8c-e28e0cb140e0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_498d9213-7d21-4b7e-99b1-b27def3dad23" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_f656d9cc-5cdf-4536-8f8c-e28e0cb140e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_d6ecde58-c9c4-414f-bbfb-df81919876ab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_efb23acb-8813-46ec-b640-a91843137763" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_d6ecde58-c9c4-414f-bbfb-df81919876ab" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_efb23acb-8813-46ec-b640-a91843137763" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_ac16ee28-3ee1-48e5-a479-a5b21081cec3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_d6ecde58-c9c4-414f-bbfb-df81919876ab" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_ac16ee28-3ee1-48e5-a479-a5b21081cec3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DebtConvertibleNotesOutstandingDetails" xlink:type="simple" xlink:href="afrm-20220630.xsd#DebtConvertibleNotesOutstandingDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/DebtConvertibleNotesOutstandingDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_a349c5d9-5db4-4795-8d02-6ac204d9af33" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_e59ffd16-d832-4692-8af8-49fff5a7bd8c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_a349c5d9-5db4-4795-8d02-6ac204d9af33" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_e59ffd16-d832-4692-8af8-49fff5a7bd8c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_591eb9d2-d2b1-4da5-9862-ef7e1ef480e8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_a349c5d9-5db4-4795-8d02-6ac204d9af33" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_591eb9d2-d2b1-4da5-9862-ef7e1ef480e8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/InvestmentsAvailableforSaleSecuritieswithUnrealizedLossesDetails" xlink:type="simple" xlink:href="afrm-20220630.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_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_8109b0c7-5e35-42d8-befc-dd0009430f72" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_8fd03521-23e4-40d2-ab79-961944254643" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_8109b0c7-5e35-42d8-befc-dd0009430f72" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_8fd03521-23e4-40d2-ab79-961944254643" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_123cf440-1e9e-4941-ae32-4820203fa374" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_8109b0c7-5e35-42d8-befc-dd0009430f72" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_123cf440-1e9e-4941-ae32-4820203fa374" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_86f493c5-a330-4ade-9c93-4951db640124" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_d4013948-0638-45a1-801d-8d77cd1afadc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_86f493c5-a330-4ade-9c93-4951db640124" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_d4013948-0638-45a1-801d-8d77cd1afadc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_8176fafe-f24e-448d-aad2-ed79d743177c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_86f493c5-a330-4ade-9c93-4951db640124" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_8176fafe-f24e-448d-aad2-ed79d743177c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/InvestmentsLengthofContractualMaturitiesDetails" xlink:type="simple" xlink:href="afrm-20220630.xsd#InvestmentsLengthofContractualMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/InvestmentsLengthofContractualMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance_c8e4c444-37d7-49ef-9122-d2d7e3fc885e" xlink:href="afrm-20220630.xsd#afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_e5291019-77f0-4540-b3c2-99199dac82cd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance_c8e4c444-37d7-49ef-9122-d2d7e3fc885e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_e5291019-77f0-4540-b3c2-99199dac82cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_3809264a-bc5b-40a9-8ca7-79fe10b82811" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance_c8e4c444-37d7-49ef-9122-d2d7e3fc885e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_3809264a-bc5b-40a9-8ca7-79fe10b82811" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualTrustCertificatesAssetFairValueDisclosure_a4006a26-3982-414d-94a5-88de505a7da4" xlink:href="afrm-20220630.xsd#afrm_ResidualTrustCertificatesAssetFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_09cad72b-4ac1-4296-b109-765174ac1b85" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_ResidualTrustCertificatesAssetFairValueDisclosure_a4006a26-3982-414d-94a5-88de505a7da4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_09cad72b-4ac1-4296-b109-765174ac1b85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_0072afe1-d3d0-414a-84c7-3ee811229f01" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_ResidualTrustCertificatesAssetFairValueDisclosure_a4006a26-3982-414d-94a5-88de505a7da4" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_0072afe1-d3d0-414a-84c7-3ee811229f01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_357e13ee-cb40-4bd4-862e-e288559a58f6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_43b19dd2-c830-449b-8ff2-690f1e0dc91b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_357e13ee-cb40-4bd4-862e-e288559a58f6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_43b19dd2-c830-449b-8ff2-690f1e0dc91b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_5240829b-87b0-47a6-9b5c-9dc1749f5f95" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_357e13ee-cb40-4bd4-862e-e288559a58f6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_5240829b-87b0-47a6-9b5c-9dc1749f5f95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_3b9fd96b-7afc-4398-b6c0-6f81c4271bd0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_f2479aa0-791a-43a9-9af9-d97ba9684dec" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_3b9fd96b-7afc-4398-b6c0-6f81c4271bd0" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_f2479aa0-791a-43a9-9af9-d97ba9684dec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_f9078e9c-dacd-4e89-94b1-63c95db3e676" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_3b9fd96b-7afc-4398-b6c0-6f81c4271bd0" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_f9078e9c-dacd-4e89-94b1-63c95db3e676" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="simple" xlink:href="afrm-20220630.xsd#FairValueofFinancialAssetsandLiabilitiesAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_5c724190-42c9-4e1a-93b5-c270582451c0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_c5389794-1c70-4884-ba9f-4fdd78fc5875" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_5c724190-42c9-4e1a-93b5-c270582451c0" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_c5389794-1c70-4884-ba9f-4fdd78fc5875" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RestrictedCashFairValueDisclosure_0f8591a3-b5f6-4e03-8bac-a9ca7f2d34ec" xlink:href="afrm-20220630.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_5c724190-42c9-4e1a-93b5-c270582451c0" xlink:to="loc_afrm_RestrictedCashFairValueDisclosure_0f8591a3-b5f6-4e03-8bac-a9ca7f2d34ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualTrustCertificatesAssetFairValueDisclosure_8af7c7df-988a-4cb9-8841-b9b8440a7d6d" xlink:href="afrm-20220630.xsd#afrm_ResidualTrustCertificatesAssetFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_5c724190-42c9-4e1a-93b5-c270582451c0" xlink:to="loc_afrm_ResidualTrustCertificatesAssetFairValueDisclosure_8af7c7df-988a-4cb9-8841-b9b8440a7d6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtSecuritiesAvailableForSaleFairValueDisclosure_d630ac24-3b9e-43b7-ac4d-2448cc0ee7eb" xlink:href="afrm-20220630.xsd#afrm_DebtSecuritiesAvailableForSaleFairValueDisclosure"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_5c724190-42c9-4e1a-93b5-c270582451c0" xlink:to="loc_afrm_DebtSecuritiesAvailableForSaleFairValueDisclosure_d630ac24-3b9e-43b7-ac4d-2448cc0ee7eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAsset_4febe773-6c71-4bdd-82c9-9b77f24f8e17" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ServicingAsset"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_5c724190-42c9-4e1a-93b5-c270582451c0" xlink:to="loc_us-gaap_ServicingAsset_4febe773-6c71-4bdd-82c9-9b77f24f8e17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_7557e263-90fb-4964-8ccf-181546a2834d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_5c724190-42c9-4e1a-93b5-c270582451c0" xlink:to="loc_us-gaap_DerivativeAssets_7557e263-90fb-4964-8ccf-181546a2834d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_ad5371bd-d57d-464e-8534-a050cb24bd22" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingLiabilityAtFairValueAmount_5552eb06-a4f1-49a4-862a-5baedc2f8cf1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ServicingLiabilityAtFairValueAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_ad5371bd-d57d-464e-8534-a050cb24bd22" xlink:to="loc_us-gaap_ServicingLiabilityAtFairValueAmount_5552eb06-a4f1-49a4-862a-5baedc2f8cf1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PerformanceFeeLiabilityFairValueDisclosure_176577e5-7cca-4f14-bb6d-04ddb74716c5" xlink:href="afrm-20220630.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_ad5371bd-d57d-464e-8534-a050cb24bd22" xlink:to="loc_afrm_PerformanceFeeLiabilityFairValueDisclosure_176577e5-7cca-4f14-bb6d-04ddb74716c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualTrustCertificatesFairValueDisclosure_a5088774-b17d-43fb-af5e-c579c2f16c26" xlink:href="afrm-20220630.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_ad5371bd-d57d-464e-8534-a050cb24bd22" xlink:to="loc_afrm_ResidualTrustCertificatesFairValueDisclosure_a5088774-b17d-43fb-af5e-c579c2f16c26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_246d9d7e-fbbb-47a0-b8ba-d151acab17ee" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_ad5371bd-d57d-464e-8534-a050cb24bd22" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_246d9d7e-fbbb-47a0-b8ba-d151acab17ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure_54790131-a673-46d7-aba8-1b8ab68b5adc" xlink:href="afrm-20220630.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_ad5371bd-d57d-464e-8534-a050cb24bd22" xlink:to="loc_afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure_54790131-a673-46d7-aba8-1b8ab68b5adc" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFinancialAssetsandLiabilitiesNotRecordedatFairValueDetails" xlink:type="simple" xlink:href="afrm-20220630.xsd#FairValueofFinancialAssetsandLiabilitiesFinancialAssetsandLiabilitiesNotRecordedatFairValueDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesFinancialAssetsandLiabilitiesNotRecordedatFairValueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_864c6146-1146-49d9-8462-57a990e6f1c9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccruedLiabilitiesAndOtherLiabilitiesFairValueDisclosure_a4fc174b-5e24-400e-8e91-62ddc76a873d" xlink:href="afrm-20220630.xsd#afrm_AccruedLiabilitiesAndOtherLiabilitiesFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_864c6146-1146-49d9-8462-57a990e6f1c9" xlink:to="loc_afrm_AccruedLiabilitiesAndOtherLiabilitiesFairValueDisclosure_a4fc174b-5e24-400e-8e91-62ddc76a873d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtFairValueDisclosures_2f986bd0-b070-4c11-a504-189205cd6352" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConvertibleDebtFairValueDisclosures"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_864c6146-1146-49d9-8462-57a990e6f1c9" xlink:to="loc_us-gaap_ConvertibleDebtFairValueDisclosures_2f986bd0-b070-4c11-a504-189205cd6352" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesPayableFairValueDisclosure_196acd3f-751f-4b79-80b7-ee5c035af1b5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NotesPayableFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_864c6146-1146-49d9-8462-57a990e6f1c9" xlink:to="loc_us-gaap_NotesPayableFairValueDisclosure_196acd3f-751f-4b79-80b7-ee5c035af1b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LinesOfCreditFairValueDisclosure_1d6d59f9-3cf7-4d1a-b734-82bd6961c158" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LinesOfCreditFairValueDisclosure"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_864c6146-1146-49d9-8462-57a990e6f1c9" xlink:to="loc_us-gaap_LinesOfCreditFairValueDisclosure_1d6d59f9-3cf7-4d1a-b734-82bd6961c158" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableFairValueDisclosure_ad09b855-fa16-41ee-bc8a-2fab40dbe96c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsPayableFairValueDisclosure"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_864c6146-1146-49d9-8462-57a990e6f1c9" xlink:to="loc_us-gaap_AccountsPayableFairValueDisclosure_ad09b855-fa16-41ee-bc8a-2fab40dbe96c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansPayableFairValueDisclosure_308eee0e-3b37-4354-b3d0-79887e78dfed" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LoansPayableFairValueDisclosure"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_864c6146-1146-49d9-8462-57a990e6f1c9" xlink:to="loc_us-gaap_LoansPayableFairValueDisclosure_308eee0e-3b37-4354-b3d0-79887e78dfed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_InterestPayableFairValueDisclosure_d3d4621f-99f1-4f1f-ba03-7bc43102833d" xlink:href="afrm-20220630.xsd#afrm_InterestPayableFairValueDisclosure"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_864c6146-1146-49d9-8462-57a990e6f1c9" xlink:to="loc_afrm_InterestPayableFairValueDisclosure_d3d4621f-99f1-4f1f-ba03-7bc43102833d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_d52f2cf8-4e73-49a0-a643-4aade59acdca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableHeldForSaleFairValueDisclosure_fe757e5d-796f-4fc1-9688-98db75e7f912" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivableHeldForSaleFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_d52f2cf8-4e73-49a0-a643-4aade59acdca" xlink:to="loc_afrm_FinancingReceivableHeldForSaleFairValueDisclosure_fe757e5d-796f-4fc1-9688-98db75e7f912" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableFairValueDisclosure_5b403c79-9d2b-4245-8fd4-a58a87222e31" xlink:href="afrm-20220630.xsd#afrm_FinancingReceivableFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_d52f2cf8-4e73-49a0-a643-4aade59acdca" xlink:to="loc_afrm_FinancingReceivableFairValueDisclosure_5b403c79-9d2b-4245-8fd4-a58a87222e31" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsFairValueDisclosure_6f282405-6559-4e69-b7cb-abaf79bb33bf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_d52f2cf8-4e73-49a0-a643-4aade59acdca" xlink:to="loc_us-gaap_OtherAssetsFairValueDisclosure_6f282405-6559-4e69-b7cb-abaf79bb33bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableFairValueDisclosure_e45caa2e-4f71-4f06-b28f-183cd245f64b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsReceivableFairValueDisclosure"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_d52f2cf8-4e73-49a0-a643-4aade59acdca" xlink:to="loc_us-gaap_AccountsReceivableFairValueDisclosure_e45caa2e-4f71-4f06-b28f-183cd245f64b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/EquityIncentivePlansComponentsandClassificationofStockbasedCompensationDetails" xlink:type="simple" xlink:href="afrm-20220630.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_26f428c5-f71e-46c7-82f7-ab636eeeacaf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_6bdc24a6-faef-4269-a9ed-d1a3bb272ce2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_26f428c5-f71e-46c7-82f7-ab636eeeacaf" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_6bdc24a6-faef-4269-a9ed-d1a3bb272ce2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_3bb9807c-2dcf-48e1-87b8-effb6102f3d3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_26f428c5-f71e-46c7-82f7-ab636eeeacaf" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_3bb9807c-2dcf-48e1-87b8-effb6102f3d3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/IncomeTaxesComponentsofIncomeLossbeforeIncomeTaxesDetails" xlink:type="simple" xlink:href="afrm-20220630.xsd#IncomeTaxesComponentsofIncomeLossbeforeIncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/IncomeTaxesComponentsofIncomeLossbeforeIncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_bd772a41-fe6a-4019-bd74-76e9201ee008" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_ec2d5420-84ff-4780-b1ec-367873dc7bab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_bd772a41-fe6a-4019-bd74-76e9201ee008" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_ec2d5420-84ff-4780-b1ec-367873dc7bab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_897774b8-6109-457e-a193-5ca197b93198" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_bd772a41-fe6a-4019-bd74-76e9201ee008" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_897774b8-6109-457e-a193-5ca197b93198" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/IncomeTaxesScheduleofIncomeTaxExpenseBenefitDetails" xlink:type="simple" xlink:href="afrm-20220630.xsd#IncomeTaxesScheduleofIncomeTaxExpenseBenefitDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/IncomeTaxesScheduleofIncomeTaxExpenseBenefitDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_3c9d98d8-bbd0-405b-a0c5-4d82bccca1f5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_1af68372-04bd-4553-95ac-9241329bb1bd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_3c9d98d8-bbd0-405b-a0c5-4d82bccca1f5" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_1af68372-04bd-4553-95ac-9241329bb1bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_d7d62b2b-5b9a-4c0e-b0f0-5347da6bf561" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_3c9d98d8-bbd0-405b-a0c5-4d82bccca1f5" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_d7d62b2b-5b9a-4c0e-b0f0-5347da6bf561" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_41276b81-3deb-420d-ae08-3232f6d01bd7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_bbe5189e-86ca-4e1d-844d-e9d87a342fd9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CurrentForeignTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_41276b81-3deb-420d-ae08-3232f6d01bd7" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_bbe5189e-86ca-4e1d-844d-e9d87a342fd9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_1f2c9a2d-f7e7-4dc3-aed4-a06c9c7f50ca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_41276b81-3deb-420d-ae08-3232f6d01bd7" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_1f2c9a2d-f7e7-4dc3-aed4-a06c9c7f50ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_844c570e-a457-43fd-a33f-d519666e5fbc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_e1b134d2-dec7-4cc1-a442-ed9dc57692c3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_844c570e-a457-43fd-a33f-d519666e5fbc" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_e1b134d2-dec7-4cc1-a442-ed9dc57692c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_5ad19072-30cf-4e18-8142-427a015085a2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_844c570e-a457-43fd-a33f-d519666e5fbc" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_5ad19072-30cf-4e18-8142-427a015085a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_24422455-3971-4bc5-8951-eb3540573e87" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_844c570e-a457-43fd-a33f-d519666e5fbc" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_24422455-3971-4bc5-8951-eb3540573e87" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/IncomeTaxesEffectiveIncomeTaxRateReconciliationDetails" xlink:type="simple" xlink:href="afrm-20220630.xsd#IncomeTaxesEffectiveIncomeTaxRateReconciliationDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/IncomeTaxesEffectiveIncomeTaxRateReconciliationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_68d3b039-1d77-4dc8-bcf0-6f3c6c58bc84" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_018c409f-c806-4c89-a076-068a2521aec3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_68d3b039-1d77-4dc8-bcf0-6f3c6c58bc84" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_018c409f-c806-4c89-a076-068a2521aec3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_9032f6e0-f79c-4aee-a3d9-b1a10382eae5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_68d3b039-1d77-4dc8-bcf0-6f3c6c58bc84" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_9032f6e0-f79c-4aee-a3d9-b1a10382eae5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_a21ffa06-1858-46e0-ad68-cfe72348726f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_68d3b039-1d77-4dc8-bcf0-6f3c6c58bc84" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_a21ffa06-1858-46e0-ad68-cfe72348726f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_acead62c-b564-4917-a9af-5758f11b02a8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_68d3b039-1d77-4dc8-bcf0-6f3c6c58bc84" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_acead62c-b564-4917-a9af-5758f11b02a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxContingencies_305a4323-e855-4b85-93d1-1573b68fa904" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxContingencies"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_68d3b039-1d77-4dc8-bcf0-6f3c6c58bc84" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxContingencies_305a4323-e855-4b85-93d1-1573b68fa904" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_12bdbc13-5d8f-453b-8bcc-11969fec37eb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_68d3b039-1d77-4dc8-bcf0-6f3c6c58bc84" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_12bdbc13-5d8f-453b-8bcc-11969fec37eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_e3e2bc8f-f702-4df7-b421-85b1f3a56452" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_68d3b039-1d77-4dc8-bcf0-6f3c6c58bc84" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_e3e2bc8f-f702-4df7-b421-85b1f3a56452" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_EffectiveIncomeTaxRateReconciliationContingentConsiderationPercent_1b824f5f-c16c-4d79-9187-391a1a8ef11a" xlink:href="afrm-20220630.xsd#afrm_EffectiveIncomeTaxRateReconciliationContingentConsiderationPercent"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_68d3b039-1d77-4dc8-bcf0-6f3c6c58bc84" xlink:to="loc_afrm_EffectiveIncomeTaxRateReconciliationContingentConsiderationPercent_1b824f5f-c16c-4d79-9187-391a1a8ef11a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther_b8ec6fd0-7c6b-4e4b-90ca-61dbbd58729f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_68d3b039-1d77-4dc8-bcf0-6f3c6c58bc84" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther_b8ec6fd0-7c6b-4e4b-90ca-61dbbd58729f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent_e4aae29c-0edd-47cd-8ffa-2c57818ec8d2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_68d3b039-1d77-4dc8-bcf0-6f3c6c58bc84" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent_e4aae29c-0edd-47cd-8ffa-2c57818ec8d2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/IncomeTaxesScheduleofSignificantComponentsofDeferredTaxAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20220630.xsd#IncomeTaxesScheduleofSignificantComponentsofDeferredTaxAssetsandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/IncomeTaxesScheduleofSignificantComponentsofDeferredTaxAssetsandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_ba43a228-55d9-4b49-a53b-63bcf69029a0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_c9fbb27e-2e0c-4a5f-b324-26543f96da07" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwards"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ba43a228-55d9-4b49-a53b-63bcf69029a0" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_c9fbb27e-2e0c-4a5f-b324-26543f96da07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DeferredTaxAssetsDeferredLeaseLiability_51d33588-c935-4586-b164-6fa6d14a3825" xlink:href="afrm-20220630.xsd#afrm_DeferredTaxAssetsDeferredLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ba43a228-55d9-4b49-a53b-63bcf69029a0" xlink:to="loc_afrm_DeferredTaxAssetsDeferredLeaseLiability_51d33588-c935-4586-b164-6fa6d14a3825" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts_9ee49435-df90-4a2d-8784-1fdbc818921c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ba43a228-55d9-4b49-a53b-63bcf69029a0" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAllowanceForDoubtfulAccounts_9ee49435-df90-4a2d-8784-1fdbc818921c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_5b4d115d-8397-4199-a10e-f8f47e1055b6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsOther"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ba43a228-55d9-4b49-a53b-63bcf69029a0" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_5b4d115d-8397-4199-a10e-f8f47e1055b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_9f6bd7f9-ac89-4912-8540-1b15a4694866" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ba43a228-55d9-4b49-a53b-63bcf69029a0" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_9f6bd7f9-ac89-4912-8540-1b15a4694866" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_6172cf94-899f-4dab-ae6a-1f0a6f5007e5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_ba43a228-55d9-4b49-a53b-63bcf69029a0" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_6172cf94-899f-4dab-ae6a-1f0a6f5007e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_475375ab-bc80-420a-b12a-942dd2869a20" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_f937bddb-7144-40d6-98ce-894daa626387" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_475375ab-bc80-420a-b12a-942dd2869a20" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_f937bddb-7144-40d6-98ce-894daa626387" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_d63ea940-d872-4e24-b209-e7e888a22ef4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_475375ab-bc80-420a-b12a-942dd2869a20" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_d63ea940-d872-4e24-b209-e7e888a22ef4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_76ec03ff-569e-491f-850b-9c63e5a5398e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_475375ab-bc80-420a-b12a-942dd2869a20" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_76ec03ff-569e-491f-850b-9c63e5a5398e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_7b2e0427-8919-495b-8187-2c5637130b76" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets_251e1a07-e5a8-49e4-b7df-ade72087f151" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_7b2e0427-8919-495b-8187-2c5637130b76" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssets_251e1a07-e5a8-49e4-b7df-ade72087f151" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_ee831e3b-f42b-480d-8c44-dd8a21ea3d0d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxLiabilitiesOther"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_7b2e0427-8919-495b-8187-2c5637130b76" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_ee831e3b-f42b-480d-8c44-dd8a21ea3d0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware_35dd483d-c983-488a-be1d-7a3a8bf53ea8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_7b2e0427-8919-495b-8187-2c5637130b76" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedSoftware_35dd483d-c983-488a-be1d-7a3a8bf53ea8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_9de880e3-4046-4a54-839a-1fd571de4038" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxLiabilitiesLeasingArrangements"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_7b2e0427-8919-495b-8187-2c5637130b76" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_9de880e3-4046-4a54-839a-1fd571de4038" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DeferredTaxLiabilitiesStockWarrants_14a624ed-c59e-473e-9174-1695f69fae16" xlink:href="afrm-20220630.xsd#afrm_DeferredTaxLiabilitiesStockWarrants"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_7b2e0427-8919-495b-8187-2c5637130b76" xlink:to="loc_afrm_DeferredTaxLiabilitiesStockWarrants_14a624ed-c59e-473e-9174-1695f69fae16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_bbb903d2-8b6d-4167-a1e8-31fa8b013942" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_70fc8c12-c495-4240-850d-d943339b1329" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_bbb903d2-8b6d-4167-a1e8-31fa8b013942" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_70fc8c12-c495-4240-850d-d943339b1329" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_63315342-e147-47f1-a277-f6e4f814a47e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_bbb903d2-8b6d-4167-a1e8-31fa8b013942" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_63315342-e147-47f1-a277-f6e4f814a47e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_c278efaa-390a-466c-9ed0-e375b9bcc77f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_bbb903d2-8b6d-4167-a1e8-31fa8b013942" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_c278efaa-390a-466c-9ed0-e375b9bcc77f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/NetLossperShareAttributabletoCommonStockholdersBasicandDilutedNetLossPerShareDetails" xlink:type="simple" xlink:href="afrm-20220630.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_8de89b43-d8ce-426e-a8a3-b0c93e1cc411" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_c7bdf617-fd29-42e7-9781-f4e5dee0c251" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_8de89b43-d8ce-426e-a8a3-b0c93e1cc411" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_c7bdf617-fd29-42e7-9781-f4e5dee0c251" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities_e53d52bd-c9d7-4dda-8729-783a214de633" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_8de89b43-d8ce-426e-a8a3-b0c93e1cc411" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities_e53d52bd-c9d7-4dda-8729-783a214de633" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_fd868bbb-7021-4bd6-b113-75569cd17b15" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_83af9bec-d2c9-448b-841b-3362037579ce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_fd868bbb-7021-4bd6-b113-75569cd17b15" xlink:to="loc_us-gaap_NetIncomeLoss_83af9bec-d2c9-448b-841b-3362037579ce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_242c187a-6457-4fe6-91b7-aed6622bc72b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PreferredStockDividendsAndOtherAdjustments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_fd868bbb-7021-4bd6-b113-75569cd17b15" xlink:to="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_242c187a-6457-4fe6-91b7-aed6622bc72b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DilutiveSecuritiesEffectOnBasicEarningsPerShareOther_7a6359ff-3bd5-4646-b6cb-7a5da38c25f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DilutiveSecuritiesEffectOnBasicEarningsPerShareOther"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_fd868bbb-7021-4bd6-b113-75569cd17b15" xlink:to="loc_us-gaap_DilutiveSecuritiesEffectOnBasicEarningsPerShareOther_7a6359ff-3bd5-4646-b6cb-7a5da38c25f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestOnConvertibleDebtNetOfTax_06ba7906-974d-4131-ad4f-16bbad1fb506" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestOnConvertibleDebtNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_fd868bbb-7021-4bd6-b113-75569cd17b15" xlink:to="loc_us-gaap_InterestOnConvertibleDebtNetOfTax_06ba7906-974d-4131-ad4f-16bbad1fb506" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
