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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2025 Workiva-->
<!--r:fdad51dc-9fc9-4ff0-9863-3ebcbf15ca3f,g:80ab1b30-6e11-490b-a4a5-4c3f91f7120c-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="afrm-20250331.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_1c0b97e2-8ba5-48a2-ad8f-9c01b31acb3b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_2cb36ada-3c42-4670-a861-c26a323eaaea" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_1c0b97e2-8ba5-48a2-ad8f-9c01b31acb3b" xlink:to="loc_us-gaap_CommonStockValue_2cb36ada-3c42-4670-a861-c26a323eaaea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_875f84f2-8008-4bca-b79e-d9e75e9325d3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_1c0b97e2-8ba5-48a2-ad8f-9c01b31acb3b" xlink:to="loc_us-gaap_AdditionalPaidInCapital_875f84f2-8008-4bca-b79e-d9e75e9325d3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_ba13c644-f31b-4ae7-9165-dec3c240a6e6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_1c0b97e2-8ba5-48a2-ad8f-9c01b31acb3b" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_ba13c644-f31b-4ae7-9165-dec3c240a6e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_f7ef71d3-ef94-41ab-b853-b67157979773" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_1c0b97e2-8ba5-48a2-ad8f-9c01b31acb3b" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_f7ef71d3-ef94-41ab-b853-b67157979773" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_59e24034-c65d-49a6-acbb-7412f253a5fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_2e10fecf-7cd6-4a63-93a8-f50fc3f19d32" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_59e24034-c65d-49a6-acbb-7412f253a5fd" xlink:to="loc_us-gaap_Liabilities_2e10fecf-7cd6-4a63-93a8-f50fc3f19d32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_4ca1984b-c69d-4879-a4ea-7807c94a3693" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_59e24034-c65d-49a6-acbb-7412f253a5fd" xlink:to="loc_us-gaap_CommitmentsAndContingencies_4ca1984b-c69d-4879-a4ea-7807c94a3693" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_feb548fb-1d7f-48fa-950e-ed3c0977fa20" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_59e24034-c65d-49a6-acbb-7412f253a5fd" xlink:to="loc_us-gaap_StockholdersEquity_feb548fb-1d7f-48fa-950e-ed3c0977fa20" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_6750613f-92f6-483b-9440-62375843de7d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_c358ab3c-5105-4552-b661-2c20541408fa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_6750613f-92f6-483b-9440-62375843de7d" xlink:to="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_c358ab3c-5105-4552-b661-2c20541408fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ThirdPartyLoanOwnerPayable_9f91021a-40d6-4692-b91e-3159195007d8" xlink:href="afrm-20250331.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_6750613f-92f6-483b-9440-62375843de7d" xlink:to="loc_afrm_ThirdPartyLoanOwnerPayable_9f91021a-40d6-4692-b91e-3159195007d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_5a82814f-a666-483c-809b-4c2e8925ae3b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_6750613f-92f6-483b-9440-62375843de7d" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_5a82814f-a666-483c-809b-4c2e8925ae3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_62023ac2-ab6d-486c-b5e0-6d9c1d73dcd1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_6750613f-92f6-483b-9440-62375843de7d" xlink:to="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_62023ac2-ab6d-486c-b5e0-6d9c1d73dcd1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebt_7cfd59a2-b1db-43f7-b0ce-a8892e904fd4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_6750613f-92f6-483b-9440-62375843de7d" xlink:to="loc_us-gaap_ConvertibleDebt_7cfd59a2-b1db-43f7-b0ce-a8892e904fd4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebt_782754b2-3866-40af-96d5-76fbe9a95707" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_6750613f-92f6-483b-9440-62375843de7d" xlink:to="loc_us-gaap_SecuredDebt_782754b2-3866-40af-96d5-76fbe9a95707" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_5965d587-785b-4a6a-a016-f88cc2897c54" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_6750613f-92f6-483b-9440-62375843de7d" xlink:to="loc_us-gaap_LineOfCredit_5965d587-785b-4a6a-a016-f88cc2897c54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_5fb86079-3d75-4881-906d-bcc1c0f881f3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NotesReceivableNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_73a4766f-7f5a-4475-8619-3b6ee659c874" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableAllowanceForCreditLosses"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableNet_5fb86079-3d75-4881-906d-bcc1c0f881f3" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_73a4766f-7f5a-4475-8619-3b6ee659c874" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableGross_6de5ceda-056e-42ce-80a7-3feb23f9ba71" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NotesReceivableGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableNet_5fb86079-3d75-4881-906d-bcc1c0f881f3" xlink:to="loc_us-gaap_NotesReceivableGross_6de5ceda-056e-42ce-80a7-3feb23f9ba71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_8691f57c-4ae9-48a5-ba62-ecac208e3a44" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNet_f697d90b-66b7-4577-a295-a562c04dfb5c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsReceivableNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8691f57c-4ae9-48a5-ba62-ecac208e3a44" xlink:to="loc_us-gaap_AccountsReceivableNet_f697d90b-66b7-4577-a295-a562c04dfb5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableHeldForSaleAmount_0ed0b412-d3e6-4c1d-97d2-dd8c650c2bbb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoansReceivableHeldForSaleAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8691f57c-4ae9-48a5-ba62-ecac208e3a44" xlink:to="loc_us-gaap_LoansReceivableHeldForSaleAmount_0ed0b412-d3e6-4c1d-97d2-dd8c650c2bbb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_03ed5085-54ee-4b1a-a764-bf0f93f7b029" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8691f57c-4ae9-48a5-ba62-ecac208e3a44" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_03ed5085-54ee-4b1a-a764-bf0f93f7b029" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_86300dfc-5cce-4c4a-93a3-7b15cbe00e66" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8691f57c-4ae9-48a5-ba62-ecac208e3a44" xlink:to="loc_us-gaap_OtherAssets_86300dfc-5cce-4c4a-93a3-7b15cbe00e66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_c547eab3-5c94-44d2-8c14-32b214d22f24" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8691f57c-4ae9-48a5-ba62-ecac208e3a44" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_c547eab3-5c94-44d2-8c14-32b214d22f24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_e6976224-93f1-424a-8f7a-f4ae978d6ecc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NotesReceivableNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8691f57c-4ae9-48a5-ba62-ecac208e3a44" xlink:to="loc_us-gaap_NotesReceivableNet_e6976224-93f1-424a-8f7a-f4ae978d6ecc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_45b9eae7-488e-4cb7-baa7-bea8c2f3f007" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_8691f57c-4ae9-48a5-ba62-ecac208e3a44" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_45b9eae7-488e-4cb7-baa7-bea8c2f3f007" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAssetNet_fff265b7-44fa-44a6-9705-1f20f6e2de82" xlink:href="afrm-20250331.xsd#afrm_CommercialAgreementAssetNet"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8691f57c-4ae9-48a5-ba62-ecac208e3a44" xlink:to="loc_afrm_CommercialAgreementAssetNet_fff265b7-44fa-44a6-9705-1f20f6e2de82" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInvestments_222da58b-c329-4054-b23d-5cb784ffaf4a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherInvestments"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8691f57c-4ae9-48a5-ba62-ecac208e3a44" xlink:to="loc_us-gaap_OtherInvestments_222da58b-c329-4054-b23d-5cb784ffaf4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_5bde2d34-a3af-4158-b715-0b992539ab24" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedCash"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8691f57c-4ae9-48a5-ba62-ecac208e3a44" xlink:to="loc_us-gaap_RestrictedCash_5bde2d34-a3af-4158-b715-0b992539ab24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_e2d59552-1e9d-4ed5-b382-fe8afa6e9798" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_8691f57c-4ae9-48a5-ba62-ecac208e3a44" xlink:to="loc_us-gaap_Goodwill_e2d59552-1e9d-4ed5-b382-fe8afa6e9798" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsNet_9a9ed0b7-c25b-46d2-ae0a-41b2e63e2da8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_7d9cd8f4-e701-478b-8f12-1a6873d1a680" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_9a9ed0b7-c25b-46d2-ae0a-41b2e63e2da8" xlink:to="loc_us-gaap_Assets_7d9cd8f4-e701-478b-8f12-1a6873d1a680" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_12985561-bc40-4609-bb97-9aa6f54fe9e5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_9a9ed0b7-c25b-46d2-ae0a-41b2e63e2da8" xlink:to="loc_us-gaap_Liabilities_12985561-bc40-4609-bb97-9aa6f54fe9e5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOMELOSS" xlink:type="simple" xlink:href="afrm-20250331.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOMELOSS"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOMELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_fbf71b48-379a-4c6b-8a54-960864865a09" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_01101dad-b6e0-40df-a1ef-61a7d97dd70d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_fbf71b48-379a-4c6b-8a54-960864865a09" xlink:to="loc_us-gaap_OperatingIncomeLoss_01101dad-b6e0-40df-a1ef-61a7d97dd70d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_99895c6e-23b4-4af9-a21a-bcd30ac59501" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_fbf71b48-379a-4c6b-8a54-960864865a09" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_99895c6e-23b4-4af9-a21a-bcd30ac59501" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_b99f2f33-c9cf-4d7e-90ff-01850846429d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_ec6e61fe-1030-4a1d-b3ce-c8bdcb4bb2da" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_b99f2f33-c9cf-4d7e-90ff-01850846429d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_ec6e61fe-1030-4a1d-b3ce-c8bdcb4bb2da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_452cb531-58ee-4a29-aa83-c27d9eeec6c0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_b99f2f33-c9cf-4d7e-90ff-01850846429d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_452cb531-58ee-4a29-aa83-c27d9eeec6c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_85c4aca1-ad6e-4c47-a5da-ccee596bd0c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_b99f2f33-c9cf-4d7e-90ff-01850846429d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_85c4aca1-ad6e-4c47-a5da-ccee596bd0c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_ed99ebff-88bd-4979-bb16-7ecfbec8c5c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_TechnologyAndDataAnalyticsExpense_7bdf4d74-6235-454f-816d-07e3309dc627" xlink:href="afrm-20250331.xsd#afrm_TechnologyAndDataAnalyticsExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ed99ebff-88bd-4979-bb16-7ecfbec8c5c6" xlink:to="loc_afrm_TechnologyAndDataAnalyticsExpense_7bdf4d74-6235-454f-816d-07e3309dc627" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_e657dfb9-96e6-4aaa-a4a0-104d98dc0346" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ed99ebff-88bd-4979-bb16-7ecfbec8c5c6" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_e657dfb9-96e6-4aaa-a4a0-104d98dc0346" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_13ae05f6-7b60-4bb7-98a9-f8bbb710cd27" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_ed99ebff-88bd-4979-bb16-7ecfbec8c5c6" xlink:to="loc_us-gaap_InterestExpenseDebt_13ae05f6-7b60-4bb7-98a9-f8bbb710cd27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LossOnFinancingReceivableCommitmentsToPurchase_1f9bc5c6-478e-42d1-a9b2-aa5dad6e0298" xlink:href="afrm-20250331.xsd#afrm_LossOnFinancingReceivableCommitmentsToPurchase"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ed99ebff-88bd-4979-bb16-7ecfbec8c5c6" xlink:to="loc_afrm_LossOnFinancingReceivableCommitmentsToPurchase_1f9bc5c6-478e-42d1-a9b2-aa5dad6e0298" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_bb6eb883-efe9-4f19-a0a9-0565890642e4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ed99ebff-88bd-4979-bb16-7ecfbec8c5c6" xlink:to="loc_us-gaap_SellingAndMarketingExpense_bb6eb883-efe9-4f19-a0a9-0565890642e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_e54473b3-66eb-494e-9cfb-5b9ab65ca7af" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ed99ebff-88bd-4979-bb16-7ecfbec8c5c6" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_e54473b3-66eb-494e-9cfb-5b9ab65ca7af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ProcessingAndServicingExpense_fb50b38d-4c50-4ede-b126-5dc1c4b285bf" xlink:href="afrm-20250331.xsd#afrm_ProcessingAndServicingExpense"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ed99ebff-88bd-4979-bb16-7ecfbec8c5c6" xlink:to="loc_afrm_ProcessingAndServicingExpense_fb50b38d-4c50-4ede-b126-5dc1c4b285bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RestructuringChargesReversals_eac1bb91-4b1f-40ee-9f3e-7130deb64054" xlink:href="afrm-20250331.xsd#afrm_RestructuringChargesReversals"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_ed99ebff-88bd-4979-bb16-7ecfbec8c5c6" xlink:to="loc_afrm_RestructuringChargesReversals_eac1bb91-4b1f-40ee-9f3e-7130deb64054" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_144d40bf-3531-4e84-8dd3-c50f330d61e2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Revenues"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_8796b324-fa31-4b14-92bd-0c1e4d942b05" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnSalesOfLoansNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_144d40bf-3531-4e84-8dd3-c50f330d61e2" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_8796b324-fa31-4b14-92bd-0c1e4d942b05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_4030a9f8-fe1e-4955-bb1a-97d256a269cb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_144d40bf-3531-4e84-8dd3-c50f330d61e2" xlink:to="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_4030a9f8-fe1e-4955-bb1a-97d256a269cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_2eb90346-80bc-4172-a689-bc17a4fd6c4c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_144d40bf-3531-4e84-8dd3-c50f330d61e2" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_2eb90346-80bc-4172-a689-bc17a4fd6c4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_c01c69d6-4f88-439c-8c2a-156aa2fa1a9f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_144d40bf-3531-4e84-8dd3-c50f330d61e2" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_c01c69d6-4f88-439c-8c2a-156aa2fa1a9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_601d953f-5b94-40f8-9eff-2f5b5c2f3ccb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_aa72ee40-a7ff-481a-8c11-8d75df6cd719" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_601d953f-5b94-40f8-9eff-2f5b5c2f3ccb" xlink:to="loc_us-gaap_NetIncomeLoss_aa72ee40-a7ff-481a-8c11-8d75df6cd719" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_f387d10b-9b2a-4fc4-a4b4-dbed69814c07" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_601d953f-5b94-40f8-9eff-2f5b5c2f3ccb" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_f387d10b-9b2a-4fc4-a4b4-dbed69814c07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_f10021b2-1cce-48d4-96dd-da0e4be4e667" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_60d8007c-4f15-42e6-8054-398e8bed0541" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_f10021b2-1cce-48d4-96dd-da0e4be4e667" xlink:to="loc_us-gaap_Revenues_60d8007c-4f15-42e6-8054-398e8bed0541" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_1567fc7d-11db-4d6e-be62-fbff99a79456" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_f10021b2-1cce-48d4-96dd-da0e4be4e667" xlink:to="loc_us-gaap_CostsAndExpenses_1567fc7d-11db-4d6e-be62-fbff99a79456" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_f3b05946-1cfd-4577-a47f-89008579f892" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_0cc1f833-97b1-4b93-be62-e18bdea2c817" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_f3b05946-1cfd-4577-a47f-89008579f892" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_0cc1f833-97b1-4b93-be62-e18bdea2c817" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_17c5bc44-ec5e-400c-afbc-1990ec3b7f37" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_f3b05946-1cfd-4577-a47f-89008579f892" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_17c5bc44-ec5e-400c-afbc-1990ec3b7f37" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="afrm-20250331.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_22360a56-f6f4-4e17-954e-428f80f0f010" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c48c9b04-3f65-407f-b941-c72326c7870b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_22360a56-f6f4-4e17-954e-428f80f0f010" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_c48c9b04-3f65-407f-b941-c72326c7870b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5dbf6819-c03a-4684-9ca1-d57e784b1282" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_22360a56-f6f4-4e17-954e-428f80f0f010" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_5dbf6819-c03a-4684-9ca1-d57e784b1282" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_bba06c78-40d8-4815-be76-fa98b2091435" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_22360a56-f6f4-4e17-954e-428f80f0f010" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_bba06c78-40d8-4815-be76-fa98b2091435" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_61081a41-6e87-47c3-a0af-14759de02945" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_22360a56-f6f4-4e17-954e-428f80f0f010" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_61081a41-6e87-47c3-a0af-14759de02945" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e18c490e-013a-4163-bb14-8bcac23ff0d2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ProceedsFromStockOptionsAndWarrantsExercised_a13ac31c-eba4-4bf4-b57c-9bf54159edbe" xlink:href="afrm-20250331.xsd#afrm_ProceedsFromStockOptionsAndWarrantsExercised"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e18c490e-013a-4163-bb14-8bcac23ff0d2" xlink:to="loc_afrm_ProceedsFromStockOptionsAndWarrantsExercised_a13ac31c-eba4-4bf4-b57c-9bf54159edbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_c7a75056-daa6-4315-966a-32aaaa910846" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e18c490e-013a-4163-bb14-8bcac23ff0d2" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_c7a75056-daa6-4315-966a-32aaaa910846" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfDebt_77fd1d00-5ea3-49e7-af10-1ba3374bc699" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfDebt"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e18c490e-013a-4163-bb14-8bcac23ff0d2" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfDebt_77fd1d00-5ea3-49e7-af10-1ba3374bc699" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_90603c5e-c06e-4025-bfc8-79063a47f2d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromLongTermLinesOfCredit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e18c490e-013a-4163-bb14-8bcac23ff0d2" xlink:to="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_90603c5e-c06e-4025-bfc8-79063a47f2d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_3dbfb474-12bd-473b-884b-e76d6168926c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e18c490e-013a-4163-bb14-8bcac23ff0d2" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_3dbfb474-12bd-473b-884b-e76d6168926c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtExtinguishmentCosts_a8d11456-f12c-4c88-880c-347ee20019d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDebtExtinguishmentCosts"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e18c490e-013a-4163-bb14-8bcac23ff0d2" xlink:to="loc_us-gaap_PaymentsOfDebtExtinguishmentCosts_a8d11456-f12c-4c88-880c-347ee20019d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_140a8b68-46da-45a2-901d-fa4d5d95faf2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RepaymentsOfLongTermLinesOfCredit"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e18c490e-013a-4163-bb14-8bcac23ff0d2" xlink:to="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_140a8b68-46da-45a2-901d-fa4d5d95faf2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSecuredDebt_19f30f28-09e9-4d15-8a4b-f3c14535ef08" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfSecuredDebt"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e18c490e-013a-4163-bb14-8bcac23ff0d2" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSecuredDebt_19f30f28-09e9-4d15-8a4b-f3c14535ef08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfSecuredDebt_9ec95851-ffb1-48b9-8f22-b000af0704ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RepaymentsOfSecuredDebt"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e18c490e-013a-4163-bb14-8bcac23ff0d2" xlink:to="loc_us-gaap_RepaymentsOfSecuredDebt_9ec95851-ffb1-48b9-8f22-b000af0704ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_64428800-7cdf-4df3-878e-6a3a262bc2df" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_e18c490e-013a-4163-bb14-8bcac23ff0d2" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_64428800-7cdf-4df3-878e-6a3a262bc2df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4d6302d5-4f49-454c-ae83-002a517dfc69" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_aee87ee7-4ae3-4e65-ba32-a1069d3ab22f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4d6302d5-4f49-454c-ae83-002a517dfc69" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_aee87ee7-4ae3-4e65-ba32-a1069d3ab22f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_bbb81d81-0828-486b-b260-65577e509514" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4d6302d5-4f49-454c-ae83-002a517dfc69" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_bbb81d81-0828-486b-b260-65577e509514" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireFinanceReceivables_180a9d05-4f85-4935-bea9-6308aeac25a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4d6302d5-4f49-454c-ae83-002a517dfc69" xlink:to="loc_us-gaap_PaymentsToAcquireFinanceReceivables_180a9d05-4f85-4935-bea9-6308aeac25a5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfFinanceReceivables_b273a894-73ce-47d2-bf20-e032650e4c45" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromSaleOfFinanceReceivables"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4d6302d5-4f49-454c-ae83-002a517dfc69" xlink:to="loc_us-gaap_ProceedsFromSaleOfFinanceReceivables_b273a894-73ce-47d2-bf20-e032650e4c45" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_6611e74e-f569-4393-a3b7-59c9f2779a2b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4d6302d5-4f49-454c-ae83-002a517dfc69" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_6611e74e-f569-4393-a3b7-59c9f2779a2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromCollectionOfFinanceReceivables_3d758217-ebd5-4cac-bf10-58e0230871eb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromCollectionOfFinanceReceivables"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4d6302d5-4f49-454c-ae83-002a517dfc69" xlink:to="loc_us-gaap_ProceedsFromCollectionOfFinanceReceivables_3d758217-ebd5-4cac-bf10-58e0230871eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_fff5c2f5-85d2-4e0d-9f48-94abc7b4c874" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_4d6302d5-4f49-454c-ae83-002a517dfc69" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_fff5c2f5-85d2-4e0d-9f48-94abc7b4c874" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_4f06bb46-841d-4338-98d9-c2b5a384abec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_c009e993-7067-49bd-88d0-f6179bed0957" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedCash"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_4f06bb46-841d-4338-98d9-c2b5a384abec" xlink:to="loc_us-gaap_RestrictedCash_c009e993-7067-49bd-88d0-f6179bed0957" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_28909722-1311-41c2-a140-e0138f1403b0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_4f06bb46-841d-4338-98d9-c2b5a384abec" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_28909722-1311-41c2-a140-e0138f1403b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_770928f3-612b-4a5e-bd1c-6a4c766883ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_770928f3-612b-4a5e-bd1c-6a4c766883ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable_9d1081ea-be1b-46ce-93c7-925e721dae26" xlink:href="afrm-20250331.xsd#afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable_9d1081ea-be1b-46ce-93c7-925e721dae26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_39dbfa01-5f3b-4ad8-a0ae-78cf97040ab3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_us-gaap_NetIncomeLoss_39dbfa01-5f3b-4ad8-a0ae-78cf97040ab3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_GainLossOnChangesInFairValueOfAssetsAndLiabilities_ef32ea46-4b88-4129-b3de-1628a5bff42e" xlink:href="afrm-20250331.xsd#afrm_GainLossOnChangesInFairValueOfAssetsAndLiabilities"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_afrm_GainLossOnChangesInFairValueOfAssetsAndLiabilities_ef32ea46-4b88-4129-b3de-1628a5bff42e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_12950eed-4968-475a-8e07-75f3c7d55988" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_12950eed-4968-475a-8e07-75f3c7d55988" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfDiscountOnAvailableForSaleSecurities_002d0d8a-016c-4436-af2a-72e5a7fe177a" xlink:href="afrm-20250331.xsd#afrm_AmortizationOfDiscountOnAvailableForSaleSecurities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_afrm_AmortizationOfDiscountOnAvailableForSaleSecurities_002d0d8a-016c-4436-af2a-72e5a7fe177a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_ea6e9548-9798-420c-bec5-35b0cf933056" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_ea6e9548-9798-420c-bec5-35b0cf933056" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables_2bb1db48-f7d8-4a28-b584-f5fe759b048c" xlink:href="afrm-20250331.xsd#afrm_AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_afrm_AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables_2bb1db48-f7d8-4a28-b584-f5fe759b048c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_b72b87d7-b3ad-4099-aa37-7d041eca8fec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_b72b87d7-b3ad-4099-aa37-7d041eca8fec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_0c1fc00c-d587-4b61-9512-b7bfc77e8549" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_0c1fc00c-d587-4b61-9512-b7bfc77e8549" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_84d53385-2c71-4ce8-a0ff-f95b179a1717" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_84d53385-2c71-4ce8-a0ff-f95b179a1717" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_26062ab0-66d5-42d0-8c61-4957e45becb2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_us-gaap_ShareBasedCompensation_26062ab0-66d5-42d0-8c61-4957e45becb2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_1247af00-91c8-4512-8644-d78dd0966ecd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_1247af00-91c8-4512-8644-d78dd0966ecd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_5053d330-79f8-45c5-b218-71a50e7d13cc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProvisionForLoanLossesExpensed"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_5053d330-79f8-45c5-b218-71a50e7d13cc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_d52e7632-7823-439d-bcbd-6ebab5a18dd4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_d52e7632-7823-439d-bcbd-6ebab5a18dd4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_3f2445e0-1b73-4900-988a-b63fe66f0920" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_3f2445e0-1b73-4900-988a-b63fe66f0920" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_f05ff3db-06c0-4f70-b364-9613864d42e5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnSalesOfLoansNet"/>
    <link:calculationArc order="17" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_f05ff3db-06c0-4f70-b364-9613864d42e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IncreaseDecreaseInCommercialAgreementAssets_49b99a63-44cf-4ea6-921a-4aad1154b78d" xlink:href="afrm-20250331.xsd#afrm_IncreaseDecreaseInCommercialAgreementAssets"/>
    <link:calculationArc order="18" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_afrm_IncreaseDecreaseInCommercialAgreementAssets_49b99a63-44cf-4ea6-921a-4aad1154b78d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfCommercialAgreementAssets_a8fd9c5d-1440-4647-8f7c-867732e18b08" xlink:href="afrm-20250331.xsd#afrm_AmortizationOfCommercialAgreementAssets"/>
    <link:calculationArc order="19" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_afrm_AmortizationOfCommercialAgreementAssets_a8fd9c5d-1440-4647-8f7c-867732e18b08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_94093fd6-7758-4680-bf90-aaf3d1b38472" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="20" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_94093fd6-7758-4680-bf90-aaf3d1b38472" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForOriginationAndPurchasesOfLoansHeldForSale_4fad54bb-68c2-4e46-84fd-479002878507" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForOriginationAndPurchasesOfLoansHeldForSale"/>
    <link:calculationArc order="21" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_4ae6b3dc-52c0-4e38-81a4-5777fce38f39" xlink:to="loc_us-gaap_PaymentsForOriginationAndPurchasesOfLoansHeldForSale_4fad54bb-68c2-4e46-84fd-479002878507" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/RevenueScheduleofInterestIncomeDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#RevenueScheduleofInterestIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/RevenueScheduleofInterestIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendIncomeOperating_2f65fd71-ca8a-4e69-bc81-f188f48b0bb1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_a5de56e5-74b3-4703-aab1-dbf93b98716e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_2f65fd71-ca8a-4e69-bc81-f188f48b0bb1" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_a5de56e5-74b3-4703-aab1-dbf93b98716e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccretionOfDiscountsFinancingReceivables_cf18bb26-42c3-488b-b150-e36294f75288" xlink:href="afrm-20250331.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_2f65fd71-ca8a-4e69-bc81-f188f48b0bb1" xlink:to="loc_afrm_AccretionOfDiscountsFinancingReceivables_cf18bb26-42c3-488b-b150-e36294f75288" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfPremiumsFinancingReceivables_5ef49eb4-77f6-44be-86a9-6d6118bd6877" xlink:href="afrm-20250331.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_2f65fd71-ca8a-4e69-bc81-f188f48b0bb1" xlink:to="loc_afrm_AmortizationOfPremiumsFinancingReceivables_5ef49eb4-77f6-44be-86a9-6d6118bd6877" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_e689d4ec-8173-40d0-89c8-0d4de6859a8d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_2f65fd71-ca8a-4e69-bc81-f188f48b0bb1" xlink:to="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_e689d4ec-8173-40d0-89c8-0d4de6859a8d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofLoansHeldforInvestmentDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofLoansHeldforInvestmentDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofLoansHeldforInvestmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableGross_79ba5db5-835c-443d-8444-5bc1a6e7ebe6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NotesReceivableGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee_89193458-62a5-4645-8a56-28d7b0e12d2e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_NotesReceivableGross_79ba5db5-835c-443d-8444-5bc1a6e7ebe6" xlink:to="loc_us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee_89193458-62a5-4645-8a56-28d7b0e12d2e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestBeforeAllowanceForCreditLoss_7b65c193-8209-4caf-a61f-86eb2ae7a480" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableGross_79ba5db5-835c-443d-8444-5bc1a6e7ebe6" xlink:to="loc_us-gaap_FinancingReceivableAccruedInterestBeforeAllowanceForCreditLoss_7b65c193-8209-4caf-a61f-86eb2ae7a480" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableUnamortizedPurchasePremium_36a6daf5-76af-4f09-a2ae-c77cf5fd1155" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableUnamortizedPurchasePremium"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableGross_79ba5db5-835c-443d-8444-5bc1a6e7ebe6" xlink:to="loc_afrm_FinancingReceivableUnamortizedPurchasePremium_36a6daf5-76af-4f09-a2ae-c77cf5fd1155" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableAcquiredInBusinessCombinationFairValueAdjustment_9e9810e9-8345-4ebc-8872-ef9e4e4c26c0" xlink:href="afrm-20250331.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_NotesReceivableGross_79ba5db5-835c-443d-8444-5bc1a6e7ebe6" xlink:to="loc_afrm_FinancingReceivableAcquiredInBusinessCombinationFairValueAdjustment_9e9810e9-8345-4ebc-8872-ef9e4e4c26c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableUnamortizedPurchaseDiscount_3510ddc2-8fd8-4999-9df3-e3dd15aa4f9e" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableUnamortizedPurchaseDiscount"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableGross_79ba5db5-835c-443d-8444-5bc1a6e7ebe6" xlink:to="loc_afrm_FinancingReceivableUnamortizedPurchaseDiscount_3510ddc2-8fd8-4999-9df3-e3dd15aa4f9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableLossOnSelfOrganizingLoans_4c491707-fb67-43a5-bf20-9b720daeaa7a" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableLossOnSelfOrganizingLoans"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableGross_79ba5db5-835c-443d-8444-5bc1a6e7ebe6" xlink:to="loc_afrm_FinancingReceivableLossOnSelfOrganizingLoans_4c491707-fb67-43a5-bf20-9b720daeaa7a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofCreditQualitybyITACsScoreDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofCreditQualitybyITACsScoreDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofCreditQualitybyITACsScoreDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_5e4780e0-c338-40b5-9829-a5956992eab8" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_43e34028-97b5-47d9-84d4-4c5632ff42c1" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_5e4780e0-c338-40b5-9829-a5956992eab8" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_43e34028-97b5-47d9-84d4-4c5632ff42c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_0572e4cf-39f7-456e-a032-cca63d9f58c0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_5e4780e0-c338-40b5-9829-a5956992eab8" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_0572e4cf-39f7-456e-a032-cca63d9f58c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_cf4e3ef1-f280-4a12-8129-dc0870354694" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_f6548f0a-57f6-43d4-9bea-b79a25ded0ad" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_cf4e3ef1-f280-4a12-8129-dc0870354694" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_f6548f0a-57f6-43d4-9bea-b79a25ded0ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_d8714d61-d57b-42c0-86ef-bb54b3aee84d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_cf4e3ef1-f280-4a12-8129-dc0870354694" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_d8714d61-d57b-42c0-86ef-bb54b3aee84d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery_b7eff9f8-8b7e-430b-aab0-72eb69c4f186" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_a69058e5-63a0-43ef-bb3a-541bdb0bdd21" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery_b7eff9f8-8b7e-430b-aab0-72eb69c4f186" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_a69058e5-63a0-43ef-bb3a-541bdb0bdd21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_4e24405e-8f70-4188-bbc7-5177af7d8d9f" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery_b7eff9f8-8b7e-430b-aab0-72eb69c4f186" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_4e24405e-8f70-4188-bbc7-5177af7d8d9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_a3f2c7f9-b956-4d03-904e-a6547d635a58" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery_b7eff9f8-8b7e-430b-aab0-72eb69c4f186" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_a3f2c7f9-b956-4d03-904e-a6547d635a58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_fa92633f-0719-46ff-a1ff-243edfd5a95d" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery_b7eff9f8-8b7e-430b-aab0-72eb69c4f186" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_fa92633f-0719-46ff-a1ff-243edfd5a95d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_8498836c-0a1e-4c44-b2d0-2b2b629ea73f" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery_b7eff9f8-8b7e-430b-aab0-72eb69c4f186" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_8498836c-0a1e-4c44-b2d0-2b2b629ea73f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearRecoveries_ffef1c89-2999-4146-a202-90b5a958e6fa" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery_b7eff9f8-8b7e-430b-aab0-72eb69c4f186" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearRecoveries_ffef1c89-2999-4146-a202-90b5a958e6fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_c98cc32c-8c49-47da-83fb-cbe9e0d742dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_0c2e396d-a131-47a0-888a-58b772de2514" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_c98cc32c-8c49-47da-83fb-cbe9e0d742dd" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_0c2e396d-a131-47a0-888a-58b772de2514" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_af0b3d1f-a134-4a47-9185-b0c9a0084f28" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_c98cc32c-8c49-47da-83fb-cbe9e0d742dd" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_af0b3d1f-a134-4a47-9185-b0c9a0084f28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_95adc160-4210-4be2-ba30-4c546c19e072" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_c98cc32c-8c49-47da-83fb-cbe9e0d742dd" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_95adc160-4210-4be2-ba30-4c546c19e072" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_dcafc58b-481a-4fd4-8823-831b865b0087" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_c98cc32c-8c49-47da-83fb-cbe9e0d742dd" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_dcafc58b-481a-4fd4-8823-831b865b0087" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_c9b3bace-543e-4465-b700-dc317863e737" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_c98cc32c-8c49-47da-83fb-cbe9e0d742dd" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_c9b3bace-543e-4465-b700-dc317863e737" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_3f5f999c-642d-4b59-a1ca-92009181db1d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_c98cc32c-8c49-47da-83fb-cbe9e0d742dd" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_3f5f999c-642d-4b59-a1ca-92009181db1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffAfterRecovery_0fa00059-3cfe-4eba-a3a6-6f3aae6f5f13" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffAfterRecovery"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery_3d3f4410-fbec-4c3c-8d02-3cf763f5eb53" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffAfterRecovery_0fa00059-3cfe-4eba-a3a6-6f3aae6f5f13" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery_3d3f4410-fbec-4c3c-8d02-3cf763f5eb53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_3597edfb-ac43-4a0c-a3f6-a3be5c3bcd4c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffAfterRecovery_0fa00059-3cfe-4eba-a3a6-6f3aae6f5f13" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_3597edfb-ac43-4a0c-a3f6-a3be5c3bcd4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_ccba38ea-6888-45dd-b7bd-1b22ca44dfb4" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_92e00120-add9-4209-b33c-7f4872f6f6db" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_ccba38ea-6888-45dd-b7bd-1b22ca44dfb4" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_92e00120-add9-4209-b33c-7f4872f6f6db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearRecoveries_9e368c8f-1806-483a-acd9-064e0959ac80" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_ccba38ea-6888-45dd-b7bd-1b22ca44dfb4" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearRecoveries_9e368c8f-1806-483a-acd9-064e0959ac80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_cba6d67f-ced6-47f7-981b-7dcf72354ad9" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_16ef11d0-8ec7-4a05-8665-004eaf218277" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_cba6d67f-ced6-47f7-981b-7dcf72354ad9" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_16ef11d0-8ec7-4a05-8665-004eaf218277" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_fc3f75dc-3f0e-4f7a-8520-554ddfc99775" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_cba6d67f-ced6-47f7-981b-7dcf72354ad9" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_fc3f75dc-3f0e-4f7a-8520-554ddfc99775" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_ebc5a4b1-8c61-44b2-8eba-86bae1b9dfae" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_7d9adcdf-5450-4163-bff4-606b916cb3c0" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_ebc5a4b1-8c61-44b2-8eba-86bae1b9dfae" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_7d9adcdf-5450-4163-bff4-606b916cb3c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_e529fb29-2d0b-442f-a5e9-4db61d92f97c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_ebc5a4b1-8c61-44b2-8eba-86bae1b9dfae" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_e529fb29-2d0b-442f-a5e9-4db61d92f97c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableIncludingLoansHeldForSaleExcludingAccruedInterestBeforeAllowanceForCreditLoss_16434f7a-ef31-46a9-9594-c97a037478aa" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableIncludingLoansHeldForSaleExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_69f30801-7c70-4787-9baf-9575aec45a10" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableIncludingLoansHeldForSaleExcludingAccruedInterestBeforeAllowanceForCreditLoss_16434f7a-ef31-46a9-9594-c97a037478aa" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_69f30801-7c70-4787-9baf-9575aec45a10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_2210b9f2-7c57-4659-a78d-664b14ae106c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableIncludingLoansHeldForSaleExcludingAccruedInterestBeforeAllowanceForCreditLoss_16434f7a-ef31-46a9-9594-c97a037478aa" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_2210b9f2-7c57-4659-a78d-664b14ae106c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_3717b66a-ae32-4c2a-8337-bf96e3662547" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableIncludingLoansHeldForSaleExcludingAccruedInterestBeforeAllowanceForCreditLoss_16434f7a-ef31-46a9-9594-c97a037478aa" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_3717b66a-ae32-4c2a-8337-bf96e3662547" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_c8e4698a-3c5e-4b26-b85c-bfaeb7f031b9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableIncludingLoansHeldForSaleExcludingAccruedInterestBeforeAllowanceForCreditLoss_16434f7a-ef31-46a9-9594-c97a037478aa" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_c8e4698a-3c5e-4b26-b85c-bfaeb7f031b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_1067cbf8-2765-488c-aae1-2a1b456860dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableIncludingLoansHeldForSaleExcludingAccruedInterestBeforeAllowanceForCreditLoss_16434f7a-ef31-46a9-9594-c97a037478aa" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_1067cbf8-2765-488c-aae1-2a1b456860dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_1ac38c3e-3edb-4e45-b362-659bf2dedfa4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableIncludingLoansHeldForSaleExcludingAccruedInterestBeforeAllowanceForCreditLoss_16434f7a-ef31-46a9-9594-c97a037478aa" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_1ac38c3e-3edb-4e45-b362-659bf2dedfa4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_59b1b076-3297-4fbf-8544-aaf90d5e6721" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_8cdb07ee-b927-46df-bc52-7623551ecc15" xlink:href="afrm-20250331.xsd#afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_59b1b076-3297-4fbf-8544-aaf90d5e6721" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_8cdb07ee-b927-46df-bc52-7623551ecc15" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_cbb39077-f357-4798-bfde-ec371bb34f80" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_59b1b076-3297-4fbf-8544-aaf90d5e6721" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_cbb39077-f357-4798-bfde-ec371bb34f80" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_1635f603-09f8-467b-a9ea-703c5ff56c8d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_41894726-7e8b-43ba-9160-6f26200b0dbc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_1635f603-09f8-467b-a9ea-703c5ff56c8d" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_41894726-7e8b-43ba-9160-6f26200b0dbc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_c9c90096-e290-419a-9388-a8d43870d1a4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_1635f603-09f8-467b-a9ea-703c5ff56c8d" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_c9c90096-e290-419a-9388-a8d43870d1a4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofIntangibleAssetsDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#BalanceSheetComponentsScheduleofIntangibleAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsScheduleofIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_3f2cc64f-4e63-4a44-beaf-ea3e00a51e65" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_dfa93ec5-849d-4f0e-b30b-659b01c64f95" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_3f2cc64f-4e63-4a44-beaf-ea3e00a51e65" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_dfa93ec5-849d-4f0e-b30b-659b01c64f95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_d368ffea-12e0-409d-926a-5731bf8fb38d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_3f2cc64f-4e63-4a44-beaf-ea3e00a51e65" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_d368ffea-12e0-409d-926a-5731bf8fb38d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_34cf97ac-cc98-4d76-9bf5-808be4de2ffa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_5f84f0a8-42ef-497e-b1e3-be91f115d0e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_34cf97ac-cc98-4d76-9bf5-808be4de2ffa" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_5f84f0a8-42ef-497e-b1e3-be91f115d0e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_67454524-739a-42cc-9cc3-cc64c56d7f11" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_34cf97ac-cc98-4d76-9bf5-808be4de2ffa" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_67454524-739a-42cc-9cc3-cc64c56d7f11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_01496275-06f4-43b1-93d5-6202c1359b28" xlink:href="afrm-20250331.xsd#afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_694ead5f-df6c-4a98-a16a-83667076f68f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_01496275-06f4-43b1-93d5-6202c1359b28" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_694ead5f-df6c-4a98-a16a-83667076f68f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_207e34d5-a9a1-438d-b41e-5a923f4d4a9f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_01496275-06f4-43b1-93d5-6202c1359b28" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_207e34d5-a9a1-438d-b41e-5a923f4d4a9f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofIntangibleAssetsDetails_1" xlink:type="simple" xlink:href="afrm-20250331.xsd#BalanceSheetComponentsScheduleofIntangibleAssetsDetails_1"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsScheduleofIntangibleAssetsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_f69cb574-539c-4335-8fbb-62847e00a710" xlink:href="afrm-20250331.xsd#afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_0a40645b-f9f0-4154-a544-b7e2e2bd82c7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_f69cb574-539c-4335-8fbb-62847e00a710" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_0a40645b-f9f0-4154-a544-b7e2e2bd82c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_c66c4e65-09e6-492f-a0c2-3d33c192190a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_f69cb574-539c-4335-8fbb-62847e00a710" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_c66c4e65-09e6-492f-a0c2-3d33c192190a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofExpectedFutureAmortizationExpenseDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#BalanceSheetComponentsScheduleofExpectedFutureAmortizationExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsScheduleofExpectedFutureAmortizationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_2766734c-c9f6-4da3-8ac2-56a7bb614ac9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_49a13ed2-9a8c-426d-a2e9-f1ffcc7eeb46" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_2766734c-c9f6-4da3-8ac2-56a7bb614ac9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_49a13ed2-9a8c-426d-a2e9-f1ffcc7eeb46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_385e8b56-10a1-4a8a-b0a2-72711c597721" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_2766734c-c9f6-4da3-8ac2-56a7bb614ac9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_385e8b56-10a1-4a8a-b0a2-72711c597721" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_37dbb86b-cdf2-4587-a962-8ad6ee0fa978" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_2766734c-c9f6-4da3-8ac2-56a7bb614ac9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_37dbb86b-cdf2-4587-a962-8ad6ee0fa978" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_aeade88b-42a2-4fa6-bf64-bb05edbd052f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_2766734c-c9f6-4da3-8ac2-56a7bb614ac9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_aeade88b-42a2-4fa6-bf64-bb05edbd052f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearThree_ae1763f4-3527-43a7-b1f7-1b30e8d85ad4" xlink:href="afrm-20250331.xsd#afrm_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearThree"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_2766734c-c9f6-4da3-8ac2-56a7bb614ac9" xlink:to="loc_afrm_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearThree_ae1763f4-3527-43a7-b1f7-1b30e8d85ad4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofOtherAssetsDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#BalanceSheetComponentsScheduleofOtherAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsScheduleofOtherAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_8f51272d-73cf-45e7-8965-d101f42693d2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_cf5d7711-5c0f-4ad6-b16b-4bbe332a2bb8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_8f51272d-73cf-45e7-8965-d101f42693d2" xlink:to="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_cf5d7711-5c0f-4ad6-b16b-4bbe332a2bb8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RiskSharingAsset_0641d7ab-43cc-4cbc-b280-362749f72473" xlink:href="afrm-20250331.xsd#afrm_RiskSharingAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_8f51272d-73cf-45e7-8965-d101f42693d2" xlink:to="loc_afrm_RiskSharingAsset_0641d7ab-43cc-4cbc-b280-362749f72473" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount_9fd06138-a649-4ae0-9135-a5a57713ac32" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_8f51272d-73cf-45e7-8965-d101f42693d2" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount_9fd06138-a649-4ae0-9135-a5a57713ac32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivables_6e1581c4-2541-4fdc-b025-3cfd1f9bc16f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherReceivables"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_8f51272d-73cf-45e7-8965-d101f42693d2" xlink:to="loc_us-gaap_OtherReceivables_6e1581c4-2541-4fdc-b025-3cfd1f9bc16f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_b2a0b049-0607-44a2-ba96-ed0df737ff14" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_8f51272d-73cf-45e7-8965-d101f42693d2" xlink:to="loc_us-gaap_DerivativeAssets_b2a0b049-0607-44a2-ba96-ed0df737ff14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositAssets_ae82603b-7dc9-4ac4-972f-d687623fca7d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DepositAssets"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_8f51272d-73cf-45e7-8965-d101f42693d2" xlink:to="loc_us-gaap_DepositAssets_ae82603b-7dc9-4ac4-972f-d687623fca7d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_0dd68d3a-5b7c-469d-b33a-b404b145f927" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_8f51272d-73cf-45e7-8965-d101f42693d2" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_0dd68d3a-5b7c-469d-b33a-b404b145f927" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PrepaidPayrollTax_a7e1804b-a67a-4ad3-b2bd-e61ae5ffe520" xlink:href="afrm-20250331.xsd#afrm_PrepaidPayrollTax"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_8f51272d-73cf-45e7-8965-d101f42693d2" xlink:to="loc_afrm_PrepaidPayrollTax_a7e1804b-a67a-4ad3-b2bd-e61ae5ffe520" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_781de029-681a-4d85-bf82-8406d101e5c0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PrepaidExpenseCurrentAndNoncurrent"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_8f51272d-73cf-45e7-8965-d101f42693d2" xlink:to="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_781de029-681a-4d85-bf82-8406d101e5c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CashDepositsProcessingReserves_4dbf77c3-494a-4dd7-8b44-341596e71788" xlink:href="afrm-20250331.xsd#afrm_CashDepositsProcessingReserves"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_8f51272d-73cf-45e7-8965-d101f42693d2" xlink:to="loc_afrm_CashDepositsProcessingReserves_4dbf77c3-494a-4dd7-8b44-341596e71788" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneous_a9a3a070-c8c6-406a-9edd-0aef88486d40" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsMiscellaneous"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssets_8f51272d-73cf-45e7-8965-d101f42693d2" xlink:to="loc_us-gaap_OtherAssetsMiscellaneous_a9a3a070-c8c6-406a-9edd-0aef88486d40" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofAccruedExpensesandOtherLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#BalanceSheetComponentsScheduleofAccruedExpensesandOtherLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsScheduleofAccruedExpensesandOtherLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_12e5f434-4ce3-4fb5-9956-a5548cb94a15" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedLiabilitiesAndOtherLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_2224a67c-f6d3-4d81-ad82-b6a79fad9fc6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_12e5f434-4ce3-4fb5-9956-a5548cb94a15" xlink:to="loc_us-gaap_OperatingLeaseLiability_2224a67c-f6d3-4d81-ad82-b6a79fad9fc6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DerivativeInstrumentsCollateralHeld_80982ceb-2a5a-4b11-9b67-4d4aff5c4cf2" xlink:href="afrm-20250331.xsd#afrm_DerivativeInstrumentsCollateralHeld"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_12e5f434-4ce3-4fb5-9956-a5548cb94a15" xlink:to="loc_afrm_DerivativeInstrumentsCollateralHeld_80982ceb-2a5a-4b11-9b67-4d4aff5c4cf2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_f4f09412-0734-46b0-85fe-c55e836f5939" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedLiabilitiesCurrentAndNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_12e5f434-4ce3-4fb5-9956-a5548cb94a15" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_f4f09412-0734-46b0-85fe-c55e836f5939" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_52769896-d9b0-4eac-a180-67da4277cfcd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_12e5f434-4ce3-4fb5-9956-a5548cb94a15" xlink:to="loc_us-gaap_OtherLiabilities_52769896-d9b0-4eac-a180-67da4277cfcd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LeasesScheduleofMaturitiesofLeaseLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#LeasesScheduleofMaturitiesofLeaseLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LeasesScheduleofMaturitiesofLeaseLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b7d9855f-c4d6-4fda-899b-b3d85f6d3571" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_148138f0-dd22-417a-92c7-ac19dcc4e3e2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b7d9855f-c4d6-4fda-899b-b3d85f6d3571" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_148138f0-dd22-417a-92c7-ac19dcc4e3e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_5f695700-e03b-45ed-8cf2-b08110a1965e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b7d9855f-c4d6-4fda-899b-b3d85f6d3571" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_5f695700-e03b-45ed-8cf2-b08110a1965e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LesseeOperatingLeaseLiabilityToBePaidYearFourAndAfterYearFour_e1eb2d9a-cd4f-4ff2-9a57-9dde5967db58" xlink:href="afrm-20250331.xsd#afrm_LesseeOperatingLeaseLiabilityToBePaidYearFourAndAfterYearFour"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b7d9855f-c4d6-4fda-899b-b3d85f6d3571" xlink:to="loc_afrm_LesseeOperatingLeaseLiabilityToBePaidYearFourAndAfterYearFour_e1eb2d9a-cd4f-4ff2-9a57-9dde5967db58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_b4ea09e4-1298-4f89-8087-64b701089efe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b7d9855f-c4d6-4fda-899b-b3d85f6d3571" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_b4ea09e4-1298-4f89-8087-64b701089efe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_411db8b5-bc21-4630-a41f-d8eba4e80a76" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b7d9855f-c4d6-4fda-899b-b3d85f6d3571" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_411db8b5-bc21-4630-a41f-d8eba4e80a76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_1c40a5a8-5cf5-456c-893e-1afd1affedea" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_b7d9855f-c4d6-4fda-899b-b3d85f6d3571" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_1c40a5a8-5cf5-456c-893e-1afd1affedea" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LeasesScheduleofMaturitiesofLeaseLiabilitiesDetails_1" xlink:type="simple" xlink:href="afrm-20250331.xsd#LeasesScheduleofMaturitiesofLeaseLiabilitiesDetails_1"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/LeasesScheduleofMaturitiesofLeaseLiabilitiesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1828612e-9d06-427b-b7da-c5191b40c093" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_f7ab1d60-2cdc-4ab2-b896-1452a3d28091" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_1828612e-9d06-427b-b7da-c5191b40c093" xlink:to="loc_us-gaap_OperatingLeaseLiability_f7ab1d60-2cdc-4ab2-b896-1452a3d28091" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_8061ed24-b81d-4dfb-a3d5-e380d7b150d4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_1828612e-9d06-427b-b7da-c5191b40c093" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_8061ed24-b81d-4dfb-a3d5-e380d7b150d4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DebtScheduleofComponentsofDebtDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#DebtScheduleofComponentsofDebtDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/DebtScheduleofComponentsofDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_afrm_TotalLineOfCreditFacilityMaximumBorrowingCapacityAndDebtInstrumentFaceAmount_949322b3-2e49-4b3b-9196-ae3f16fc7ea3" xlink:href="afrm-20250331.xsd#afrm_TotalLineOfCreditFacilityMaximumBorrowingCapacityAndDebtInstrumentFaceAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_3c3e3f9d-f85d-4d22-9604-ce2a78c4bf4b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_TotalLineOfCreditFacilityMaximumBorrowingCapacityAndDebtInstrumentFaceAmount_949322b3-2e49-4b3b-9196-ae3f16fc7ea3" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_3c3e3f9d-f85d-4d22-9604-ce2a78c4bf4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_7301d655-d44d-4246-854c-36d52b272f8f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_afrm_TotalLineOfCreditFacilityMaximumBorrowingCapacityAndDebtInstrumentFaceAmount_949322b3-2e49-4b3b-9196-ae3f16fc7ea3" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_7301d655-d44d-4246-854c-36d52b272f8f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DebtScheduleoftheInterestExpenseRecognizedRelatedtotheConvertibleSeniorNotesDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#DebtScheduleoftheInterestExpenseRecognizedRelatedtotheConvertibleSeniorNotesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/DebtScheduleoftheInterestExpenseRecognizedRelatedtotheConvertibleSeniorNotesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_6b21fb5d-4a4f-4778-9bdd-fc4a3c49ef63" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpenseDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_2bb98b66-d73e-4f67-8da8-d94007a944e3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_6b21fb5d-4a4f-4778-9bdd-fc4a3c49ef63" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_2bb98b66-d73e-4f67-8da8-d94007a944e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_bc9cb910-239e-4110-bcc9-926dc16d8afd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpenseDebt_6b21fb5d-4a4f-4778-9bdd-fc4a3c49ef63" xlink:to="loc_us-gaap_InterestExpense_bc9cb910-239e-4110-bcc9-926dc16d8afd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DebtScheduleofAggregateFutureMaturitiesofFundingDebtDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#DebtScheduleofAggregateFutureMaturitiesofFundingDebtDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/DebtScheduleofAggregateFutureMaturitiesofFundingDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_1813e82d-b3d3-419f-ab5c-d75f20f8cedc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear_7684e1f2-ee22-451c-8210-4e818497332a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_1813e82d-b3d3-419f-ab5c-d75f20f8cedc" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear_7684e1f2-ee22-451c-8210-4e818497332a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_91966180-dddf-421d-8fb4-7e5003a34a40" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_1813e82d-b3d3-419f-ab5c-d75f20f8cedc" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_91966180-dddf-421d-8fb4-7e5003a34a40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_52657667-baf5-4b08-8436-e334ea9ee1fe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_1813e82d-b3d3-419f-ab5c-d75f20f8cedc" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_52657667-baf5-4b08-8436-e334ea9ee1fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_b7857a07-f7c8-4e0e-978a-ae96273c8f68" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_1813e82d-b3d3-419f-ab5c-d75f20f8cedc" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_b7857a07-f7c8-4e0e-978a-ae96273c8f68" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_cc2bbc10-36e9-43dc-9a0c-000efad2e730" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_1813e82d-b3d3-419f-ab5c-d75f20f8cedc" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_cc2bbc10-36e9-43dc-9a0c-000efad2e730" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LongTermDebtMaturityAfterYearFour_a516c267-1184-458c-ab31-15237998ff1a" xlink:href="afrm-20250331.xsd#afrm_LongTermDebtMaturityAfterYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_1813e82d-b3d3-419f-ab5c-d75f20f8cedc" xlink:to="loc_afrm_LongTermDebtMaturityAfterYearFour_a516c267-1184-458c-ab31-15237998ff1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_5758db40-3bd6-4c9d-bd54-91bbea5647c9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_6abc4462-555b-41e9-a3c6-60b3456e6e36" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_5758db40-3bd6-4c9d-bd54-91bbea5647c9" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_6abc4462-555b-41e9-a3c6-60b3456e6e36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_098a01e3-4308-4d65-ad0f-8fd6ea692192" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_5758db40-3bd6-4c9d-bd54-91bbea5647c9" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_098a01e3-4308-4d65-ad0f-8fd6ea692192" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/InvestmentsScheduleofAvailableforSaleSecuritieswithUnrealizedLossesDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#InvestmentsScheduleofAvailableforSaleSecuritieswithUnrealizedLossesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/InvestmentsScheduleofAvailableforSaleSecuritieswithUnrealizedLossesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_b4b0452e-d329-41ce-9c69-fb68df5b7581" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_e29ee639-2b31-4127-9807-72145641a885" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_b4b0452e-d329-41ce-9c69-fb68df5b7581" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_e29ee639-2b31-4127-9807-72145641a885" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_47f8a3cd-5325-4e14-b660-a45dd042b1c7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_b4b0452e-d329-41ce-9c69-fb68df5b7581" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_47f8a3cd-5325-4e14-b660-a45dd042b1c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_d07f5dcf-f8ab-45e9-84eb-5057cd9da491" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_9ca8a8e3-79f9-433c-a3c7-1827e9005b27" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_d07f5dcf-f8ab-45e9-84eb-5057cd9da491" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_9ca8a8e3-79f9-433c-a3c7-1827e9005b27" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_f7550cf1-1c0a-4ea1-b408-0aa0fa517ee1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_d07f5dcf-f8ab-45e9-84eb-5057cd9da491" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_f7550cf1-1c0a-4ea1-b408-0aa0fa517ee1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/InvestmentsScheduleofLengthofContractualMaturitiesDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#InvestmentsScheduleofLengthofContractualMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/InvestmentsScheduleofLengthofContractualMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_8c987f9b-cfe9-4eb5-a734-9a1c023cc49b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_196ea160-38ec-41c6-aada-5f929f6d3c80" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_8c987f9b-cfe9-4eb5-a734-9a1c023cc49b" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_196ea160-38ec-41c6-aada-5f929f6d3c80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_2836e82f-f5db-4285-bae0-6fe3af046a89" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_8c987f9b-cfe9-4eb5-a734-9a1c023cc49b" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_2836e82f-f5db-4285-bae0-6fe3af046a89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance_a1b62d4d-8468-42b1-9d0a-c0c8368f7648" xlink:href="afrm-20250331.xsd#afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_2a16d1e1-fc3b-45fe-a993-323256fe366d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_a1b62d4d-8468-42b1-9d0a-c0c8368f7648" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_2a16d1e1-fc3b-45fe-a993-323256fe366d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_bb41cadd-bd84-4f37-972e-4e0a0da86fde" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_a1b62d4d-8468-42b1-9d0a-c0c8368f7648" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_bb41cadd-bd84-4f37-972e-4e0a0da86fde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_1a73c042-018c-4cfd-8c3b-ccd5dbb731f5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_9a3c26c9-8e7c-488d-93c9-31be1388fc41" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_1a73c042-018c-4cfd-8c3b-ccd5dbb731f5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_9a3c26c9-8e7c-488d-93c9-31be1388fc41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_d93164b8-0a25-4f3e-844a-862e7a5fcf3e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_1a73c042-018c-4cfd-8c3b-ccd5dbb731f5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_d93164b8-0a25-4f3e-844a-862e7a5fcf3e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_b9eff74b-c76c-4b64-b7a7-4700151dcff0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RestrictedCashFairValueDisclosure_e08dea37-f540-4cae-9939-896e6e40864c" xlink:href="afrm-20250331.xsd#afrm_RestrictedCashFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_b9eff74b-c76c-4b64-b7a7-4700151dcff0" xlink:to="loc_afrm_RestrictedCashFairValueDisclosure_e08dea37-f540-4cae-9939-896e6e40864c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAsset_fd45e161-9c57-4df9-b840-ac5ae9d6a657" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ServicingAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_b9eff74b-c76c-4b64-b7a7-4700151dcff0" xlink:to="loc_us-gaap_ServicingAsset_fd45e161-9c57-4df9-b840-ac5ae9d6a657" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_f0e22094-1d6b-4d37-9184-c090f32f2fda" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_b9eff74b-c76c-4b64-b7a7-4700151dcff0" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_f0e22094-1d6b-4d37-9184-c090f32f2fda" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualTrustCertificatesAssetFairValueDisclosure_c33504f5-35af-4bcd-9a5c-0367190801a4" xlink:href="afrm-20250331.xsd#afrm_ResidualTrustCertificatesAssetFairValueDisclosure"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_b9eff74b-c76c-4b64-b7a7-4700151dcff0" xlink:to="loc_afrm_ResidualTrustCertificatesAssetFairValueDisclosure_c33504f5-35af-4bcd-9a5c-0367190801a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RiskSharingAsset_11cd6738-70cb-4b77-8767-249181a9b408" xlink:href="afrm-20250331.xsd#afrm_RiskSharingAsset"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_b9eff74b-c76c-4b64-b7a7-4700151dcff0" xlink:to="loc_afrm_RiskSharingAsset_11cd6738-70cb-4b77-8767-249181a9b408" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_49d66fe2-a21a-485f-ba21-c57817e689fc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_b9eff74b-c76c-4b64-b7a7-4700151dcff0" xlink:to="loc_us-gaap_DerivativeAssets_49d66fe2-a21a-485f-ba21-c57817e689fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_5d44a35d-d236-4567-a5c8-018cc7b4fc15" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RiskSharingLiability_abbfb05b-372f-4928-b854-7a437c1cdb69" xlink:href="afrm-20250331.xsd#afrm_RiskSharingLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_5d44a35d-d236-4567-a5c8-018cc7b4fc15" xlink:to="loc_afrm_RiskSharingLiability_abbfb05b-372f-4928-b854-7a437c1cdb69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_3101301c-30a6-4667-90a2-f25a8b9515fe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_5d44a35d-d236-4567-a5c8-018cc7b4fc15" xlink:to="loc_us-gaap_DerivativeLiabilities_3101301c-30a6-4667-90a2-f25a8b9515fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingLiabilityAtFairValueAmount_59f0f212-f92b-4a23-81c2-5826e64b20bc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ServicingLiabilityAtFairValueAmount"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_5d44a35d-d236-4567-a5c8-018cc7b4fc15" xlink:to="loc_us-gaap_ServicingLiabilityAtFairValueAmount_59f0f212-f92b-4a23-81c2-5826e64b20bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PerformanceFeeLiabilityFairValueDisclosure_b5c18601-57d2-4fb0-8964-849ec132ea99" xlink:href="afrm-20250331.xsd#afrm_PerformanceFeeLiabilityFairValueDisclosure"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_5d44a35d-d236-4567-a5c8-018cc7b4fc15" xlink:to="loc_afrm_PerformanceFeeLiabilityFairValueDisclosure_b5c18601-57d2-4fb0-8964-849ec132ea99" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure_57a356cd-84f6-42e7-b4c8-7cf766bb4882" xlink:href="afrm-20250331.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_5d44a35d-d236-4567-a5c8-018cc7b4fc15" xlink:to="loc_afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure_57a356cd-84f6-42e7-b4c8-7cf766bb4882" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFinancialAssetsandLiabilitiesNotRecordedatFairValueDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#FairValueofFinancialAssetsandLiabilitiesScheduleofFinancialAssetsandLiabilitiesNotRecordedatFairValueDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFinancialAssetsandLiabilitiesNotRecordedatFairValueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_d9a2d60d-c4c9-4459-af9e-60800976e946" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtFairValueDisclosures_0bef8b01-c8a9-46bb-aa40-2894a9bb7bc9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertibleDebtFairValueDisclosures"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_d9a2d60d-c4c9-4459-af9e-60800976e946" xlink:to="loc_us-gaap_ConvertibleDebtFairValueDisclosures_0bef8b01-c8a9-46bb-aa40-2894a9bb7bc9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesPayableFairValueDisclosure_44b697a8-b792-4605-b6af-6a03f936feb9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NotesPayableFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_d9a2d60d-c4c9-4459-af9e-60800976e946" xlink:to="loc_us-gaap_NotesPayableFairValueDisclosure_44b697a8-b792-4605-b6af-6a03f936feb9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LinesOfCreditFairValueDisclosure_e0680b8d-0ed5-4d3d-9471-241a69d304ec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LinesOfCreditFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_d9a2d60d-c4c9-4459-af9e-60800976e946" xlink:to="loc_us-gaap_LinesOfCreditFairValueDisclosure_e0680b8d-0ed5-4d3d-9471-241a69d304ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_e5e140f5-15ae-4925-8fc0-ca82f384eb87" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableHeldForSaleFairValueDisclosure_fc7191a3-4397-4671-a49a-c5f7ca95d7e7" xlink:href="afrm-20250331.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_e5e140f5-15ae-4925-8fc0-ca82f384eb87" xlink:to="loc_afrm_FinancingReceivableHeldForSaleFairValueDisclosure_fc7191a3-4397-4671-a49a-c5f7ca95d7e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableFairValueDisclosure_cee56563-224b-4d74-8bc8-5c59c77938e5" xlink:href="afrm-20250331.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_e5e140f5-15ae-4925-8fc0-ca82f384eb87" xlink:to="loc_afrm_FinancingReceivableFairValueDisclosure_cee56563-224b-4d74-8bc8-5c59c77938e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsFairValueDisclosure_9b81b045-2852-4b77-882d-762ff1b934ce" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_e5e140f5-15ae-4925-8fc0-ca82f384eb87" xlink:to="loc_us-gaap_OtherAssetsFairValueDisclosure_9b81b045-2852-4b77-882d-762ff1b934ce" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/EquityIncentivePlansScheduleofComponentsandClassificationofStockbasedCompensationDetails" xlink:type="simple" xlink:href="afrm-20250331.xsd#EquityIncentivePlansScheduleofComponentsandClassificationofStockbasedCompensationDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/EquityIncentivePlansScheduleofComponentsandClassificationofStockbasedCompensationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_530a9fd6-a593-4718-be88-0ef744692180" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_d4db20a9-9ae2-43f6-bd21-03cc880f7037" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_530a9fd6-a593-4718-be88-0ef744692180" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_d4db20a9-9ae2-43f6-bd21-03cc880f7037" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_6c92d345-acfb-4128-b16d-910b67fc1313" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.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_530a9fd6-a593-4718-be88-0ef744692180" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_6c92d345-acfb-4128-b16d-910b67fc1313" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
