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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2025 Workiva-->
<!--r:27b3b5de-022e-4c5c-b5f3-f462afa29ac7,g:52c34734-3b40-433c-95cd-e5a1706d6cb4-->
<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-20241231.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_AssetsNet_4f37284f-a863-42dc-a53f-748d8e86ee71" 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_e77eca71-bba3-483c-ac30-c30c24ee58f2" 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_4f37284f-a863-42dc-a53f-748d8e86ee71" xlink:to="loc_us-gaap_Assets_e77eca71-bba3-483c-ac30-c30c24ee58f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_bcc40eb9-bd6b-43e9-b55e-87b80a7ab2d0" 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_4f37284f-a863-42dc-a53f-748d8e86ee71" xlink:to="loc_us-gaap_Liabilities_bcc40eb9-bd6b-43e9-b55e-87b80a7ab2d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_10b7bde6-55f4-4068-9250-2b2679fe5041" 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_406149fd-012d-405b-94bb-e946368d4228" 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_10b7bde6-55f4-4068-9250-2b2679fe5041" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLosses_406149fd-012d-405b-94bb-e946368d4228" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableGross_88266cfb-e947-4f4a-a659-b9419dd9774d" 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_10b7bde6-55f4-4068-9250-2b2679fe5041" xlink:to="loc_us-gaap_NotesReceivableGross_88266cfb-e947-4f4a-a659-b9419dd9774d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_6fe4bac4-6c13-4ab5-b2a1-d2d1aaf6cd31" 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_bff731fc-6353-4962-9c80-5ed7408bbff9" 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_6fe4bac4-6c13-4ab5-b2a1-d2d1aaf6cd31" xlink:to="loc_us-gaap_Liabilities_bff731fc-6353-4962-9c80-5ed7408bbff9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_350ab0ae-28d6-4d15-8325-0ac7f4923a2a" 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_6fe4bac4-6c13-4ab5-b2a1-d2d1aaf6cd31" xlink:to="loc_us-gaap_CommitmentsAndContingencies_350ab0ae-28d6-4d15-8325-0ac7f4923a2a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_a52d95da-79df-4a7f-bbf3-07f28eaf53dc" 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_6fe4bac4-6c13-4ab5-b2a1-d2d1aaf6cd31" xlink:to="loc_us-gaap_StockholdersEquity_a52d95da-79df-4a7f-bbf3-07f28eaf53dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_47808092-fbda-4743-afcf-50be61249c85" 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_65c32c76-d8ff-4724-9110-aa2e8b57b39b" 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_47808092-fbda-4743-afcf-50be61249c85" xlink:to="loc_us-gaap_CommonStockValue_65c32c76-d8ff-4724-9110-aa2e8b57b39b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_6b047832-12e7-4d99-bb76-05e5de318d75" 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_47808092-fbda-4743-afcf-50be61249c85" xlink:to="loc_us-gaap_AdditionalPaidInCapital_6b047832-12e7-4d99-bb76-05e5de318d75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_b17e972b-b81d-495e-856d-b70886762a91" 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_47808092-fbda-4743-afcf-50be61249c85" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_b17e972b-b81d-495e-856d-b70886762a91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_061edcc0-a7ab-4a0b-b92f-3773d2856b42" 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_47808092-fbda-4743-afcf-50be61249c85" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_061edcc0-a7ab-4a0b-b92f-3773d2856b42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_c3e97993-5f86-42da-8dc7-0a0dd5b4e7e5" 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_3e159ede-129a-4ddd-a71e-f840fc9bfe6d" 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_c3e97993-5f86-42da-8dc7-0a0dd5b4e7e5" xlink:to="loc_us-gaap_AccountsPayableCurrentAndNoncurrent_3e159ede-129a-4ddd-a71e-f840fc9bfe6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ThirdPartyLoanOwnerPayable_c246f38c-c22a-4dfe-8d6b-5a391b82d3da" xlink:href="afrm-20241231.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_c3e97993-5f86-42da-8dc7-0a0dd5b4e7e5" xlink:to="loc_afrm_ThirdPartyLoanOwnerPayable_c246f38c-c22a-4dfe-8d6b-5a391b82d3da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_769c2574-1674-49ab-8d5c-e1dd0aefd4b2" 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_c3e97993-5f86-42da-8dc7-0a0dd5b4e7e5" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_769c2574-1674-49ab-8d5c-e1dd0aefd4b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_8cf3efd2-84b2-40cb-8a8d-98a201780163" 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_c3e97993-5f86-42da-8dc7-0a0dd5b4e7e5" xlink:to="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_8cf3efd2-84b2-40cb-8a8d-98a201780163" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebt_9a71e64b-5769-482d-ad09-6057d5834537" 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_c3e97993-5f86-42da-8dc7-0a0dd5b4e7e5" xlink:to="loc_us-gaap_ConvertibleDebt_9a71e64b-5769-482d-ad09-6057d5834537" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebt_2e6647a1-f1a3-4731-9191-7cf02084fa63" 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_c3e97993-5f86-42da-8dc7-0a0dd5b4e7e5" xlink:to="loc_us-gaap_SecuredDebt_2e6647a1-f1a3-4731-9191-7cf02084fa63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_63d97f7d-8e2e-4e9f-86da-b63ba0b011e1" 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_c3e97993-5f86-42da-8dc7-0a0dd5b4e7e5" xlink:to="loc_us-gaap_LineOfCredit_63d97f7d-8e2e-4e9f-86da-b63ba0b011e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_2ce6f33b-8579-414a-8ab1-e2052118d2f7" 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_d2c26567-2b23-43e1-a58c-a4210ba5c11a" 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_2ce6f33b-8579-414a-8ab1-e2052118d2f7" xlink:to="loc_us-gaap_AccountsReceivableNet_d2c26567-2b23-43e1-a58c-a4210ba5c11a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableHeldForSaleAmount_195e7929-13b9-4168-a96a-9af2e39b91d1" 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_2ce6f33b-8579-414a-8ab1-e2052118d2f7" xlink:to="loc_us-gaap_LoansReceivableHeldForSaleAmount_195e7929-13b9-4168-a96a-9af2e39b91d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_38ede857-c37e-48cc-88dd-eef306861e83" 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_2ce6f33b-8579-414a-8ab1-e2052118d2f7" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_38ede857-c37e-48cc-88dd-eef306861e83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_4b13894a-2bad-4140-b4eb-964a1de663d9" 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_2ce6f33b-8579-414a-8ab1-e2052118d2f7" xlink:to="loc_us-gaap_OtherAssets_4b13894a-2bad-4140-b4eb-964a1de663d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_75c0114c-0513-4af7-8492-054120bd2169" 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_2ce6f33b-8579-414a-8ab1-e2052118d2f7" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_75c0114c-0513-4af7-8492-054120bd2169" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_fdfc2bec-8dec-4dd5-a163-9a6b93fdf88e" 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_2ce6f33b-8579-414a-8ab1-e2052118d2f7" xlink:to="loc_us-gaap_NotesReceivableNet_fdfc2bec-8dec-4dd5-a163-9a6b93fdf88e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_9858ded7-8f02-4557-9a50-3e5045f8520d" 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_2ce6f33b-8579-414a-8ab1-e2052118d2f7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_9858ded7-8f02-4557-9a50-3e5045f8520d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementAssetNet_6458d887-ebd2-46ef-a9f0-0723e9558087" xlink:href="afrm-20241231.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_2ce6f33b-8579-414a-8ab1-e2052118d2f7" xlink:to="loc_afrm_CommercialAgreementAssetNet_6458d887-ebd2-46ef-a9f0-0723e9558087" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInvestments_8dd00ef6-6ca2-4999-87fb-21e76f9645fa" 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_2ce6f33b-8579-414a-8ab1-e2052118d2f7" xlink:to="loc_us-gaap_OtherInvestments_8dd00ef6-6ca2-4999-87fb-21e76f9645fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_9228953d-e879-4032-a774-bd6c16569abc" 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_2ce6f33b-8579-414a-8ab1-e2052118d2f7" xlink:to="loc_us-gaap_RestrictedCash_9228953d-e879-4032-a774-bd6c16569abc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_e80f706e-d2bb-4de0-8502-af5010c63266" 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_2ce6f33b-8579-414a-8ab1-e2052118d2f7" xlink:to="loc_us-gaap_Goodwill_e80f706e-d2bb-4de0-8502-af5010c63266" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOMELOSS" xlink:type="simple" xlink:href="afrm-20241231.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOMELOSS"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOMELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_875d4e0f-6624-4691-813f-0c486fd35dc9" 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_9d816824-814c-4fe5-b3a4-628519d05a22" xlink:href="afrm-20241231.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_875d4e0f-6624-4691-813f-0c486fd35dc9" xlink:to="loc_afrm_TechnologyAndDataAnalyticsExpense_9d816824-814c-4fe5-b3a4-628519d05a22" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_bb40004b-bbd0-4c07-b643-d1cf2ae9e18c" 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_875d4e0f-6624-4691-813f-0c486fd35dc9" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_bb40004b-bbd0-4c07-b643-d1cf2ae9e18c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_760d3bd2-32be-43ea-9cb2-ac1a40207cbf" 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_875d4e0f-6624-4691-813f-0c486fd35dc9" xlink:to="loc_us-gaap_InterestExpenseDebt_760d3bd2-32be-43ea-9cb2-ac1a40207cbf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LossOnFinancingReceivableCommitmentsToPurchase_771f55cc-d9fe-4cee-bd95-53b0e8495cd2" xlink:href="afrm-20241231.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_875d4e0f-6624-4691-813f-0c486fd35dc9" xlink:to="loc_afrm_LossOnFinancingReceivableCommitmentsToPurchase_771f55cc-d9fe-4cee-bd95-53b0e8495cd2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_5e77ef34-8605-4be6-8387-d53097e86151" 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_875d4e0f-6624-4691-813f-0c486fd35dc9" xlink:to="loc_us-gaap_SellingAndMarketingExpense_5e77ef34-8605-4be6-8387-d53097e86151" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_7d401555-57a5-4a80-83c3-0aed76c0fac8" 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_875d4e0f-6624-4691-813f-0c486fd35dc9" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_7d401555-57a5-4a80-83c3-0aed76c0fac8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ProcessingAndServicingExpense_590c4747-32aa-4687-8638-5de9b48acb7c" xlink:href="afrm-20241231.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_875d4e0f-6624-4691-813f-0c486fd35dc9" xlink:to="loc_afrm_ProcessingAndServicingExpense_590c4747-32aa-4687-8638-5de9b48acb7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RestructuringChargesReversals_014cbc90-f791-4782-a3b1-c10354f9f654" xlink:href="afrm-20241231.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_875d4e0f-6624-4691-813f-0c486fd35dc9" xlink:to="loc_afrm_RestructuringChargesReversals_014cbc90-f791-4782-a3b1-c10354f9f654" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_67fb4150-755f-49d9-87fa-c493241074bb" 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_11f19db1-d334-405d-9e2a-4b3e11c09c4a" 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_67fb4150-755f-49d9-87fa-c493241074bb" xlink:to="loc_us-gaap_OperatingIncomeLoss_11f19db1-d334-405d-9e2a-4b3e11c09c4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_f0d76243-afb8-4145-b30c-fcf00fbfa43c" 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_67fb4150-755f-49d9-87fa-c493241074bb" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_f0d76243-afb8-4145-b30c-fcf00fbfa43c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_2638c656-2622-473b-a366-7a4eda2ca0a1" 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_3ed97cd4-6e98-4adf-9e6b-c851d51a03a3" 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_2638c656-2622-473b-a366-7a4eda2ca0a1" xlink:to="loc_us-gaap_Revenues_3ed97cd4-6e98-4adf-9e6b-c851d51a03a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_d1a6fd7c-6da1-40e0-9cc2-99234688d64f" 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_2638c656-2622-473b-a366-7a4eda2ca0a1" xlink:to="loc_us-gaap_CostsAndExpenses_d1a6fd7c-6da1-40e0-9cc2-99234688d64f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_5e4cf114-4717-44fd-9674-f5988db843ce" 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_0afde403-2722-4d56-b589-06157dd74695" 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_5e4cf114-4717-44fd-9674-f5988db843ce" xlink:to="loc_us-gaap_NetIncomeLoss_0afde403-2722-4d56-b589-06157dd74695" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_df21c11a-3578-4b75-acfc-91fae7fed26b" 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_5e4cf114-4717-44fd-9674-f5988db843ce" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_df21c11a-3578-4b75-acfc-91fae7fed26b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_2eb9cc6f-1b66-4135-ac63-ef39c4698729" 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_cc19b67a-f370-45be-ad2a-92c799a0772e" 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_2eb9cc6f-1b66-4135-ac63-ef39c4698729" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_cc19b67a-f370-45be-ad2a-92c799a0772e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_9e1ec017-11b6-422b-9776-0bd8a8e91d14" 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_2eb9cc6f-1b66-4135-ac63-ef39c4698729" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_9e1ec017-11b6-422b-9776-0bd8a8e91d14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_b62c90b4-9af9-43f8-8b7c-71e85027f6cf" 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_66315ec3-6b96-47bd-81d1-9afef6745161" 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_b62c90b4-9af9-43f8-8b7c-71e85027f6cf" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_66315ec3-6b96-47bd-81d1-9afef6745161" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_bc5dea25-b402-4817-9560-1d22cb9db404" 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_b62c90b4-9af9-43f8-8b7c-71e85027f6cf" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_bc5dea25-b402-4817-9560-1d22cb9db404" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_c36c639e-95df-47d5-92d8-226ceeedcd48" 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_b62c90b4-9af9-43f8-8b7c-71e85027f6cf" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_c36c639e-95df-47d5-92d8-226ceeedcd48" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="afrm-20241231.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_NetCashProvidedByUsedInInvestingActivities_98f7d537-b695-4e03-9946-0a20819e71e7" 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_38f73c8e-36c7-4d86-b1a6-b05991f6babe" 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_98f7d537-b695-4e03-9946-0a20819e71e7" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_38f73c8e-36c7-4d86-b1a6-b05991f6babe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_7b479df3-32b4-400a-a88c-c3073bb76e12" 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_98f7d537-b695-4e03-9946-0a20819e71e7" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_7b479df3-32b4-400a-a88c-c3073bb76e12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireFinanceReceivables_889a673d-f733-45d0-9a00-a9d69e117568" 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_98f7d537-b695-4e03-9946-0a20819e71e7" xlink:to="loc_us-gaap_PaymentsToAcquireFinanceReceivables_889a673d-f733-45d0-9a00-a9d69e117568" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfFinanceReceivables_fcadd5e7-a094-423c-be24-7e6b9f107e6a" 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_98f7d537-b695-4e03-9946-0a20819e71e7" xlink:to="loc_us-gaap_ProceedsFromSaleOfFinanceReceivables_fcadd5e7-a094-423c-be24-7e6b9f107e6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_5468c7c5-0acd-4dfd-9c79-245f70f874c9" 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_98f7d537-b695-4e03-9946-0a20819e71e7" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_5468c7c5-0acd-4dfd-9c79-245f70f874c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromCollectionOfFinanceReceivables_66523f4c-9671-41b4-ad9d-53e5780daeb1" 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_98f7d537-b695-4e03-9946-0a20819e71e7" xlink:to="loc_us-gaap_ProceedsFromCollectionOfFinanceReceivables_66523f4c-9671-41b4-ad9d-53e5780daeb1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_350271c7-2e00-4664-bbae-2fbb777bd109" 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_98f7d537-b695-4e03-9946-0a20819e71e7" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_350271c7-2e00-4664-bbae-2fbb777bd109" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_df32ae24-b299-46bf-9a8f-31cacc233b2a" 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_915664d2-fb7d-40a7-b1c0-ab37cc843ffc" xlink:href="afrm-20241231.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_df32ae24-b299-46bf-9a8f-31cacc233b2a" xlink:to="loc_afrm_ProceedsFromStockOptionsAndWarrantsExercised_915664d2-fb7d-40a7-b1c0-ab37cc843ffc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_c19f1301-5e84-46b6-9e09-73872d741e47" 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_df32ae24-b299-46bf-9a8f-31cacc233b2a" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_c19f1301-5e84-46b6-9e09-73872d741e47" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfDebt_1359cc3d-431e-4355-a051-c2327405db5c" 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_df32ae24-b299-46bf-9a8f-31cacc233b2a" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfDebt_1359cc3d-431e-4355-a051-c2327405db5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_e59d487d-f297-4fb0-975c-04a621564f89" 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_df32ae24-b299-46bf-9a8f-31cacc233b2a" xlink:to="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_e59d487d-f297-4fb0-975c-04a621564f89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_a24d9b13-1c74-48a9-8e62-cb11c918c994" 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_df32ae24-b299-46bf-9a8f-31cacc233b2a" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_a24d9b13-1c74-48a9-8e62-cb11c918c994" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtExtinguishmentCosts_ff53e6a9-6aa4-4164-88c1-35006aff77be" 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_df32ae24-b299-46bf-9a8f-31cacc233b2a" xlink:to="loc_us-gaap_PaymentsOfDebtExtinguishmentCosts_ff53e6a9-6aa4-4164-88c1-35006aff77be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_9546d0de-be76-4a39-a5e0-5181a92d1954" 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_df32ae24-b299-46bf-9a8f-31cacc233b2a" xlink:to="loc_us-gaap_RepaymentsOfLongTermLinesOfCredit_9546d0de-be76-4a39-a5e0-5181a92d1954" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSecuredDebt_60ff38a8-23cf-44d0-a8e0-b7b9981583b3" 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_df32ae24-b299-46bf-9a8f-31cacc233b2a" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSecuredDebt_60ff38a8-23cf-44d0-a8e0-b7b9981583b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfSecuredDebt_8e2929fc-e953-4035-aefa-47fd99b42271" 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_df32ae24-b299-46bf-9a8f-31cacc233b2a" xlink:to="loc_us-gaap_RepaymentsOfSecuredDebt_8e2929fc-e953-4035-aefa-47fd99b42271" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_3f793512-bda3-4ac4-b563-bb8083c0fd19" 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_df32ae24-b299-46bf-9a8f-31cacc233b2a" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_3f793512-bda3-4ac4-b563-bb8083c0fd19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_9594b586-1e15-435d-860c-abe95518919e" 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_c7a00cf0-6f39-4f74-ada7-d7690ede06be" 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_9594b586-1e15-435d-860c-abe95518919e" xlink:to="loc_us-gaap_RestrictedCash_c7a00cf0-6f39-4f74-ada7-d7690ede06be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_7380d792-479e-4b49-b228-562369b45311" 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_9594b586-1e15-435d-860c-abe95518919e" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_7380d792-479e-4b49-b228-562369b45311" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_f734e16a-bfba-43bd-90fc-21b3ecb5d287" 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_f3ebc800-adf9-4530-a297-37fd92f8c50f" 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_f734e16a-bfba-43bd-90fc-21b3ecb5d287" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f3ebc800-adf9-4530-a297-37fd92f8c50f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_99013eb7-b8d3-427a-a9bf-c0c1948a4905" 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_f734e16a-bfba-43bd-90fc-21b3ecb5d287" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_99013eb7-b8d3-427a-a9bf-c0c1948a4905" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_bfb6d4c8-e67a-4f2c-b60c-a30a63fe3122" 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_f734e16a-bfba-43bd-90fc-21b3ecb5d287" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_bfb6d4c8-e67a-4f2c-b60c-a30a63fe3122" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0e104a92-864a-4c6e-b178-b330b4949cc1" 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_f734e16a-bfba-43bd-90fc-21b3ecb5d287" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0e104a92-864a-4c6e-b178-b330b4949cc1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" 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_d5e4007f-4fa8-455b-8c23-e81dd974c36d" 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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_d5e4007f-4fa8-455b-8c23-e81dd974c36d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable_4b74da00-1690-40f6-a9c1-f3b67409db2c" xlink:href="afrm-20241231.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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_afrm_IncreaseDecreaseInThirdPartyLoanOwnerPayable_4b74da00-1690-40f6-a9c1-f3b67409db2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_6931900d-7d19-4c56-8e71-498d546be230" 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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_us-gaap_NetIncomeLoss_6931900d-7d19-4c56-8e71-498d546be230" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_GainLossOnChangesInFairValueOfAssetsAndLiabilities_30e9cfd4-07d8-421a-9f6c-923f9bc9e57e" xlink:href="afrm-20241231.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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_afrm_GainLossOnChangesInFairValueOfAssetsAndLiabilities_30e9cfd4-07d8-421a-9f6c-923f9bc9e57e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_ca93f671-540e-4a10-934e-40a24281b4ac" 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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_ca93f671-540e-4a10-934e-40a24281b4ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfDiscountOnAvailableForSaleSecurities_99da53be-73a3-4603-b903-a414f10e3820" xlink:href="afrm-20241231.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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_afrm_AmortizationOfDiscountOnAvailableForSaleSecurities_99da53be-73a3-4603-b903-a414f10e3820" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_b45868a7-0a20-48a9-9923-449dcfe92843" 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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_b45868a7-0a20-48a9-9923-449dcfe92843" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables_f29bdf3d-f18c-4901-9906-96502e8c0c43" xlink:href="afrm-20241231.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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_afrm_AccretionAmortizationOfDiscountsAndPremiumsFinancingReceivables_f29bdf3d-f18c-4901-9906-96502e8c0c43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_310ed0cc-629a-42c5-beef-bcfb13ce0d74" 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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_310ed0cc-629a-42c5-beef-bcfb13ce0d74" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_85a4071b-d6db-4e0c-be78-88c4477fce00" 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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_85a4071b-d6db-4e0c-be78-88c4477fce00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_087383c3-5415-4b8b-ada9-a34e77938f75" 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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_087383c3-5415-4b8b-ada9-a34e77938f75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_6b3fb470-de8e-464e-89ba-fb2b0215a3f6" 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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_us-gaap_ShareBasedCompensation_6b3fb470-de8e-464e-89ba-fb2b0215a3f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_8e0786c4-40db-4b2b-9780-32d7948c1dde" 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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_8e0786c4-40db-4b2b-9780-32d7948c1dde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLossesExpensed_babdc81e-950a-466f-84ab-442c68f7dba1" 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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_us-gaap_ProvisionForLoanLossesExpensed_babdc81e-950a-466f-84ab-442c68f7dba1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_fbb8edbb-aa57-40d6-85e2-10fe08849a76" 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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_us-gaap_ProceedsFromSaleOfLoansHeldForSale_fbb8edbb-aa57-40d6-85e2-10fe08849a76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_29fafacd-0d8f-48a8-a6dc-b5ad6392be09" 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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_29fafacd-0d8f-48a8-a6dc-b5ad6392be09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_55e48dd5-a796-47c2-872b-d468003f8ea5" 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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_55e48dd5-a796-47c2-872b-d468003f8ea5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IncreaseDecreaseInCommercialAgreementAssets_0969a9e4-e816-4cea-b508-ca0cb0d77fda" xlink:href="afrm-20241231.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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_afrm_IncreaseDecreaseInCommercialAgreementAssets_0969a9e4-e816-4cea-b508-ca0cb0d77fda" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfCommercialAgreementAssets_dbb36e4e-a4a8-4d79-9919-55990f9d2252" xlink:href="afrm-20241231.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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_afrm_AmortizationOfCommercialAgreementAssets_dbb36e4e-a4a8-4d79-9919-55990f9d2252" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_7dce4b0b-b927-497d-b0e0-2494f6ae48c5" 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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_7dce4b0b-b927-497d-b0e0-2494f6ae48c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForOriginationAndPurchasesOfLoansHeldForSale_4636efe1-279c-4dd7-bd1b-35b5c7c84f4e" 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_09ec3d7f-52bf-444b-acaf-2f9b37f98b95" xlink:to="loc_us-gaap_PaymentsForOriginationAndPurchasesOfLoansHeldForSale_4636efe1-279c-4dd7-bd1b-35b5c7c84f4e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/RevenueDisaggregatedRevenueDetails" xlink:type="simple" xlink:href="afrm-20241231.xsd#RevenueDisaggregatedRevenueDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/RevenueDisaggregatedRevenueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_0c1159e6-03ab-4230-a760-a06b313533f0" 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_InterestAndDividendIncomeOperating_46b64274-9195-4da0-befa-57126256edb5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestAndDividendIncomeOperating"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_0c1159e6-03ab-4230-a760-a06b313533f0" xlink:to="loc_us-gaap_InterestAndDividendIncomeOperating_46b64274-9195-4da0-befa-57126256edb5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_aac9cc64-adba-4baf-b0fe-b1c10d4ee075" 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_0c1159e6-03ab-4230-a760-a06b313533f0" xlink:to="loc_us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets_aac9cc64-adba-4baf-b0fe-b1c10d4ee075" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_cde47060-e4a4-4a5f-b571-97f8b67fab1b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_0c1159e6-03ab-4230-a760-a06b313533f0" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_cde47060-e4a4-4a5f-b571-97f8b67fab1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSalesOfLoansNet_e85800d0-5d0d-4ef5-b739-ec894180afad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnSalesOfLoansNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_0c1159e6-03ab-4230-a760-a06b313533f0" xlink:to="loc_us-gaap_GainLossOnSalesOfLoansNet_e85800d0-5d0d-4ef5-b739-ec894180afad" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/RevenueScheduleofInterestIncomeDetails" xlink:type="simple" xlink:href="afrm-20241231.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_10a55584-5f84-4fe8-9198-7afc64862c2e" 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_4ad59847-7deb-4e4b-8874-ca455d16edcb" 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_10a55584-5f84-4fe8-9198-7afc64862c2e" xlink:to="loc_us-gaap_InterestAndFeeIncomeLoansAndLeases_4ad59847-7deb-4e4b-8874-ca455d16edcb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AccretionOfDiscountsFinancingReceivables_84246b0d-0fcc-4144-950c-b80061eaf9eb" xlink:href="afrm-20241231.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_10a55584-5f84-4fe8-9198-7afc64862c2e" xlink:to="loc_afrm_AccretionOfDiscountsFinancingReceivables_84246b0d-0fcc-4144-950c-b80061eaf9eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_AmortizationOfPremiumsFinancingReceivables_dcbdf0e2-0a50-4ac2-bb4e-6f0125e10331" xlink:href="afrm-20241231.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_10a55584-5f84-4fe8-9198-7afc64862c2e" xlink:to="loc_afrm_AmortizationOfPremiumsFinancingReceivables_dcbdf0e2-0a50-4ac2-bb4e-6f0125e10331" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_dc4841d0-bd02-4da9-a432-d6ae8e7d6cc3" 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_10a55584-5f84-4fe8-9198-7afc64862c2e" xlink:to="loc_us-gaap_FinancingReceivableAccruedInterestWriteoff_dc4841d0-bd02-4da9-a432-d6ae8e7d6cc3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofLoansHeldforInvestmentDetails" xlink:type="simple" xlink:href="afrm-20241231.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_65921ca0-1765-4723-8611-aad688342d80" 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_f0514ede-a7bf-49e5-8c44-46704876b132" 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_65921ca0-1765-4723-8611-aad688342d80" xlink:to="loc_us-gaap_FinancingReceivableBeforeAllowanceForCreditLossAndFee_f0514ede-a7bf-49e5-8c44-46704876b132" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAccruedInterestBeforeAllowanceForCreditLoss_da010eaa-c6ec-49de-8e2c-13647bbbe880" 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_65921ca0-1765-4723-8611-aad688342d80" xlink:to="loc_us-gaap_FinancingReceivableAccruedInterestBeforeAllowanceForCreditLoss_da010eaa-c6ec-49de-8e2c-13647bbbe880" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableUnamortizedPurchasePremium_165fdd9f-20c8-42cc-ba43-c678d563797d" xlink:href="afrm-20241231.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_65921ca0-1765-4723-8611-aad688342d80" xlink:to="loc_afrm_FinancingReceivableUnamortizedPurchasePremium_165fdd9f-20c8-42cc-ba43-c678d563797d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableAcquiredInBusinessCombinationFairValueAdjustment_c7a6c233-876c-429b-9c24-91f0c0e58774" xlink:href="afrm-20241231.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_65921ca0-1765-4723-8611-aad688342d80" xlink:to="loc_afrm_FinancingReceivableAcquiredInBusinessCombinationFairValueAdjustment_c7a6c233-876c-429b-9c24-91f0c0e58774" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableUnamortizedPurchaseDiscount_790d6741-5bfa-42d7-8858-50605407b08c" xlink:href="afrm-20241231.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_65921ca0-1765-4723-8611-aad688342d80" xlink:to="loc_afrm_FinancingReceivableUnamortizedPurchaseDiscount_790d6741-5bfa-42d7-8858-50605407b08c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableLossOnSelfOrganizingLoans_b54a3536-873d-418f-94da-fd65c76b3756" xlink:href="afrm-20241231.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_65921ca0-1765-4723-8611-aad688342d80" xlink:to="loc_afrm_FinancingReceivableLossOnSelfOrganizingLoans_b54a3536-873d-418f-94da-fd65c76b3756" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LoansHeldforInvestmentandAllowanceforCreditLossesScheduleofCreditQualitybyITACsScoreDetails" xlink:type="simple" xlink:href="afrm-20241231.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_41459439-ec9d-4416-b8d2-1407c9327409" xlink:href="afrm-20241231.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_b0e2fab3-f64b-4f5b-bd78-fd97d0de1890" xlink:href="afrm-20241231.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_41459439-ec9d-4416-b8d2-1407c9327409" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_b0e2fab3-f64b-4f5b-bd78-fd97d0de1890" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_991be752-07a1-479b-9113-fb934bc9397a" 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_41459439-ec9d-4416-b8d2-1407c9327409" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_991be752-07a1-479b-9113-fb934bc9397a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_d6e58cfc-36d2-473e-9e9d-b195e86e8f4c" xlink:href="afrm-20241231.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_b1105720-3f34-42bb-8b68-8f15710be6ff" xlink:href="afrm-20241231.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_d6e58cfc-36d2-473e-9e9d-b195e86e8f4c" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_b1105720-3f34-42bb-8b68-8f15710be6ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_ab0807f5-11b1-48ea-a447-a83c52f0b1c3" 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_d6e58cfc-36d2-473e-9e9d-b195e86e8f4c" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_ab0807f5-11b1-48ea-a447-a83c52f0b1c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_75d2b550-9336-42d9-b578-8cfadd3f7248" 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_936a7347-e9d3-48c6-b7c4-207ae610e326" 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_75d2b550-9336-42d9-b578-8cfadd3f7248" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_936a7347-e9d3-48c6-b7c4-207ae610e326" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_9fd8c442-8ac8-49bd-b4fe-fe328a6e8132" 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_75d2b550-9336-42d9-b578-8cfadd3f7248" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_9fd8c442-8ac8-49bd-b4fe-fe328a6e8132" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_ccd52d9c-06a8-43dc-af2b-5587f2da815b" 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_75d2b550-9336-42d9-b578-8cfadd3f7248" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff_ccd52d9c-06a8-43dc-af2b-5587f2da815b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_2906ad3d-17ec-45d1-80af-2d8ba9a13f07" 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_75d2b550-9336-42d9-b578-8cfadd3f7248" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_2906ad3d-17ec-45d1-80af-2d8ba9a13f07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_16eb4b57-3dfb-4132-85b0-7678e2b24928" 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_75d2b550-9336-42d9-b578-8cfadd3f7248" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_16eb4b57-3dfb-4132-85b0-7678e2b24928" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_54f8b7cb-9898-4187-bb67-3d7fdd687c1f" 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_75d2b550-9336-42d9-b578-8cfadd3f7248" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff_54f8b7cb-9898-4187-bb67-3d7fdd687c1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoffAfterRecovery_4c807e07-e055-44f0-8760-ab9a578b7505" 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_75d97c4f-adeb-4717-a035-54d7466e468f" 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_4c807e07-e055-44f0-8760-ab9a578b7505" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery_75d97c4f-adeb-4717-a035-54d7466e468f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_8462afca-5edc-4feb-8c78-0f2e73ad2650" 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_4c807e07-e055-44f0-8760-ab9a578b7505" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff_8462afca-5edc-4feb-8c78-0f2e73ad2650" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableIncludingLoansHeldForSaleExcludingAccruedInterestBeforeAllowanceForCreditLoss_ea8da6e0-8102-433d-95b5-4ff9389c5aa8" xlink:href="afrm-20241231.xsd#afrm_FinancingReceivableIncludingLoansHeldForSaleExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_249a3dc9-8dc5-47b7-9675-e24e12b568e4" 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_ea8da6e0-8102-433d-95b5-4ff9389c5aa8" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear_249a3dc9-8dc5-47b7-9675-e24e12b568e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_87a4ace8-8c96-4b2c-bf96-9c4e36584f12" 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_ea8da6e0-8102-433d-95b5-4ff9389c5aa8" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_87a4ace8-8c96-4b2c-bf96-9c4e36584f12" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_cd9289db-ecc3-4a99-9ebe-290b2556b117" 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_ea8da6e0-8102-433d-95b5-4ff9389c5aa8" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear_cd9289db-ecc3-4a99-9ebe-290b2556b117" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_93aa8e45-0911-4a26-981f-060bf4978c4b" 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_ea8da6e0-8102-433d-95b5-4ff9389c5aa8" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear_93aa8e45-0911-4a26-981f-060bf4978c4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_28407bfd-a8a5-4e83-a5ef-061358ddd7a2" 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_ea8da6e0-8102-433d-95b5-4ff9389c5aa8" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear_28407bfd-a8a5-4e83-a5ef-061358ddd7a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_6a90f34a-e503-4cb8-82d7-2e67295e333e" 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_ea8da6e0-8102-433d-95b5-4ff9389c5aa8" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_6a90f34a-e503-4cb8-82d7-2e67295e333e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_c03b2064-6531-4f51-8879-7d5cf2d49a25" xlink:href="afrm-20241231.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_2f26bcfd-ee61-4dfd-8317-e42b63ab1e19" xlink:href="afrm-20241231.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_c03b2064-6531-4f51-8879-7d5cf2d49a25" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_2f26bcfd-ee61-4dfd-8317-e42b63ab1e19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_4c1a86e9-5668-40f4-8f59-d6dc0b154886" 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_c03b2064-6531-4f51-8879-7d5cf2d49a25" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff_4c1a86e9-5668-40f4-8f59-d6dc0b154886" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet_f85419cd-696a-41ba-9748-ffc670a00e42" xlink:href="afrm-20241231.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_cb4b6759-ddcc-45c5-bf20-88ea1020aa07" xlink:href="afrm-20241231.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_f85419cd-696a-41ba-9748-ffc670a00e42" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_cb4b6759-ddcc-45c5-bf20-88ea1020aa07" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_1660ebbc-73cc-42f2-a268-6009d1efdfac" 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_f85419cd-696a-41ba-9748-ffc670a00e42" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff_1660ebbc-73cc-42f2-a268-6009d1efdfac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet_3fcafc0f-8708-4b3c-8676-48eeceb939f2" xlink:href="afrm-20241231.xsd#afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_0c773829-687f-4444-a782-a2fdef31635f" xlink:href="afrm-20241231.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_3fcafc0f-8708-4b3c-8676-48eeceb939f2" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_0c773829-687f-4444-a782-a2fdef31635f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_4f4352c7-5835-4e9c-bd50-de30fff0db1e" 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_3fcafc0f-8708-4b3c-8676-48eeceb939f2" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff_4f4352c7-5835-4e9c-bd50-de30fff0db1e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet_a2353956-813a-4707-9e9f-408c9f0d23f9" xlink:href="afrm-20241231.xsd#afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteOffRecoveriesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_fafecab8-f64f-4d8c-962c-36f7db132c54" 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_a2353956-813a-4707-9e9f-408c9f0d23f9" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff_fafecab8-f64f-4d8c-962c-36f7db132c54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearRecoveries_f9a89123-be1d-4d17-a690-ea0b57bc0912" xlink:href="afrm-20241231.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_a2353956-813a-4707-9e9f-408c9f0d23f9" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearRecoveries_f9a89123-be1d-4d17-a690-ea0b57bc0912" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossRecovery_742e5ec8-3cb3-4dae-ad13-d8fc1b6033b0" 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_25110ea0-0257-46bc-9f9b-a3a85c86036b" xlink:href="afrm-20241231.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_742e5ec8-3cb3-4dae-ad13-d8fc1b6033b0" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearRecoveries_25110ea0-0257-46bc-9f9b-a3a85c86036b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_75d018a6-5f28-4322-8312-54bb2f02bfaa" xlink:href="afrm-20241231.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_742e5ec8-3cb3-4dae-ad13-d8fc1b6033b0" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearRecoveries_75d018a6-5f28-4322-8312-54bb2f02bfaa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_5b464403-bcb0-495f-abab-4d8928a8d8f2" xlink:href="afrm-20241231.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_742e5ec8-3cb3-4dae-ad13-d8fc1b6033b0" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearRecoveries_5b464403-bcb0-495f-abab-4d8928a8d8f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_a7d0015d-d3e2-4c53-bee4-f1c4c89b8f3a" xlink:href="afrm-20241231.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_742e5ec8-3cb3-4dae-ad13-d8fc1b6033b0" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearRecoveries_a7d0015d-d3e2-4c53-bee4-f1c4c89b8f3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_534e983d-3e37-439c-8dba-a618bde2bc3f" xlink:href="afrm-20241231.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_742e5ec8-3cb3-4dae-ad13-d8fc1b6033b0" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearRecoveries_534e983d-3e37-439c-8dba-a618bde2bc3f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearRecoveries_b696b0ae-612e-4f89-907f-e4f5d0920fcb" xlink:href="afrm-20241231.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_742e5ec8-3cb3-4dae-ad13-d8fc1b6033b0" xlink:to="loc_afrm_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearRecoveries_b696b0ae-612e-4f89-907f-e4f5d0920fcb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofPropertyEquipmentandSoftwareDetails" xlink:type="simple" xlink:href="afrm-20241231.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_1378aefe-35ff-4328-9d47-eae5923efccd" 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_75907402-50ca-4b12-a201-799a2ae87827" 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_1378aefe-35ff-4328-9d47-eae5923efccd" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_75907402-50ca-4b12-a201-799a2ae87827" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_46e7d518-168a-4654-bf8f-a444461cd4b6" 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_1378aefe-35ff-4328-9d47-eae5923efccd" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_46e7d518-168a-4654-bf8f-a444461cd4b6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofIntangibleAssetsDetails" xlink:type="simple" xlink:href="afrm-20241231.xsd#BalanceSheetComponentsScheduleofIntangibleAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/BalanceSheetComponentsScheduleofIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService_21771dec-d9b0-4b7f-9c5f-be1f58333df4" xlink:href="afrm-20241231.xsd#afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_41efcd39-1338-47eb-88c4-7b7929305af3" 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_21771dec-d9b0-4b7f-9c5f-be1f58333df4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_41efcd39-1338-47eb-88c4-7b7929305af3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_0ecab367-a348-404d-b209-f3a09f75fc87" 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_21771dec-d9b0-4b7f-9c5f-be1f58333df4" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_0ecab367-a348-404d-b209-f3a09f75fc87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_19161ddd-70ec-47a5-ae00-8ac25b1d1e7c" 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_cf153564-c6e2-4f5f-bee3-ba25567f6bc4" 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_19161ddd-70ec-47a5-ae00-8ac25b1d1e7c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_cf153564-c6e2-4f5f-bee3-ba25567f6bc4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_e2bd21d9-854a-4e94-86d5-38647e728850" 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_19161ddd-70ec-47a5-ae00-8ac25b1d1e7c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_e2bd21d9-854a-4e94-86d5-38647e728850" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_23040b31-e00a-4bf2-bac4-e31126a0aea5" 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_06e42b15-90da-4f14-928e-152a1653ad61" 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_23040b31-e00a-4bf2-bac4-e31126a0aea5" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_06e42b15-90da-4f14-928e-152a1653ad61" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_7a253b5e-0c35-44b6-adb3-73f6c88d75b6" 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_23040b31-e00a-4bf2-bac4-e31126a0aea5" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_7a253b5e-0c35-44b6-adb3-73f6c88d75b6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofIntangibleAssetsDetails_1" xlink:type="simple" xlink:href="afrm-20241231.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_cd9cc0b5-5659-4e1e-b6cf-18b3d8bfc4f3" xlink:href="afrm-20241231.xsd#afrm_IntangibleAssetsNetExcludingGoodwillAndNotYetPlacedIntoService"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_fc259ec2-23e8-4bcc-af82-3aee2fdba63a" 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_cd9cc0b5-5659-4e1e-b6cf-18b3d8bfc4f3" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_fc259ec2-23e8-4bcc-af82-3aee2fdba63a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_69faf570-148d-4007-bbda-8fc2e9e574d5" 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_cd9cc0b5-5659-4e1e-b6cf-18b3d8bfc4f3" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_69faf570-148d-4007-bbda-8fc2e9e574d5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofExpectedFutureAmortizationExpenseDetails" xlink:type="simple" xlink:href="afrm-20241231.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_9d663003-f176-45eb-b20a-835cc164e2d4" 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_27884a0a-d5be-4084-88f7-c62b88ea8a5e" 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_9d663003-f176-45eb-b20a-835cc164e2d4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear_27884a0a-d5be-4084-88f7-c62b88ea8a5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_c5afecbd-105b-42df-bfec-c99f6b3b0c7a" 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_9d663003-f176-45eb-b20a-835cc164e2d4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_c5afecbd-105b-42df-bfec-c99f6b3b0c7a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_bcd3de6f-9055-4166-a61e-3e293cd73357" 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_9d663003-f176-45eb-b20a-835cc164e2d4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_bcd3de6f-9055-4166-a61e-3e293cd73357" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_5b56d248-31a9-4da2-a684-e5714d3d1e59" 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_9d663003-f176-45eb-b20a-835cc164e2d4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_5b56d248-31a9-4da2-a684-e5714d3d1e59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearThree_9c4fa6a4-2875-4b24-b0e7-b76e7c16f65c" xlink:href="afrm-20241231.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_9d663003-f176-45eb-b20a-835cc164e2d4" xlink:to="loc_afrm_FiniteLivedIntangibleAssetExpectedAmortizationAfterYearThree_9c4fa6a4-2875-4b24-b0e7-b76e7c16f65c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofOtherAssetsDetails" xlink:type="simple" xlink:href="afrm-20241231.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_e4502ca5-f001-4987-92d5-a4b0ccd48256" 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_1f4cd2d4-b076-4bb4-b3e5-99b67fe9cb8a" 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_e4502ca5-f001-4987-92d5-a4b0ccd48256" xlink:to="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_1f4cd2d4-b076-4bb4-b3e5-99b67fe9cb8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RiskSharingAsset_e35a8191-96c2-4c2c-a1c1-376befce610b" xlink:href="afrm-20241231.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_e4502ca5-f001-4987-92d5-a4b0ccd48256" xlink:to="loc_afrm_RiskSharingAsset_e35a8191-96c2-4c2c-a1c1-376befce610b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount_636ac7f3-9a4c-4492-aa68-cb9d9d1f4269" 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_e4502ca5-f001-4987-92d5-a4b0ccd48256" xlink:to="loc_us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount_636ac7f3-9a4c-4492-aa68-cb9d9d1f4269" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivables_8ad82102-e4d6-426e-ac4b-28b1e3e487c5" 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_e4502ca5-f001-4987-92d5-a4b0ccd48256" xlink:to="loc_us-gaap_OtherReceivables_8ad82102-e4d6-426e-ac4b-28b1e3e487c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_eb711bfc-8864-434d-a5d9-eb65b9535653" 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_e4502ca5-f001-4987-92d5-a4b0ccd48256" xlink:to="loc_us-gaap_DerivativeAssets_eb711bfc-8864-434d-a5d9-eb65b9535653" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositAssets_59e7b50d-732b-48f3-b11d-50a129ad5515" 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_e4502ca5-f001-4987-92d5-a4b0ccd48256" xlink:to="loc_us-gaap_DepositAssets_59e7b50d-732b-48f3-b11d-50a129ad5515" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_2295ef80-6005-4ae9-bb96-a0523a0d326a" 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_e4502ca5-f001-4987-92d5-a4b0ccd48256" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_2295ef80-6005-4ae9-bb96-a0523a0d326a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PrepaidPayrollTax_369fa1a8-4619-410d-ad7c-06a6f47a0665" xlink:href="afrm-20241231.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_e4502ca5-f001-4987-92d5-a4b0ccd48256" xlink:to="loc_afrm_PrepaidPayrollTax_369fa1a8-4619-410d-ad7c-06a6f47a0665" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_bccd5efd-1fa9-4894-b185-d3bf0b786834" 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_e4502ca5-f001-4987-92d5-a4b0ccd48256" xlink:to="loc_us-gaap_PrepaidExpenseCurrentAndNoncurrent_bccd5efd-1fa9-4894-b185-d3bf0b786834" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CashDepositsProcessingReserves_33b53111-cdf8-44c9-a2f1-288ae292dfbe" xlink:href="afrm-20241231.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_e4502ca5-f001-4987-92d5-a4b0ccd48256" xlink:to="loc_afrm_CashDepositsProcessingReserves_33b53111-cdf8-44c9-a2f1-288ae292dfbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneous_656807a9-140f-4fa8-ad12-baa7d85ccbb9" 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_e4502ca5-f001-4987-92d5-a4b0ccd48256" xlink:to="loc_us-gaap_OtherAssetsMiscellaneous_656807a9-140f-4fa8-ad12-baa7d85ccbb9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/BalanceSheetComponentsScheduleofAccruedExpensesandOtherLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20241231.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_9f7ecc1a-8c9d-4cce-b092-68b1865a5555" 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_ae408d66-2c5c-48f6-8b57-7db74a7a720b" 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_9f7ecc1a-8c9d-4cce-b092-68b1865a5555" xlink:to="loc_us-gaap_OperatingLeaseLiability_ae408d66-2c5c-48f6-8b57-7db74a7a720b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DerivativeInstrumentsCollateralHeld_9a638a54-8645-4fe7-ab97-58477f6c74f5" xlink:href="afrm-20241231.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_9f7ecc1a-8c9d-4cce-b092-68b1865a5555" xlink:to="loc_afrm_DerivativeInstrumentsCollateralHeld_9a638a54-8645-4fe7-ab97-58477f6c74f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_aaeead11-055f-4afc-9842-a596865eec0f" 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_9f7ecc1a-8c9d-4cce-b092-68b1865a5555" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_aaeead11-055f-4afc-9842-a596865eec0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_37756b2d-2508-4b38-ad82-82fb4524bd3f" 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_9f7ecc1a-8c9d-4cce-b092-68b1865a5555" xlink:to="loc_us-gaap_OtherLiabilities_37756b2d-2508-4b38-ad82-82fb4524bd3f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LeasesScheduleofMaturitiesofLeaseLiabilitiesDetails" xlink:type="simple" xlink:href="afrm-20241231.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_1c07c07a-e90a-4230-8cff-033a3777436b" 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_335fc680-aa8c-4c38-829d-4af0ed2accd8" 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_1c07c07a-e90a-4230-8cff-033a3777436b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_335fc680-aa8c-4c38-829d-4af0ed2accd8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_a4e936d2-95cc-4599-a890-bed51b38a89f" 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_1c07c07a-e90a-4230-8cff-033a3777436b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_a4e936d2-95cc-4599-a890-bed51b38a89f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LesseeOperatingLeaseLiabilityToBePaidYearFourAndAfterYearFour_d364ef99-92c8-4baf-a5a2-6f94544cd835" xlink:href="afrm-20241231.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_1c07c07a-e90a-4230-8cff-033a3777436b" xlink:to="loc_afrm_LesseeOperatingLeaseLiabilityToBePaidYearFourAndAfterYearFour_d364ef99-92c8-4baf-a5a2-6f94544cd835" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_4662949b-060c-47df-8b46-a4dba3f1fa64" 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_1c07c07a-e90a-4230-8cff-033a3777436b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_4662949b-060c-47df-8b46-a4dba3f1fa64" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_96b39e1b-6218-45b8-8fa5-5f839ea8eea1" 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_1c07c07a-e90a-4230-8cff-033a3777436b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_96b39e1b-6218-45b8-8fa5-5f839ea8eea1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_8a4045a2-374a-41db-b776-aab12f56f3bd" 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_1c07c07a-e90a-4230-8cff-033a3777436b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_8a4045a2-374a-41db-b776-aab12f56f3bd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/LeasesScheduleofMaturitiesofLeaseLiabilitiesDetails_1" xlink:type="simple" xlink:href="afrm-20241231.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_1288556b-d2c3-4b00-9b85-44dd1cd33ff2" 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_4e75a52f-2edd-4b41-b732-532c9319c961" 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_1288556b-d2c3-4b00-9b85-44dd1cd33ff2" xlink:to="loc_us-gaap_OperatingLeaseLiability_4e75a52f-2edd-4b41-b732-532c9319c961" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_891750d9-1e9f-4f64-a69e-bff7bf11bc94" 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_1288556b-d2c3-4b00-9b85-44dd1cd33ff2" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_891750d9-1e9f-4f64-a69e-bff7bf11bc94" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DebtScheduleofComponentsofDebtDetails" xlink:type="simple" xlink:href="afrm-20241231.xsd#DebtScheduleofComponentsofDebtDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/DebtScheduleofComponentsofDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_4708eacf-1240-49f0-af1c-f3a0d2202ea2" 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_314ae856-68ae-4107-acf8-fea6a7dc048d" 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_4708eacf-1240-49f0-af1c-f3a0d2202ea2" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_314ae856-68ae-4107-acf8-fea6a7dc048d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_45556d12-f2f8-4b16-9d1b-0156f7026a70" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_4708eacf-1240-49f0-af1c-f3a0d2202ea2" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_45556d12-f2f8-4b16-9d1b-0156f7026a70" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DebtScheduleoftheInterestExpenseRecognizedRelatedtotheConvertibleSeniorNotesDetails" xlink:type="simple" xlink:href="afrm-20241231.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_136b9c20-7af0-444b-8942-b36f256a083c" 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_5ed83417-b525-445c-95e0-3f8750551643" 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_136b9c20-7af0-444b-8942-b36f256a083c" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_5ed83417-b525-445c-95e0-3f8750551643" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_25dd04ad-29a2-49d4-8edf-b989a36eaf7f" 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_136b9c20-7af0-444b-8942-b36f256a083c" xlink:to="loc_us-gaap_InterestExpense_25dd04ad-29a2-49d4-8edf-b989a36eaf7f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/DebtScheduleofAggregateFutureMaturitiesofFundingDebtDetails" xlink:type="simple" xlink:href="afrm-20241231.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_4fa5ca54-17c9-4a4b-8a75-96786f590fef" 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_75c14c2c-366f-4c9a-9116-03ce979e7e9b" 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_4fa5ca54-17c9-4a4b-8a75-96786f590fef" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear_75c14c2c-366f-4c9a-9116-03ce979e7e9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_2acb6297-0d8d-4091-9587-81055cc861b2" 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_4fa5ca54-17c9-4a4b-8a75-96786f590fef" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_2acb6297-0d8d-4091-9587-81055cc861b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_1324c759-9aa3-49b2-a330-eb04dbf7fe05" 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_4fa5ca54-17c9-4a4b-8a75-96786f590fef" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_1324c759-9aa3-49b2-a330-eb04dbf7fe05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_2cdb9879-1745-4275-a58f-25fe4428c7e9" 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_4fa5ca54-17c9-4a4b-8a75-96786f590fef" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_2cdb9879-1745-4275-a58f-25fe4428c7e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_2edff8e1-3268-42c0-8475-17e2358d1c4a" 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_4fa5ca54-17c9-4a4b-8a75-96786f590fef" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_2edff8e1-3268-42c0-8475-17e2358d1c4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_LongTermDebtMaturityAfterYearFour_26afb822-e45e-4fa2-9614-02f35d16db62" xlink:href="afrm-20241231.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_4fa5ca54-17c9-4a4b-8a75-96786f590fef" xlink:to="loc_afrm_LongTermDebtMaturityAfterYearFour_26afb822-e45e-4fa2-9614-02f35d16db62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_6574bdb6-6dc4-4dfa-b037-4fafb74e0ecc" 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_227f62cb-2e37-43bf-b835-cda912d10ec9" 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_6574bdb6-6dc4-4dfa-b037-4fafb74e0ecc" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_227f62cb-2e37-43bf-b835-cda912d10ec9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_fdd0eb3b-6b06-4013-afd5-a932ecb29066" 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_6574bdb6-6dc4-4dfa-b037-4fafb74e0ecc" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_fdd0eb3b-6b06-4013-afd5-a932ecb29066" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/InvestmentsScheduleofAvailableforSaleSecuritieswithUnrealizedLossesDetails" xlink:type="simple" xlink:href="afrm-20241231.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_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_a91b96fd-e3df-4447-aaaf-585c42db6e44" 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_5096f945-8fbe-4b80-83c2-04575e60e19f" 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_a91b96fd-e3df-4447-aaaf-585c42db6e44" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_5096f945-8fbe-4b80-83c2-04575e60e19f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_ccd78f31-1ec1-44c5-a4f0-83de0d273ba5" 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_a91b96fd-e3df-4447-aaaf-585c42db6e44" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_ccd78f31-1ec1-44c5-a4f0-83de0d273ba5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_9e3d2c94-47af-4d6b-b7ce-f4e3b918966d" 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_9caea934-60b3-4c68-b11d-f3b0d7c846b8" 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_9e3d2c94-47af-4d6b-b7ce-f4e3b918966d" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_9caea934-60b3-4c68-b11d-f3b0d7c846b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_e79cbbda-ffef-4baf-a5e3-00ca0897091d" 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_9e3d2c94-47af-4d6b-b7ce-f4e3b918966d" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_e79cbbda-ffef-4baf-a5e3-00ca0897091d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/InvestmentsScheduleofLengthofContractualMaturitiesDetails" xlink:type="simple" xlink:href="afrm-20241231.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_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_9dd1759b-f763-47da-88bd-f2153bfd0505" 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_aa18f38a-097b-4ebc-bc8b-3c74e771305a" 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_9dd1759b-f763-47da-88bd-f2153bfd0505" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsFairValue_aa18f38a-097b-4ebc-bc8b-3c74e771305a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_eeb7c60e-65b3-4870-a81e-63ef5e4e5f42" 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_9dd1759b-f763-47da-88bd-f2153bfd0505" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue_eeb7c60e-65b3-4870-a81e-63ef5e4e5f42" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_a9fcc209-174c-4cf9-bf1f-8e106c789746" 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_bb293eab-6d4b-4218-b698-b27e220699ac" 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_a9fcc209-174c-4cf9-bf1f-8e106c789746" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_bb293eab-6d4b-4218-b698-b27e220699ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_0192b283-2ada-4b50-ac75-a9666b30677f" 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_a9fcc209-174c-4cf9-bf1f-8e106c789746" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_0192b283-2ada-4b50-ac75-a9666b30677f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance_21fc8036-9d1b-4cec-b8f1-13f877a1b2d5" xlink:href="afrm-20241231.xsd#afrm_DebtSecuritiesAvailableForSaleAmortizedCostIncludingCreditLossAllowance"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_6bdfa75b-5806-4666-830a-061ce1486ef9" 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_21fc8036-9d1b-4cec-b8f1-13f877a1b2d5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesNextRollingTwelveMonthsAmortizedCostBasis_6bdfa75b-5806-4666-830a-061ce1486ef9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_c41dab05-42aa-4d81-b5fc-f900d434f9ee" 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_21fc8036-9d1b-4cec-b8f1-13f877a1b2d5" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveAmortizedCostBasis_c41dab05-42aa-4d81-b5fc-f900d434f9ee" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="simple" xlink:href="afrm-20241231.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_LiabilitiesFairValueDisclosure_3b398610-77b2-49dd-b936-f27522bf886a" 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_DerivativeLiabilities_0b6a9d7e-0ef0-4607-9b7f-c9a8e30231dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_3b398610-77b2-49dd-b936-f27522bf886a" xlink:to="loc_us-gaap_DerivativeLiabilities_0b6a9d7e-0ef0-4607-9b7f-c9a8e30231dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure_53bfb84c-7cc8-474f-8963-52eb3c52d90f" xlink:href="afrm-20241231.xsd#afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_3b398610-77b2-49dd-b936-f27522bf886a" xlink:to="loc_afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure_53bfb84c-7cc8-474f-8963-52eb3c52d90f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_PerformanceFeeLiabilityFairValueDisclosure_d7733e8b-979e-4b86-a260-727f41cb3fa4" xlink:href="afrm-20241231.xsd#afrm_PerformanceFeeLiabilityFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_3b398610-77b2-49dd-b936-f27522bf886a" xlink:to="loc_afrm_PerformanceFeeLiabilityFairValueDisclosure_d7733e8b-979e-4b86-a260-727f41cb3fa4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingLiabilityAtFairValueAmount_80dabc77-676a-4b80-a046-deef4119789c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ServicingLiabilityAtFairValueAmount"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_3b398610-77b2-49dd-b936-f27522bf886a" xlink:to="loc_us-gaap_ServicingLiabilityAtFairValueAmount_80dabc77-676a-4b80-a046-deef4119789c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_2cacbc0a-26e0-4f09-86a4-aca9f6e0b59b" 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_us-gaap_CashAndCashEquivalentsFairValueDisclosure_ff1d0cd9-8901-437b-8376-ae7cdc23b141" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_2cacbc0a-26e0-4f09-86a4-aca9f6e0b59b" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_ff1d0cd9-8901-437b-8376-ae7cdc23b141" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_RestrictedCashFairValueDisclosure_2fc083d9-0148-4a4d-bcc1-f9beccff287c" xlink:href="afrm-20241231.xsd#afrm_RestrictedCashFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_2cacbc0a-26e0-4f09-86a4-aca9f6e0b59b" xlink:to="loc_afrm_RestrictedCashFairValueDisclosure_2fc083d9-0148-4a4d-bcc1-f9beccff287c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_ResidualTrustCertificatesAssetFairValueDisclosure_501724ef-d95e-405c-96ae-2d1df442146d" xlink:href="afrm-20241231.xsd#afrm_ResidualTrustCertificatesAssetFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_2cacbc0a-26e0-4f09-86a4-aca9f6e0b59b" xlink:to="loc_afrm_ResidualTrustCertificatesAssetFairValueDisclosure_501724ef-d95e-405c-96ae-2d1df442146d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServicingAsset_5dda024a-31ee-444f-b0c2-99ee5c6ee689" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ServicingAsset"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_2cacbc0a-26e0-4f09-86a4-aca9f6e0b59b" xlink:to="loc_us-gaap_ServicingAsset_5dda024a-31ee-444f-b0c2-99ee5c6ee689" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_a2f36a88-6277-4231-8130-699c52ae4bec" 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_AssetsFairValueDisclosure_2cacbc0a-26e0-4f09-86a4-aca9f6e0b59b" xlink:to="loc_us-gaap_DerivativeAssets_a2f36a88-6277-4231-8130-699c52ae4bec" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/FairValueofFinancialAssetsandLiabilitiesScheduleofFinancialAssetsandLiabilitiesNotRecordedatFairValueDetails" xlink:type="simple" xlink:href="afrm-20241231.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_1c561366-de44-46b5-a1bd-56053a9bb8e1" 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_0ac0ea50-ed66-4a99-92a3-569ff75951c2" 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_1c561366-de44-46b5-a1bd-56053a9bb8e1" xlink:to="loc_us-gaap_ConvertibleDebtFairValueDisclosures_0ac0ea50-ed66-4a99-92a3-569ff75951c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesPayableFairValueDisclosure_8e3b44fe-06a5-4a65-b034-86ec3dd6a733" 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_1c561366-de44-46b5-a1bd-56053a9bb8e1" xlink:to="loc_us-gaap_NotesPayableFairValueDisclosure_8e3b44fe-06a5-4a65-b034-86ec3dd6a733" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LinesOfCreditFairValueDisclosure_cdabfa14-f381-4ea2-a09b-0f08d35c1fcf" 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_1c561366-de44-46b5-a1bd-56053a9bb8e1" xlink:to="loc_us-gaap_LinesOfCreditFairValueDisclosure_cdabfa14-f381-4ea2-a09b-0f08d35c1fcf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_d5c67a02-aa61-4eba-b4ad-27d8445d07c4" 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_e62c8566-5530-4c10-b04e-c702e9226f8f" xlink:href="afrm-20241231.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_d5c67a02-aa61-4eba-b4ad-27d8445d07c4" xlink:to="loc_afrm_FinancingReceivableHeldForSaleFairValueDisclosure_e62c8566-5530-4c10-b04e-c702e9226f8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_afrm_FinancingReceivableFairValueDisclosure_7c614775-4b51-44d5-82ad-b159d27cc289" xlink:href="afrm-20241231.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_d5c67a02-aa61-4eba-b4ad-27d8445d07c4" xlink:to="loc_afrm_FinancingReceivableFairValueDisclosure_7c614775-4b51-44d5-82ad-b159d27cc289" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsFairValueDisclosure_a1be71e7-a56c-4532-9812-0e65f8faf92f" 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_d5c67a02-aa61-4eba-b4ad-27d8445d07c4" xlink:to="loc_us-gaap_OtherAssetsFairValueDisclosure_a1be71e7-a56c-4532-9812-0e65f8faf92f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/EquityIncentivePlansScheduleofComponentsandClassificationofStockbasedCompensationDetails" xlink:type="simple" xlink:href="afrm-20241231.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_c73f4447-ac5b-44e0-aa5e-5a3ca973d110" 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_ce2ef13c-7676-4dc0-b517-36c711807543" 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_c73f4447-ac5b-44e0-aa5e-5a3ca973d110" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_ce2ef13c-7676-4dc0-b517-36c711807543" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_6956ea78-3238-4409-ae09-d019329fc052" 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_c73f4447-ac5b-44e0-aa5e-5a3ca973d110" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_6956ea78-3238-4409-ae09-d019329fc052" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholdersScheduleofBasicandDilutedNetLossPerShareDetails" xlink:type="simple" xlink:href="afrm-20241231.xsd#NetIncomeLossperShareAttributabletoCommonStockholdersScheduleofBasicandDilutedNetLossPerShareDetails"/>
  <link:calculationLink xlink:role="http://www.affirm.com/role/NetIncomeLossperShareAttributabletoCommonStockholdersScheduleofBasicandDilutedNetLossPerShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_fb154454-79ff-477a-8b6e-c777cb5c6745" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_f4f68e1c-e4a1-4c01-bd94-e7ece0ca2a0d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_fb154454-79ff-477a-8b6e-c777cb5c6745" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_f4f68e1c-e4a1-4c01-bd94-e7ece0ca2a0d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_6569ea32-cd51-4913-9f68-aa1ad7fd9b28" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_fb154454-79ff-477a-8b6e-c777cb5c6745" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_6569ea32-cd51-4913-9f68-aa1ad7fd9b28" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
