<?xml version="1.0" encoding="utf-8"?>
<!--XBRL document created with Toppan Merrill Bridge  11.3.0.1 -->
<!--Based on XBRL 2.1-->
<!--Created on: 4/24/2026 10:28:45 AM-->
<!--Modified on: 4/24/2026 10:28:45 AM-->
<link:linkbase 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" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:xlink="http://www.w3.org/1999/xlink">
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#StatementConsolidatedBalanceSheets" roleURI="http://www.ke.com/role/StatementConsolidatedBalanceSheets" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#StatementConsolidatedStatementsOfComprehensiveIncome" roleURI="http://www.ke.com/role/StatementConsolidatedStatementsOfComprehensiveIncome" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#StatementConsolidatedStatementsOfCashFlows" roleURI="http://www.ke.com/role/StatementConsolidatedStatementsOfCashFlows" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureOrganizationNetRevenueNetLossOperatingInvestingAndFinancingCashFlowsDetails" roleURI="http://www.ke.com/role/DisclosureOrganizationNetRevenueNetLossOperatingInvestingAndFinancingCashFlowsDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureSignificantAccountingPoliciesRevenueRecognitionDetails" roleURI="http://www.ke.com/role/DisclosureSignificantAccountingPoliciesRevenueRecognitionDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureCashCashEquivalentsRestrictedCashDetails" roleURI="http://www.ke.com/role/DisclosureCashCashEquivalentsRestrictedCashDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureShortTermInvestmentsDetails" roleURI="http://www.ke.com/role/DisclosureShortTermInvestmentsDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureShortTermInvestmentsHeldToMaturityAndAvailableForSaleDebtInvestmentsDetails" roleURI="http://www.ke.com/role/DisclosureShortTermInvestmentsHeldToMaturityAndAvailableForSaleDebtInvestmentsDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureInventoriesDetails" roleURI="http://www.ke.com/role/DisclosureInventoriesDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosurePrepaymentsReceivablesAndOtherAssetsDetails" roleURI="http://www.ke.com/role/DisclosurePrepaymentsReceivablesAndOtherAssetsDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureAccountsReceivableAndContractAssetsNetDetails" roleURI="http://www.ke.com/role/DisclosureAccountsReceivableAndContractAssetsNetDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureAccountsReceivableAndContractAssetsNetAgeingAnalysisOfAccountsReceivableDetails" roleURI="http://www.ke.com/role/DisclosureAccountsReceivableAndContractAssetsNetAgeingAnalysisOfAccountsReceivableDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureAccountsReceivableAndContractAssetsNetContractAssetsNetDetails" roleURI="http://www.ke.com/role/DisclosureAccountsReceivableAndContractAssetsNetContractAssetsNetDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureFinancingReceivablesNetDetails" roleURI="http://www.ke.com/role/DisclosureFinancingReceivablesNetDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosurePropertyPlantAndEquipmentNetDetails" roleURI="http://www.ke.com/role/DisclosurePropertyPlantAndEquipmentNetDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureIntangibleAssetsNetDetails" roleURI="http://www.ke.com/role/DisclosureIntangibleAssetsNetDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureIntangibleAssetsNetEstimatedAmortizationExpenseDetails" roleURI="http://www.ke.com/role/DisclosureIntangibleAssetsNetEstimatedAmortizationExpenseDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureLeasesMaturitiesOfLeaseLiabilitiesDetailsCalc2" roleURI="http://www.ke.com/role/DisclosureLeasesMaturitiesOfLeaseLiabilitiesDetailsCalc2" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureLeasesComponentsOfLeaseCostDetails" roleURI="http://www.ke.com/role/DisclosureLeasesComponentsOfLeaseCostDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureLeasesSupplementalBalanceSheetInformationRelatedToLeasesDetails" roleURI="http://www.ke.com/role/DisclosureLeasesSupplementalBalanceSheetInformationRelatedToLeasesDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureLeasesMaturitiesOfLeaseLiabilitiesDetails" roleURI="http://www.ke.com/role/DisclosureLeasesMaturitiesOfLeaseLiabilitiesDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureLeasesLeaseIncomeDetails" roleURI="http://www.ke.com/role/DisclosureLeasesLeaseIncomeDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureLeasesMaturitiesOfUndiscountedLeaseReceivablesDetails" roleURI="http://www.ke.com/role/DisclosureLeasesMaturitiesOfUndiscountedLeaseReceivablesDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureLongTermInvestmentsNetChangesInLongTermInvestmentsDetails" roleURI="http://www.ke.com/role/DisclosureLongTermInvestmentsNetChangesInLongTermInvestmentsDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureLongTermInvestmentsNetInvestmentsAccountedForAtFairValuesDetails" roleURI="http://www.ke.com/role/DisclosureLongTermInvestmentsNetInvestmentsAccountedForAtFairValuesDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureLongTermInvestmentsNetEquityInvestmentsMeasuredUnderMeasurementAlternativeAndNavPracticalExpedientDetails" roleURI="http://www.ke.com/role/DisclosureLongTermInvestmentsNetEquityInvestmentsMeasuredUnderMeasurementAlternativeAndNavPracticalExpedientDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureLongTermInvestmentsNetLongTermHeldToMaturityInvestmentsDetails" roleURI="http://www.ke.com/role/DisclosureLongTermInvestmentsNetLongTermHeldToMaturityInvestmentsDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureBorrowingsDetails" roleURI="http://www.ke.com/role/DisclosureBorrowingsDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureAccountsPayableDetails" roleURI="http://www.ke.com/role/DisclosureAccountsPayableDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureAccruedExpensesAndOtherCurrentLiabilitiesDetails" roleURI="http://www.ke.com/role/DisclosureAccruedExpensesAndOtherCurrentLiabilitiesDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureOtherIncomeNetDetails" roleURI="http://www.ke.com/role/DisclosureOtherIncomeNetDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureInterestIncomeNetDetails" roleURI="http://www.ke.com/role/DisclosureInterestIncomeNetDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureTaxationComponentsOfIncomeTaxDetails" roleURI="http://www.ke.com/role/DisclosureTaxationComponentsOfIncomeTaxDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureTaxationEffectiveTaxRatesDetails" roleURI="http://www.ke.com/role/DisclosureTaxationEffectiveTaxRatesDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureTaxationIncomeTaxesPaidNetOfRefundsReceivedDetails" roleURI="http://www.ke.com/role/DisclosureTaxationIncomeTaxesPaidNetOfRefundsReceivedDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureTaxationDeferredIncomeTaxAssetsAndLiabilitiesDetails" roleURI="http://www.ke.com/role/DisclosureTaxationDeferredIncomeTaxAssetsAndLiabilitiesDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureFairValueMeasurementDetails" roleURI="http://www.ke.com/role/DisclosureFairValueMeasurementDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <roleRef xlink:type="simple" xlink:href="beke-20251231.xsd#DisclosureCommitmentsAndContingenciesMaturityDetails" roleURI="http://www.ke.com/role/DisclosureCommitmentsAndContingenciesMaturityDetails" xmlns="http://www.xbrl.org/2003/linkbase" />
  <link:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item" />
  <calculationLink xlink:role="http://www.ke.com/role/StatementConsolidatedBalanceSheets" xlink:type="extended" xlink:title="995200100 - Statement - CONSOLIDATED BALANCE SHEETS" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets" xlink:label="Assets" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsCurrent" xlink:label="us-gaap_AssetsCurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_AssetsCurrent_639126233171460342" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_AccountsReceivableAndContractAssetsNetCurrent" xlink:label="beke_AccountsReceivableAndContractAssetsNetCurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_639126233171460342" xlink:to="beke_AccountsReceivableAndContractAssetsNetCurrent_639126233171460342" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="us-gaap_CashAndCashEquivalentsAtCarryingValue_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_639126233171460342" xlink:to="us-gaap_CashAndCashEquivalentsAtCarryingValue_639126233171460342" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_LoanReceivablesFromRelatedPartiesCurrent" xlink:label="beke_LoanReceivablesFromRelatedPartiesCurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_639126233171460342" xlink:to="beke_LoanReceivablesFromRelatedPartiesCurrent_639126233171460342" order="3" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InventoryNet" xlink:label="us-gaap_InventoryNet_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_639126233171460342" xlink:to="us-gaap_InventoryNet_639126233171460342" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherReceivablesNetCurrent" xlink:label="us-gaap_OtherReceivablesNetCurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_639126233171460342" xlink:to="us-gaap_OtherReceivablesNetCurrent_639126233171460342" order="5" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCashCurrent" xlink:label="us-gaap_RestrictedCashCurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_639126233171460342" xlink:to="us-gaap_RestrictedCashCurrent_639126233171460342" order="6" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="us-gaap_PrepaidExpenseAndOtherAssetsCurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_639126233171460342" xlink:to="us-gaap_PrepaidExpenseAndOtherAssetsCurrent_639126233171460342" order="7" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShortTermInvestments" xlink:label="us-gaap_ShortTermInvestments_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_639126233171460342" xlink:to="us-gaap_ShortTermInvestments_639126233171460342" order="8" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NotesAndLoansReceivableNetCurrent" xlink:label="us-gaap_NotesAndLoansReceivableNetCurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_639126233171460342" xlink:to="us-gaap_NotesAndLoansReceivableNetCurrent_639126233171460342" order="9" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsNoncurrent" xlink:label="us-gaap_AssetsNoncurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="Assets" xlink:to="us-gaap_AssetsNoncurrent_639126233171460342" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Goodwill" xlink:label="us-gaap_Goodwill_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsNoncurrent_639126233171460342" xlink:to="us-gaap_Goodwill_639126233171460342" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_LoansReceivableFromRelatedPartiesNoncurrent" xlink:label="beke_LoansReceivableFromRelatedPartiesNoncurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsNoncurrent_639126233171460342" xlink:to="beke_LoansReceivableFromRelatedPartiesNoncurrent_639126233171460342" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="us-gaap_IntangibleAssetsNetExcludingGoodwill_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsNoncurrent_639126233171460342" xlink:to="us-gaap_IntangibleAssetsNetExcludingGoodwill_639126233171460342" order="3" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermInvestments" xlink:label="us-gaap_LongTermInvestments_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsNoncurrent_639126233171460342" xlink:to="us-gaap_LongTermInvestments_639126233171460342" order="4" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="us-gaap_OperatingLeaseRightOfUseAsset_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsNoncurrent_639126233171460342" xlink:to="us-gaap_OperatingLeaseRightOfUseAsset_639126233171460342" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PrepaidExpenseAndOtherAssetsNoncurrent" xlink:label="us-gaap_PrepaidExpenseAndOtherAssetsNoncurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsNoncurrent_639126233171460342" xlink:to="us-gaap_PrepaidExpenseAndOtherAssetsNoncurrent_639126233171460342" order="6" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="us-gaap_PropertyPlantAndEquipmentNet_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AssetsNoncurrent_639126233171460342" xlink:to="us-gaap_PropertyPlantAndEquipmentNet_639126233171460342" order="7" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="LiabilitiesAndStockholdersEquity" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="us-gaap_CommitmentsAndContingencies_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="us-gaap_CommitmentsAndContingencies_639126233171460342" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities" xlink:label="us-gaap_Liabilities_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="us-gaap_Liabilities_639126233171460342" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesCurrent" xlink:label="us-gaap_LiabilitiesCurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Liabilities_639126233171460342" xlink:to="us-gaap_LiabilitiesCurrent_639126233171460342" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsPayableCurrent" xlink:label="us-gaap_AccountsPayableCurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_639126233171460342" xlink:to="us-gaap_AccountsPayableCurrent_639126233171460342" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilitiesCurrent" xlink:label="us-gaap_OtherLiabilitiesCurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_639126233171460342" xlink:to="us-gaap_OtherLiabilitiesCurrent_639126233171460342" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_LoanPayablesToRelatedPartiesCurrent" xlink:label="beke_LoanPayablesToRelatedPartiesCurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_639126233171460342" xlink:to="beke_LoanPayablesToRelatedPartiesCurrent_639126233171460342" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccruedIncomeTaxesCurrent" xlink:label="us-gaap_AccruedIncomeTaxesCurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_639126233171460342" xlink:to="us-gaap_AccruedIncomeTaxesCurrent_639126233171460342" order="4" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccruedLiabilitiesAndOtherLiabilities" xlink:label="us-gaap_AccruedLiabilitiesAndOtherLiabilities_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_639126233171460342" xlink:to="us-gaap_AccruedLiabilitiesAndOtherLiabilities_639126233171460342" order="5" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredRevenueCurrent" xlink:label="us-gaap_DeferredRevenueCurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_639126233171460342" xlink:to="us-gaap_DeferredRevenueCurrent_639126233171460342" order="6" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent" xlink:label="us-gaap_EmployeeRelatedLiabilitiesCurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_639126233171460342" xlink:to="us-gaap_EmployeeRelatedLiabilitiesCurrent_639126233171460342" order="7" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerRefundLiabilityCurrent" xlink:label="us-gaap_ContractWithCustomerRefundLiabilityCurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_639126233171460342" xlink:to="us-gaap_ContractWithCustomerRefundLiabilityCurrent_639126233171460342" order="8" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiabilityCurrent" xlink:label="us-gaap_OperatingLeaseLiabilityCurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_639126233171460342" xlink:to="us-gaap_OperatingLeaseLiabilityCurrent_639126233171460342" order="9" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShortTermBankLoansAndNotesPayable" xlink:label="us-gaap_ShortTermBankLoansAndNotesPayable_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_639126233171460342" xlink:to="us-gaap_ShortTermBankLoansAndNotesPayable_639126233171460342" order="10" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesNoncurrent" xlink:label="us-gaap_LiabilitiesNoncurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_Liabilities_639126233171460342" xlink:to="us-gaap_LiabilitiesNoncurrent_639126233171460342" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet" xlink:label="us-gaap_DeferredIncomeTaxLiabilitiesNet_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesNoncurrent_639126233171460342" xlink:to="us-gaap_DeferredIncomeTaxLiabilitiesNet_639126233171460342" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent" xlink:label="us-gaap_OperatingLeaseLiabilityNoncurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesNoncurrent_639126233171460342" xlink:to="us-gaap_OperatingLeaseLiabilityNoncurrent_639126233171460342" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_LoanPayablesToRelatedPartiesNoncurrent" xlink:label="beke_LoanPayablesToRelatedPartiesNoncurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesNoncurrent_639126233171460342" xlink:to="beke_LoanPayablesToRelatedPartiesNoncurrent_639126233171460342" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_LongTermBankLoansAndNotesPayable" xlink:label="beke_LongTermBankLoansAndNotesPayable_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesNoncurrent_639126233171460342" xlink:to="beke_LongTermBankLoansAndNotesPayable_639126233171460342" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="us-gaap_OtherLiabilitiesNoncurrent_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesNoncurrent_639126233171460342" xlink:to="us-gaap_OtherLiabilitiesNoncurrent_639126233171460342" order="5" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LiabilitiesAndStockholdersEquity" xlink:to="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_639126233171460342" order="3" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MinorityInterest" xlink:label="us-gaap_MinorityInterest_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_639126233171460342" xlink:to="us-gaap_MinorityInterest_639126233171460342" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity" xlink:label="us-gaap_StockholdersEquity_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_639126233171460342" xlink:to="us-gaap_StockholdersEquity_639126233171460342" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_639126233171460342" xlink:to="us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_639126233171460342" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="us-gaap_AdditionalPaidInCapital_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_639126233171460342" xlink:to="us-gaap_AdditionalPaidInCapital_639126233171460342" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockValue" xlink:label="us-gaap_CommonStockValue_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_639126233171460342" xlink:to="us-gaap_CommonStockValue_639126233171460342" order="3" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TreasuryStockCommonValue" xlink:label="us-gaap_TreasuryStockCommonValue_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_639126233171460342" xlink:to="us-gaap_TreasuryStockCommonValue_639126233171460342" order="4" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="us-gaap_RetainedEarningsAccumulatedDeficit_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_639126233171460342" xlink:to="us-gaap_RetainedEarningsAccumulatedDeficit_639126233171460342" order="5" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance" xlink:label="us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_639126233171460342" xlink:to="us-gaap_StatutoryAccountingPracticesStatutoryCapitalAndSurplusBalance_639126233171460342" order="6" use="optional" weight="1" priority="2" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/StatementConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended" xlink:title="995200200 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_ComprehensiveIncomeNetOfTaxToCommonStockHolders" xlink:label="beke_ComprehensiveIncomeNetOfTaxToCommonStockHolders_1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="us-gaap_ComprehensiveIncomeNetOfTax_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="beke_ComprehensiveIncomeNetOfTaxToCommonStockHolders_1" xlink:to="us-gaap_ComprehensiveIncomeNetOfTax_639126233171460342" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest" xlink:label="us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_ComprehensiveIncomeNetOfTax_639126233171460342" xlink:to="us-gaap_ComprehensiveIncomeNetOfTaxAttributableToNoncontrollingInterest_639126233171460342" order="1" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest" xlink:label="us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_ComprehensiveIncomeNetOfTax_639126233171460342" xlink:to="us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_639126233171460342" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="us-gaap_OtherComprehensiveIncomeLossNetOfTax_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_639126233171460342" xlink:to="us-gaap_OtherComprehensiveIncomeLossNetOfTax_639126233171460342" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax" xlink:label="us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossNetOfTax_639126233171460342" xlink:to="us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_639126233171460342" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:label="us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OtherComprehensiveIncomeLossNetOfTax_639126233171460342" xlink:to="us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax_639126233171460342" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProfitLoss" xlink:label="us-gaap_ProfitLoss_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_639126233171460342" xlink:to="us-gaap_ProfitLoss_639126233171460342" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="us-gaap_IncomeTaxExpenseBenefit_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_ProfitLoss_639126233171460342" xlink:to="us-gaap_IncomeTaxExpenseBenefit_639126233171460342" order="1" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_ProfitLoss_639126233171460342" xlink:to="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_639126233171460342" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="us-gaap_OtherNonoperatingIncomeExpense_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_639126233171460342" xlink:to="us-gaap_OtherNonoperatingIncomeExpense_639126233171460342" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount" xlink:label="us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_639126233171460342" xlink:to="us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_639126233171460342" order="2" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ForeignCurrencyTransactionLossBeforeTax" xlink:label="us-gaap_ForeignCurrencyTransactionLossBeforeTax_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_639126233171460342" xlink:to="us-gaap_ForeignCurrencyTransactionLossBeforeTax_639126233171460342" order="3" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UnrealizedGainLossOnInvestments" xlink:label="us-gaap_UnrealizedGainLossOnInvestments_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_639126233171460342" xlink:to="us-gaap_UnrealizedGainLossOnInvestments_639126233171460342" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_EquityMethodInvestmentImpairmentAndProvisions" xlink:label="beke_EquityMethodInvestmentImpairmentAndProvisions_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_639126233171460342" xlink:to="beke_EquityMethodInvestmentImpairmentAndProvisions_639126233171460342" order="5" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_IncomeLossFromEquityMethodInvestmentsAndProvisionForLoanLossesExpensed" xlink:label="beke_IncomeLossFromEquityMethodInvestmentsAndProvisionForLoanLossesExpensed_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_639126233171460342" xlink:to="beke_IncomeLossFromEquityMethodInvestmentsAndProvisionForLoanLossesExpensed_639126233171460342" order="6" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet" xlink:label="us-gaap_InterestIncomeExpenseNonoperatingNet_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_639126233171460342" xlink:to="us-gaap_InterestIncomeExpenseNonoperatingNet_639126233171460342" order="7" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingIncomeLoss" xlink:label="us-gaap_OperatingIncomeLoss_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_639126233171460342" xlink:to="us-gaap_OperatingIncomeLoss_639126233171460342" order="8" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingExpenses" xlink:label="us-gaap_OperatingExpenses_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OperatingIncomeLoss_639126233171460342" xlink:to="us-gaap_OperatingExpenses_639126233171460342" order="1" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment" xlink:label="us-gaap_GoodwillAndIntangibleAssetImpairment_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OperatingExpenses_639126233171460342" xlink:to="us-gaap_GoodwillAndIntangibleAssetImpairment_639126233171460342" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ResearchAndDevelopmentExpense" xlink:label="us-gaap_ResearchAndDevelopmentExpense_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OperatingExpenses_639126233171460342" xlink:to="us-gaap_ResearchAndDevelopmentExpense_639126233171460342" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="us-gaap_GeneralAndAdministrativeExpense_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OperatingExpenses_639126233171460342" xlink:to="us-gaap_GeneralAndAdministrativeExpense_639126233171460342" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SellingAndMarketingExpense" xlink:label="us-gaap_SellingAndMarketingExpense_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OperatingExpenses_639126233171460342" xlink:to="us-gaap_SellingAndMarketingExpense_639126233171460342" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GrossProfit" xlink:label="us-gaap_GrossProfit_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OperatingIncomeLoss_639126233171460342" xlink:to="us-gaap_GrossProfit_639126233171460342" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostOfRevenue" xlink:label="us-gaap_CostOfRevenue_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_GrossProfit_639126233171460342" xlink:to="us-gaap_CostOfRevenue_639126233171460342" order="1" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_SplitCommissions" xlink:label="beke_SplitCommissions_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_CostOfRevenue_639126233171460342" xlink:to="beke_SplitCommissions_639126233171460342" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_InternalCommissionAndCompensation" xlink:label="beke_InternalCommissionAndCompensation_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_CostOfRevenue_639126233171460342" xlink:to="beke_InternalCommissionAndCompensation_639126233171460342" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_HomeRenovationAndFurnishingCost" xlink:label="beke_HomeRenovationAndFurnishingCost_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_CostOfRevenue_639126233171460342" xlink:to="beke_HomeRenovationAndFurnishingCost_639126233171460342" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_HomeRentalServices" xlink:label="beke_HomeRentalServices_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_CostOfRevenue_639126233171460342" xlink:to="beke_HomeRentalServices_639126233171460342" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_StoreCost" xlink:label="beke_StoreCost_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_CostOfRevenue_639126233171460342" xlink:to="beke_StoreCost_639126233171460342" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherCostOfOperatingRevenue" xlink:label="us-gaap_OtherCostOfOperatingRevenue_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_CostOfRevenue_639126233171460342" xlink:to="us-gaap_OtherCostOfOperatingRevenue_639126233171460342" order="6" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_GrossProfit_639126233171460342" xlink:to="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_639126233171460342" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:label="us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss" xlink:label="us-gaap_NetIncomeLoss_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic" xlink:to="us-gaap_NetIncomeLoss_639126233171460342" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetIncomeLoss_639126233171460342" xlink:to="us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_639126233171460342" order="1" use="optional" weight="-1" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetIncomeLoss_639126233171460342" xlink:to="us-gaap_ProfitLoss_639126233171460342" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/StatementConsolidatedStatementsOfCashFlows" xlink:type="extended" xlink:title="995200400 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:label="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations" xlink:label="us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:to="us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_639126233171460342" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:to="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" order="2" use="optional" weight="1" priority="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromStockOptionsExercised" xlink:label="us-gaap_ProceedsFromStockOptionsExercised_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" xlink:to="us-gaap_ProceedsFromStockOptionsExercised_639126233171617308" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromRelatedPartyDebt" xlink:label="us-gaap_ProceedsFromRelatedPartyDebt_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" xlink:to="us-gaap_ProceedsFromRelatedPartyDebt_639126233171617308" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfRelatedPartyDebt" xlink:label="us-gaap_RepaymentsOfRelatedPartyDebt_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" xlink:to="us-gaap_RepaymentsOfRelatedPartyDebt_639126233171617308" order="3" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_PaymentOfRentalDepositOnBehalfOfOthers" xlink:label="beke_PaymentOfRentalDepositOnBehalfOfOthers_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" xlink:to="beke_PaymentOfRentalDepositOnBehalfOfOthers_639126233171617308" order="4" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_ProceedsFromRepaymentsOfCustomerDepositsPayableAndOtherAmountsCollectedAndPayableOnBehalfOfOthers" xlink:label="beke_ProceedsFromRepaymentsOfCustomerDepositsPayableAndOtherAmountsCollectedAndPayableOnBehalfOfOthers_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" xlink:to="beke_ProceedsFromRepaymentsOfCustomerDepositsPayableAndOtherAmountsCollectedAndPayableOnBehalfOfOthers_639126233171617308" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_ProceedsFromRentalDepositReceivedOnBehalfOfOthers" xlink:label="beke_ProceedsFromRentalDepositReceivedOnBehalfOfOthers_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" xlink:to="beke_ProceedsFromRentalDepositReceivedOnBehalfOfOthers_639126233171617308" order="6" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfDividendsCommonStock" xlink:label="us-gaap_PaymentsOfDividendsCommonStock_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" xlink:to="us-gaap_PaymentsOfDividendsCommonStock_639126233171617308" order="7" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_LiquidationOfSubsidiary" xlink:label="beke_LiquidationOfSubsidiary_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" xlink:to="beke_LiquidationOfSubsidiary_639126233171617308" order="8" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsOfDividendsMinorityInterest" xlink:label="us-gaap_PaymentsOfDividendsMinorityInterest_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" xlink:to="us-gaap_PaymentsOfDividendsMinorityInterest_639126233171617308" order="9" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="us-gaap_PaymentsForRepurchaseOfCommonStock_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" xlink:to="us-gaap_PaymentsForRepurchaseOfCommonStock_639126233171617308" order="10" use="optional" weight="-1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfLongTermLinesOfCredit" xlink:label="us-gaap_RepaymentsOfLongTermLinesOfCredit_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" xlink:to="us-gaap_RepaymentsOfLongTermLinesOfCredit_639126233171617308" order="11" use="optional" weight="-1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromLongTermLinesOfCredit" xlink:label="us-gaap_ProceedsFromLongTermLinesOfCredit_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" xlink:to="us-gaap_ProceedsFromLongTermLinesOfCredit_639126233171617308" order="12" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentsOfBankDebt" xlink:label="us-gaap_RepaymentsOfBankDebt_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" xlink:to="us-gaap_RepaymentsOfBankDebt_639126233171617308" order="13" use="optional" weight="-1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromBankDebt" xlink:label="us-gaap_ProceedsFromBankDebt_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" xlink:to="us-gaap_ProceedsFromBankDebt_639126233171617308" order="14" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromPaymentsForOtherFinancingActivities" xlink:label="us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_639126233171460342" xlink:to="us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_639126233171617308" order="15" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:to="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" order="3" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt" xlink:label="us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" xlink:to="us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_639126233171617308" order="1" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities" xlink:label="us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" xlink:to="us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_639126233171617308" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromCollectionOfLoansReceivable" xlink:label="us-gaap_ProceedsFromCollectionOfLoansReceivable_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" xlink:to="us-gaap_ProceedsFromCollectionOfLoansReceivable_639126233171617308" order="3" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireLoansReceivable" xlink:label="us-gaap_PaymentsToAcquireLoansReceivable_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" xlink:to="us-gaap_PaymentsToAcquireLoansReceivable_639126233171617308" order="4" use="optional" weight="-1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireProductiveAssets" xlink:label="us-gaap_PaymentsToAcquireProductiveAssets_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" xlink:to="us-gaap_PaymentsToAcquireProductiveAssets_639126233171617308" order="5" use="optional" weight="-1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired" xlink:label="us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" xlink:to="us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_639126233171617308" order="6" use="optional" weight="-1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OriginationOfNotesReceivableFromRelatedParties" xlink:label="us-gaap_OriginationOfNotesReceivableFromRelatedParties_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" xlink:to="us-gaap_OriginationOfNotesReceivableFromRelatedParties_639126233171617308" order="7" use="optional" weight="-1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_PaymentsToAcquireOtherLongTermInvestments" xlink:label="beke_PaymentsToAcquireOtherLongTermInvestments_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" xlink:to="beke_PaymentsToAcquireOtherLongTermInvestments_639126233171617308" order="8" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_ProceedsFromSaleAndMaturityOfOtherLongTermInvestments" xlink:label="beke_ProceedsFromSaleAndMaturityOfOtherLongTermInvestments_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" xlink:to="beke_ProceedsFromSaleAndMaturityOfOtherLongTermInvestments_639126233171617308" order="9" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_PaymentsToAcquireOtherShortTermInvestments" xlink:label="beke_PaymentsToAcquireOtherShortTermInvestments_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" xlink:to="beke_PaymentsToAcquireOtherShortTermInvestments_639126233171617308" order="10" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_ProceedsFromMaturitiesOfOtherShortTermInvestments" xlink:label="beke_ProceedsFromMaturitiesOfOtherShortTermInvestments_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" xlink:to="beke_ProceedsFromMaturitiesOfOtherShortTermInvestments_639126233171617308" order="11" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_PaymentsToAcquireTimeDepositsAndHeldToMaturitySecurities" xlink:label="beke_PaymentsToAcquireTimeDepositsAndHeldToMaturitySecurities_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" xlink:to="beke_PaymentsToAcquireTimeDepositsAndHeldToMaturitySecurities_639126233171617308" order="12" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_ProceedsFromSaleAndMaturityOfTimeDepositsAndHeldToMaturitySecurities" xlink:label="beke_ProceedsFromSaleAndMaturityOfTimeDepositsAndHeldToMaturitySecurities_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" xlink:to="beke_ProceedsFromSaleAndMaturityOfTimeDepositsAndHeldToMaturitySecurities_639126233171617308" order="13" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_ProceedsFromDisposalOfSubsidiaryAndLongLivedAssets" xlink:label="beke_ProceedsFromDisposalOfSubsidiaryAndLongLivedAssets_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" xlink:to="beke_ProceedsFromDisposalOfSubsidiaryAndLongLivedAssets_639126233171617308" order="14" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RepaymentOfNotesReceivableFromRelatedParties" xlink:label="us-gaap_RepaymentOfNotesReceivableFromRelatedParties_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_639126233171617308" xlink:to="us-gaap_RepaymentOfNotesReceivableFromRelatedParties_639126233171617308" order="15" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:to="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" order="4" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" xlink:label="us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_639126233171617308" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable" xlink:label="us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable_639126233171617308" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities" xlink:label="us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_639126233171617308" order="3" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability" xlink:label="us-gaap_IncreaseDecreaseInOperatingLeaseLiability_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_IncreaseDecreaseInOperatingLeaseLiability_639126233171617308" order="4" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInDeferredRevenue" xlink:label="us-gaap_IncreaseDecreaseInDeferredRevenue_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_IncreaseDecreaseInDeferredRevenue_639126233171617308" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities" xlink:label="us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities_639126233171617308" order="6" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_EquityMethodInvestmentImpairmentAndProvisions" xlink:label="beke_EquityMethodInvestmentImpairmentAndProvisions_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="beke_EquityMethodInvestmentImpairmentAndProvisions_639126233171617308" order="7" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInDueToRelatedPartiesCurrent" xlink:label="us-gaap_IncreaseDecreaseInDueToRelatedPartiesCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_IncreaseDecreaseInDueToRelatedPartiesCurrent_639126233171617308" order="8" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInAccountsPayableTrade" xlink:label="us-gaap_IncreaseDecreaseInAccountsPayableTrade_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_IncreaseDecreaseInAccountsPayableTrade_639126233171617308" order="9" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentAssets" xlink:label="us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_639126233171617308" order="10" use="optional" weight="-1" priority="3" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_IncreaseDecreaseInRightOfUseAssets" xlink:label="beke_IncreaseDecreaseInRightOfUseAssets_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="beke_IncreaseDecreaseInRightOfUseAssets_639126233171617308" order="11" use="optional" weight="-1" priority="3" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" xlink:label="us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_639126233171617308" order="12" use="optional" weight="-1" priority="3" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInInventories" xlink:label="us-gaap_IncreaseDecreaseInInventories_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_IncreaseDecreaseInInventories_639126233171617308" order="13" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInDueFromRelatedPartiesCurrent" xlink:label="us-gaap_IncreaseDecreaseInDueFromRelatedPartiesCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_IncreaseDecreaseInDueFromRelatedPartiesCurrent_639126233171617308" order="14" use="optional" weight="-1" priority="3" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensation" xlink:label="us-gaap_ShareBasedCompensation_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_ShareBasedCompensation_639126233171617308" order="15" use="optional" weight="1" priority="4" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainLossOnDispositionOfAssets1" xlink:label="us-gaap_GainLossOnDispositionOfAssets1_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_GainLossOnDispositionOfAssets1_639126233171617308" order="16" use="optional" weight="-1" priority="3" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ForeignCurrencyTransactionGainLossBeforeTax" xlink:label="us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_639126233171617308" order="17" use="optional" weight="-1" priority="3" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount" xlink:label="us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossAnnualAmount_639126233171617308" order="18" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromEquityMethodInvestments" xlink:label="us-gaap_IncomeLossFromEquityMethodInvestments_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_IncomeLossFromEquityMethodInvestments_639126233171617308" order="19" use="optional" weight="-1" priority="3" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="us-gaap_DeferredIncomeTaxExpenseBenefit_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_DeferredIncomeTaxExpenseBenefit_639126233171617308" order="20" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InventoryWriteDown" xlink:label="us-gaap_InventoryWriteDown_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_InventoryWriteDown_639126233171617308" order="21" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_AccountsAndFinancingReceivableAndContractAssetsCreditLossExpenseReversal" xlink:label="beke_AccountsAndFinancingReceivableAndContractAssetsCreditLossExpenseReversal_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="beke_AccountsAndFinancingReceivableAndContractAssetsCreditLossExpenseReversal_639126233171617308" order="22" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment" xlink:label="us-gaap_GoodwillAndIntangibleAssetImpairment_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_GoodwillAndIntangibleAssetImpairment_639126233171617308" order="23" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="us-gaap_AmortizationOfIntangibleAssets_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_AmortizationOfIntangibleAssets_639126233171617308" order="24" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_FairValueAdjustmentsOfInvestments" xlink:label="beke_FairValueAdjustmentsOfInvestments_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="beke_FairValueAdjustmentsOfInvestments_639126233171617308" order="25" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_InterestIncomeExpenseInvestments" xlink:label="beke_InterestIncomeExpenseInvestments_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="beke_InterestIncomeExpenseInvestments_639126233171617308" order="26" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Depreciation" xlink:label="us-gaap_Depreciation_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_Depreciation_639126233171617308" order="27" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityMethodInvestmentDividendsOrDistributions" xlink:label="us-gaap_EquityMethodInvestmentDividendsOrDistributions_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_EquityMethodInvestmentDividendsOrDistributions_639126233171617308" order="28" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_IncreaseDecreaseInAccountsReceivableAndContractAssets" xlink:label="beke_IncreaseDecreaseInAccountsReceivableAndContractAssets_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="beke_IncreaseDecreaseInAccountsReceivableAndContractAssets_639126233171617308" order="29" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProfitLoss" xlink:label="us-gaap_ProfitLoss_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_639126233171617308" xlink:to="us-gaap_ProfitLoss_639126233171617308" order="30" use="optional" weight="1" priority="4" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureOrganizationNetRevenueNetLossOperatingInvestingAndFinancingCashFlowsDetails" xlink:type="extended" xlink:title="99940104 - Disclosure - ORGANIZATION - Net revenue, net loss, operating, investing and financing cash flows (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_RevenueFromContractWithCustomerExcludingNonVieSubsidiariesOfGroup" xlink:label="beke_RevenueFromContractWithCustomerExcludingNonVieSubsidiariesOfGroup_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1" xlink:to="beke_RevenueFromContractWithCustomerExcludingNonVieSubsidiariesOfGroup_639126233171617308" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_RevenueFromContractWithCustomerNonVieSubsidiariesOfGroup" xlink:label="beke_RevenueFromContractWithCustomerNonVieSubsidiariesOfGroup_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1" xlink:to="beke_RevenueFromContractWithCustomerNonVieSubsidiariesOfGroup_639126233171617308" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureSignificantAccountingPoliciesRevenueRecognitionDetails" xlink:type="extended" xlink:title="99940205 - Disclosure - SIGNIFICANT ACCOUNTING POLICIES - Revenue recognition (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredRevenueCurrent" xlink:label="us-gaap_DeferredRevenueCurrent_1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeCurrent" xlink:label="us-gaap_DeferredIncomeCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DeferredRevenueCurrent_1" xlink:to="us-gaap_DeferredIncomeCurrent_639126233171617308" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerLiabilityCurrent" xlink:label="us-gaap_ContractWithCustomerLiabilityCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DeferredRevenueCurrent_1" xlink:to="us-gaap_ContractWithCustomerLiabilityCurrent_639126233171617308" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureCashCashEquivalentsRestrictedCashDetails" xlink:type="extended" xlink:title="99940301 - Disclosure - CASH, CASH EQUIVALENTS, RESTRICTED CASH (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Cash" xlink:label="us-gaap_Cash_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:to="us-gaap_Cash_639126233171617308" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashEquivalentsAtCarryingValue" xlink:label="us-gaap_CashEquivalentsAtCarryingValue_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:to="us-gaap_CashEquivalentsAtCarryingValue_639126233171617308" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCashCurrent" xlink:label="us-gaap_RestrictedCashCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:to="us-gaap_RestrictedCashCurrent_639126233171617308" order="3" use="optional" weight="1" priority="2" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureShortTermInvestmentsDetails" xlink:type="extended" xlink:title="99940401 - Disclosure - SHORT-TERM INVESTMENTS (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShortTermInvestments" xlink:label="ShortTermInvestments" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TimeDepositsAtCarryingValue" xlink:label="us-gaap_TimeDepositsAtCarryingValue_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="ShortTermInvestments" xlink:to="us-gaap_TimeDepositsAtCarryingValue_639126233171617308" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_WealthManagementProductsCurrent" xlink:label="beke_WealthManagementProductsCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="ShortTermInvestments" xlink:to="beke_WealthManagementProductsCurrent_639126233171617308" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostAfterAllowanceForCreditLossCurrent" xlink:label="us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostAfterAllowanceForCreditLossCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="ShortTermInvestments" xlink:to="us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostAfterAllowanceForCreditLossCurrent_639126233171617308" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="ShortTermInvestments" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_639126233171617308" order="4" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureShortTermInvestmentsHeldToMaturityAndAvailableForSaleDebtInvestmentsDetails" xlink:type="extended" xlink:title="99940402 - Disclosure - SHORT-TERM INVESTMENTS - Held-to-maturity and available-for-sale debt investments (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAfterAllowanceForCreditLossCurrent" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAfterAllowanceForCreditLossCurrent" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAfterAllowanceForCreditLossCurrent" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_639126233171617308" order="1" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAfterAllowanceForCreditLossCurrent" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_639126233171617308" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAfterAllowanceForCreditLossCurrent" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_639126233171617308" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostAfterAllowanceForCreditLossCurrent" xlink:label="us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostAfterAllowanceForCreditLossCurrent_1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain" xlink:label="us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostAfterAllowanceForCreditLossCurrent_1" xlink:to="us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_639126233171617308" order="1" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss" xlink:label="us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostAfterAllowanceForCreditLossCurrent_1" xlink:to="us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_639126233171617308" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesFairValue" xlink:label="us-gaap_HeldToMaturitySecuritiesFairValue_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtSecuritiesHeldToMaturityAmortizedCostAfterAllowanceForCreditLossCurrent_1" xlink:to="us-gaap_HeldToMaturitySecuritiesFairValue_639126233171617308" order="3" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureInventoriesDetails" xlink:type="extended" xlink:title="99940501 - Disclosure - INVENTORIES (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InventoryNet" xlink:label="us-gaap_InventoryNet_2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InventoryLandHeldForDevelopmentAndSale" xlink:label="us-gaap_InventoryLandHeldForDevelopmentAndSale_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InventoryNet_2" xlink:to="us-gaap_InventoryLandHeldForDevelopmentAndSale_639126233171617308" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherInventoryNetOfReserves" xlink:label="us-gaap_OtherInventoryNetOfReserves_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InventoryNet_2" xlink:to="us-gaap_OtherInventoryNetOfReserves_639126233171617308" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosurePrepaymentsReceivablesAndOtherAssetsDetails" xlink:type="extended" xlink:title="99940601 - Disclosure - PREPAYMENTS, RECEIVABLES AND OTHER ASSETS (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="PrepaidExpenseAndOtherAssetsCurrent" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Supplies" xlink:label="us-gaap_Supplies_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="us-gaap_Supplies_639126233171617308" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_DepositsPaidForAcquisitionOfLand" xlink:label="beke_DepositsPaidForAcquisitionOfLand_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="beke_DepositsPaidForAcquisitionOfLand_639126233171617308" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_ExerciseOfShareBasedAwardsReceivablesRelatedToEmployees" xlink:label="beke_ExerciseOfShareBasedAwardsReceivablesRelatedToEmployees_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="beke_ExerciseOfShareBasedAwardsReceivablesRelatedToEmployees_639126233171617308" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CapitalizedContractCostNet" xlink:label="us-gaap_CapitalizedContractCostNet_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="us-gaap_CapitalizedContractCostNet_639126233171617308" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LoansAndLeasesReceivableRelatedParties" xlink:label="us-gaap_LoansAndLeasesReceivableRelatedParties_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="us-gaap_LoansAndLeasesReceivableRelatedParties_639126233171617308" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_DepositsPaidToRealEstateDevelopers" xlink:label="beke_DepositsPaidToRealEstateDevelopers_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="beke_DepositsPaidToRealEstateDevelopers_639126233171617308" order="6" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_PrepaidRentAndOtherDepositsCurrent" xlink:label="beke_PrepaidRentAndOtherDepositsCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="beke_PrepaidRentAndOtherDepositsCurrent_639126233171617308" order="7" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EscrowDeposit" xlink:label="us-gaap_EscrowDeposit_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="us-gaap_EscrowDeposit_639126233171617308" order="8" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_StaffAdvancesCurrent" xlink:label="beke_StaffAdvancesCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="beke_StaffAdvancesCurrent_639126233171617308" order="9" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PrepaidTaxes" xlink:label="us-gaap_PrepaidTaxes_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="us-gaap_PrepaidTaxes_639126233171617308" order="10" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestReceivableCurrent" xlink:label="us-gaap_InterestReceivableCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="us-gaap_InterestReceivableCurrent_639126233171617308" order="11" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ValueAddedTaxReceivableCurrent" xlink:label="us-gaap_ValueAddedTaxReceivableCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="us-gaap_ValueAddedTaxReceivableCurrent_639126233171617308" order="12" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherPrepaidExpenseCurrent" xlink:label="us-gaap_OtherPrepaidExpenseCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsCurrent" xlink:to="us-gaap_OtherPrepaidExpenseCurrent_639126233171617308" order="13" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PrepaidExpenseAndOtherAssetsNoncurrent" xlink:label="PrepaidExpenseAndOtherAssetsNoncurrent" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxAssetsNet" xlink:label="us-gaap_DeferredIncomeTaxAssetsNet_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsNoncurrent" xlink:to="us-gaap_DeferredIncomeTaxAssetsNet_639126233171617308" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ValueAddedTaxReceivableNoncurrent" xlink:label="us-gaap_ValueAddedTaxReceivableNoncurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsNoncurrent" xlink:to="us-gaap_ValueAddedTaxReceivableNoncurrent_639126233171617308" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PrepaidExpenseOtherNoncurrent" xlink:label="us-gaap_PrepaidExpenseOtherNoncurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PrepaidExpenseAndOtherAssetsNoncurrent" xlink:to="us-gaap_PrepaidExpenseOtherNoncurrent_639126233171617308" order="3" use="optional" weight="1" priority="2" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureAccountsReceivableAndContractAssetsNetDetails" xlink:type="extended" xlink:title="99940701 - Disclosure - ACCOUNTS RECEIVABLE AND CONTRACT ASSETS, NET (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="AccountsReceivableNetCurrent" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent" xlink:label="us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccountsReceivableNetCurrent" xlink:to="us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_639126233171617308" order="1" use="optional" weight="-1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsReceivableGrossCurrent" xlink:label="us-gaap_AccountsReceivableGrossCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccountsReceivableNetCurrent" xlink:to="us-gaap_AccountsReceivableGrossCurrent_639126233171617308" order="2" use="optional" weight="1" priority="2" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureAccountsReceivableAndContractAssetsNetAgeingAnalysisOfAccountsReceivableDetails" xlink:type="extended" xlink:title="99940702 - Disclosure - ACCOUNTS RECEIVABLE AND CONTRACT ASSETS, NET - Ageing analysis of accounts receivable (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsReceivableNet" xlink:label="us-gaap_AccountsReceivableNet" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsReceivableGross" xlink:label="us-gaap_AccountsReceivableGross_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AccountsReceivableNet" xlink:to="us-gaap_AccountsReceivableGross_639126233171617308" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivable" xlink:label="us-gaap_AllowanceForDoubtfulAccountsReceivable_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_AccountsReceivableNet" xlink:to="us-gaap_AllowanceForDoubtfulAccountsReceivable_639126233171617308" order="2" use="optional" weight="-1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureAccountsReceivableAndContractAssetsNetContractAssetsNetDetails" xlink:type="extended" xlink:title="99940704 - Disclosure - ACCOUNTS RECEIVABLE AND CONTRACT ASSETS, NET - Contract assets, net (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerReceivableAfterAllowanceForCreditLossCurrent" xlink:label="us-gaap_ContractWithCustomerReceivableAfterAllowanceForCreditLossCurrent" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerReceivableBeforeAllowanceForCreditLossCurrent" xlink:label="us-gaap_ContractWithCustomerReceivableBeforeAllowanceForCreditLossCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_ContractWithCustomerReceivableAfterAllowanceForCreditLossCurrent" xlink:to="us-gaap_ContractWithCustomerReceivableBeforeAllowanceForCreditLossCurrent_639126233171617308" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerReceivableAllowanceForCreditLossCurrent" xlink:label="us-gaap_ContractWithCustomerReceivableAllowanceForCreditLossCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_ContractWithCustomerReceivableAfterAllowanceForCreditLossCurrent" xlink:to="us-gaap_ContractWithCustomerReceivableAllowanceForCreditLossCurrent_639126233171617308" order="2" use="optional" weight="-1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureFinancingReceivablesNetDetails" xlink:type="extended" xlink:title="99940801 - Disclosure - FINANCING RECEIVABLES, NET (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NotesAndLoansReceivableNetCurrent" xlink:label="NotesAndLoansReceivableNetCurrent" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllowanceForNotesAndLoansReceivableCurrent" xlink:label="us-gaap_AllowanceForNotesAndLoansReceivableCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="NotesAndLoansReceivableNetCurrent" xlink:to="us-gaap_AllowanceForNotesAndLoansReceivableCurrent_639126233171617308" order="1" use="optional" weight="-1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NotesAndLoansReceivableGrossCurrent" xlink:label="us-gaap_NotesAndLoansReceivableGrossCurrent_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="NotesAndLoansReceivableNetCurrent" xlink:to="us-gaap_NotesAndLoansReceivableGrossCurrent_639126233171617308" order="2" use="optional" weight="1" priority="2" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosurePropertyPlantAndEquipmentNetDetails" xlink:type="extended" xlink:title="99940901 - Disclosure - PROPERTY, PLANT AND EQUIPMENT, NET (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="PropertyPlantAndEquipmentNet" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="us-gaap_PropertyPlantAndEquipmentGross_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PropertyPlantAndEquipmentNet" xlink:to="us-gaap_PropertyPlantAndEquipmentGross_639126233171617308" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PropertyPlantAndEquipmentNet" xlink:to="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_639126233171617308" order="2" use="optional" weight="-1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_AccumulatedImpairmentLossPropertyPlantAndEquipment" xlink:label="beke_AccumulatedImpairmentLossPropertyPlantAndEquipment_639126233171617308" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="PropertyPlantAndEquipmentNet" xlink:to="beke_AccumulatedImpairmentLossPropertyPlantAndEquipment_639126233171617308" order="3" use="optional" weight="-1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureIntangibleAssetsNetDetails" xlink:type="extended" xlink:title="99941001 - Disclosure - INTANGIBLE ASSETS, NET (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="IntangibleAssetsNetExcludingGoodwill" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill" xlink:label="us-gaap_IntangibleAssetsGrossExcludingGoodwill_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="IntangibleAssetsNetExcludingGoodwill" xlink:to="us-gaap_IntangibleAssetsGrossExcludingGoodwill_639126233171773540" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="IntangibleAssetsNetExcludingGoodwill" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_639126233171773540" order="2" use="optional" weight="-1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_FiniteLivedIntangibleAssetsAccumulatedImpairment" xlink:label="beke_FiniteLivedIntangibleAssetsAccumulatedImpairment_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="IntangibleAssetsNetExcludingGoodwill" xlink:to="beke_FiniteLivedIntangibleAssetsAccumulatedImpairment_639126233171773540" order="3" use="optional" weight="-1" priority="2" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureIntangibleAssetsNetEstimatedAmortizationExpenseDetails" xlink:type="extended" xlink:title="99941003 - Disclosure - INTANGIBLE ASSETS, NET - Estimated amortization expense (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="FiniteLivedIntangibleAssetsNet" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="FiniteLivedIntangibleAssetsNet" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_639126233171773540" order="1" use="optional" weight="1" priority="3" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="FiniteLivedIntangibleAssetsNet" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_639126233171773540" order="2" use="optional" weight="1" priority="3" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="FiniteLivedIntangibleAssetsNet" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_639126233171773540" order="3" use="optional" weight="1" priority="3" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="FiniteLivedIntangibleAssetsNet" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_639126233171773540" order="4" use="optional" weight="1" priority="3" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_FiniteLivedIntangibleAssetsAmortizationExpenseYearFiveAndThereafter" xlink:label="beke_FiniteLivedIntangibleAssetsAmortizationExpenseYearFiveAndThereafter_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="FiniteLivedIntangibleAssetsNet" xlink:to="beke_FiniteLivedIntangibleAssetsAmortizationExpenseYearFiveAndThereafter_639126233171773540" order="5" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureLeasesMaturitiesOfLeaseLiabilitiesDetailsCalc2" xlink:type="extended" xlink:title="41005 - Disclosure - Leases - Maturities of lease liabilities (Details) - calc 2" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:label="LesseeOperatingLeaseLiabilityPaymentsDue" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiability" xlink:label="us-gaap_OperatingLeaseLiability_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_OperatingLeaseLiability_639126233171773540" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_639126233171773540" order="2" use="optional" weight="1" priority="2" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureLeasesComponentsOfLeaseCostDetails" xlink:type="extended" xlink:title="99941101 - Disclosure - LEASES - Components of lease cost (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LeaseCost" xlink:label="LeaseCost" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseCost" xlink:label="us-gaap_OperatingLeaseCost_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LeaseCost" xlink:to="us-gaap_OperatingLeaseCost_639126233171773540" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShortTermLeaseCost" xlink:label="us-gaap_ShortTermLeaseCost_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LeaseCost" xlink:to="us-gaap_ShortTermLeaseCost_639126233171773540" order="2" use="optional" weight="1" priority="2" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureLeasesSupplementalBalanceSheetInformationRelatedToLeasesDetails" xlink:type="extended" xlink:title="99941103 - Disclosure - LEASES - Supplemental balance sheet information related to leases (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiability" xlink:label="us-gaap_OperatingLeaseLiability" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiabilityCurrent" xlink:label="us-gaap_OperatingLeaseLiabilityCurrent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OperatingLeaseLiability" xlink:to="us-gaap_OperatingLeaseLiabilityCurrent_639126233171773540" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent" xlink:label="us-gaap_OperatingLeaseLiabilityNoncurrent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_OperatingLeaseLiability" xlink:to="us-gaap_OperatingLeaseLiabilityNoncurrent_639126233171773540" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureLeasesMaturitiesOfLeaseLiabilitiesDetails" xlink:type="extended" xlink:title="99941105 - Disclosure - LEASES - Maturities of lease liabilities (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:label="LesseeOperatingLeaseLiabilityPaymentsDue" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_639126233171773540" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_639126233171773540" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_639126233171773540" order="3" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_639126233171773540" order="4" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_639126233171773540" order="5" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_639126233171773540" order="6" use="optional" weight="1" priority="2" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureLeasesLeaseIncomeDetails" xlink:type="extended" xlink:title="99941106 - Disclosure - LEASES - Lease income (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LeaseIncome" xlink:label="us-gaap_LeaseIncome" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLeaseIncome" xlink:label="us-gaap_OperatingLeaseLeaseIncome_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LeaseIncome" xlink:to="us-gaap_OperatingLeaseLeaseIncome_639126233171773540" order="1" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureLeasesMaturitiesOfUndiscountedLeaseReceivablesDetails" xlink:type="extended" xlink:title="99941107 - Disclosure - LEASES - Maturities of undiscounted lease receivables (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LessorOperatingLeasePaymentsToBeReceived" xlink:label="us-gaap_LessorOperatingLeasePaymentsToBeReceived" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LessorOperatingLeasePaymentsToBeReceivedNextTwelveMonths" xlink:label="us-gaap_LessorOperatingLeasePaymentsToBeReceivedNextTwelveMonths_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LessorOperatingLeasePaymentsToBeReceived" xlink:to="us-gaap_LessorOperatingLeasePaymentsToBeReceivedNextTwelveMonths_639126233171773540" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LessorOperatingLeasePaymentsToBeReceivedTwoYears" xlink:label="us-gaap_LessorOperatingLeasePaymentsToBeReceivedTwoYears_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LessorOperatingLeasePaymentsToBeReceived" xlink:to="us-gaap_LessorOperatingLeasePaymentsToBeReceivedTwoYears_639126233171773540" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LessorOperatingLeasePaymentsToBeReceivedThreeYears" xlink:label="us-gaap_LessorOperatingLeasePaymentsToBeReceivedThreeYears_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LessorOperatingLeasePaymentsToBeReceived" xlink:to="us-gaap_LessorOperatingLeasePaymentsToBeReceivedThreeYears_639126233171773540" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LessorOperatingLeasePaymentsToBeReceivedFourYears" xlink:label="us-gaap_LessorOperatingLeasePaymentsToBeReceivedFourYears_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LessorOperatingLeasePaymentsToBeReceived" xlink:to="us-gaap_LessorOperatingLeasePaymentsToBeReceivedFourYears_639126233171773540" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LessorOperatingLeasePaymentsToBeReceivedFiveYears" xlink:label="us-gaap_LessorOperatingLeasePaymentsToBeReceivedFiveYears_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LessorOperatingLeasePaymentsToBeReceived" xlink:to="us-gaap_LessorOperatingLeasePaymentsToBeReceivedFiveYears_639126233171773540" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LessorOperatingLeasePaymentsToBeReceivedThereafter" xlink:label="us-gaap_LessorOperatingLeasePaymentsToBeReceivedThereafter_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_LessorOperatingLeasePaymentsToBeReceived" xlink:to="us-gaap_LessorOperatingLeasePaymentsToBeReceivedThereafter_639126233171773540" order="6" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureLongTermInvestmentsNetChangesInLongTermInvestmentsDetails" xlink:type="extended" xlink:title="99941201 - Disclosure - LONG-TERM INVESTMENTS, NET - Changes in the long term investments (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermInvestments" xlink:label="LongTermInvestments" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityMethodInvestments" xlink:label="us-gaap_EquityMethodInvestments_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LongTermInvestments" xlink:to="us-gaap_EquityMethodInvestments_639126233171773540" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentOwnedAtFairValue" xlink:label="us-gaap_InvestmentOwnedAtFairValue_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LongTermInvestments" xlink:to="us-gaap_InvestmentOwnedAtFairValue_639126233171773540" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_TimeDepositsAndDebtSecuritiesHeldToMaturityNoncurrent" xlink:label="beke_TimeDepositsAndDebtSecuritiesHeldToMaturityNoncurrent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LongTermInvestments" xlink:to="beke_TimeDepositsAndDebtSecuritiesHeldToMaturityNoncurrent_639126233171773540" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesNoncurrent" xlink:label="us-gaap_HeldToMaturitySecuritiesNoncurrent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LongTermInvestments" xlink:to="us-gaap_HeldToMaturitySecuritiesNoncurrent_639126233171773540" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_EquitySecuritiesWithoutReadilyDeterminableFairValueAndAtNetAssetValueAmount" xlink:label="beke_EquitySecuritiesWithoutReadilyDeterminableFairValueAndAtNetAssetValueAmount_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LongTermInvestments" xlink:to="beke_EquitySecuritiesWithoutReadilyDeterminableFairValueAndAtNetAssetValueAmount_639126233171773540" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_EquitySecuritiesWithoutReadilyDeterminableFairValueMeasuredUsingAlternativeMethod" xlink:label="beke_EquitySecuritiesWithoutReadilyDeterminableFairValueMeasuredUsingAlternativeMethod_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LongTermInvestments" xlink:to="beke_EquitySecuritiesWithoutReadilyDeterminableFairValueMeasuredUsingAlternativeMethod_639126233171773540" order="6" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="LongTermInvestments" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent_639126233171773540" order="7" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureLongTermInvestmentsNetInvestmentsAccountedForAtFairValuesDetails" xlink:type="extended" xlink:title="99941204 - Disclosure - LONG-TERM INVESTMENTS, NET - Investments accounted for at fair values (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentOwnedAtFairValue" xlink:label="InvestmentOwnedAtFairValue" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentOwnedAtCost" xlink:label="us-gaap_InvestmentOwnedAtCost_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="InvestmentOwnedAtFairValue" xlink:to="us-gaap_InvestmentOwnedAtCost_639126233171773540" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_InvestmentOwnedUnrealizedGain" xlink:label="beke_InvestmentOwnedUnrealizedGain_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="InvestmentOwnedAtFairValue" xlink:to="beke_InvestmentOwnedUnrealizedGain_639126233171773540" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_InvestmentOwnedUnrealizedLoss" xlink:label="beke_InvestmentOwnedUnrealizedLoss_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="InvestmentOwnedAtFairValue" xlink:to="beke_InvestmentOwnedUnrealizedLoss_639126233171773540" order="3" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_InvestmentOwnedExchangeAdjustments" xlink:label="beke_InvestmentOwnedExchangeAdjustments_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="InvestmentOwnedAtFairValue" xlink:to="beke_InvestmentOwnedExchangeAdjustments_639126233171773540" order="4" use="optional" weight="-1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureLongTermInvestmentsNetEquityInvestmentsMeasuredUnderMeasurementAlternativeAndNavPracticalExpedientDetails" xlink:type="extended" xlink:title="99941206 - Disclosure - LONG-TERM INVESTMENTS, NET - Equity investments measured under measurement alternative and NAV practical expedient (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount" xlink:label="us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_EquitySecuritiesWithoutReadilyDeterminableFairValueInitialCost" xlink:label="beke_EquitySecuritiesWithoutReadilyDeterminableFairValueInitialCost_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount" xlink:to="beke_EquitySecuritiesWithoutReadilyDeterminableFairValueInitialCost_639126233171773540" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossCumulativeAmount" xlink:label="us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossCumulativeAmount_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount" xlink:to="us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueImpairmentLossCumulativeAmount_639126233171773540" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureLongTermInvestmentsNetLongTermHeldToMaturityInvestmentsDetails" xlink:type="extended" xlink:title="99941209 - Disclosure - LONG-TERM INVESTMENTS, NET - Long-term held to maturity investments (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecurities" xlink:label="us-gaap_HeldToMaturitySecurities_2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain" xlink:label="us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_HeldToMaturitySecurities_2" xlink:to="us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain_639126233171773540" order="1" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss" xlink:label="us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_HeldToMaturitySecurities_2" xlink:to="us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss_639126233171773540" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_HeldToMaturitySecuritiesFairValue" xlink:label="us-gaap_HeldToMaturitySecuritiesFairValue_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_HeldToMaturitySecurities_2" xlink:to="us-gaap_HeldToMaturitySecuritiesFairValue_639126233171773540" order="3" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureBorrowingsDetails" xlink:type="extended" xlink:title="99941401 - Disclosure - BORROWINGS (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtLongtermAndShorttermCombinedAmount" xlink:label="us-gaap_DebtLongtermAndShorttermCombinedAmount" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebt" xlink:label="us-gaap_LongTermDebt_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtLongtermAndShorttermCombinedAmount" xlink:to="us-gaap_LongTermDebt_639126233171773540" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShortTermBankLoansAndNotesPayable" xlink:label="us-gaap_ShortTermBankLoansAndNotesPayable_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_DebtLongtermAndShorttermCombinedAmount" xlink:to="us-gaap_ShortTermBankLoansAndNotesPayable_639126233171773540" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureAccountsPayableDetails" xlink:type="extended" xlink:title="99941501 - Disclosure - ACCOUNTS PAYABLE (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsPayableCurrent" xlink:label="AccountsPayableCurrent" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccruedAdvertisingCurrent" xlink:label="us-gaap_AccruedAdvertisingCurrent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccountsPayableCurrent" xlink:to="us-gaap_AccruedAdvertisingCurrent_639126233171773540" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_PayableForHomeRenovationMaterialsAndConstructionCostsCurrent" xlink:label="beke_PayableForHomeRenovationMaterialsAndConstructionCostsCurrent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccountsPayableCurrent" xlink:to="beke_PayableForHomeRenovationMaterialsAndConstructionCostsCurrent_639126233171773540" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_PayableForAcquisitionOfLandUsedForPropertiesDevelopment" xlink:label="beke_PayableForAcquisitionOfLandUsedForPropertiesDevelopment_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccountsPayableCurrent" xlink:to="beke_PayableForAcquisitionOfLandUsedForPropertiesDevelopment_639126233171773540" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsPayableOtherCurrent" xlink:label="us-gaap_AccountsPayableOtherCurrent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccountsPayableCurrent" xlink:to="us-gaap_AccountsPayableOtherCurrent_639126233171773540" order="4" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_PayableForInternetServiceFeesCurrent" xlink:label="beke_PayableForInternetServiceFeesCurrent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccountsPayableCurrent" xlink:to="beke_PayableForInternetServiceFeesCurrent_639126233171773540" order="5" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_PayableForLeaseholdImprovementsCurrent" xlink:label="beke_PayableForLeaseholdImprovementsCurrent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccountsPayableCurrent" xlink:to="beke_PayableForLeaseholdImprovementsCurrent_639126233171773540" order="6" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_PayableRelatedToNewHomeTransactionBusinessCurrent" xlink:label="beke_PayableRelatedToNewHomeTransactionBusinessCurrent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccountsPayableCurrent" xlink:to="beke_PayableRelatedToNewHomeTransactionBusinessCurrent_639126233171773540" order="7" use="optional" weight="1" priority="2" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureAccruedExpensesAndOtherCurrentLiabilitiesDetails" xlink:type="extended" xlink:title="99941601 - Disclosure - ACCRUED EXPENSES AND OTHER CURRENT LIABILITIES (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccruedLiabilitiesAndOtherLiabilities" xlink:label="AccruedLiabilitiesAndOtherLiabilities" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_DepositRelatedToFranchiseServices" xlink:label="beke_DepositRelatedToFranchiseServices_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccruedLiabilitiesAndOtherLiabilities" xlink:to="beke_DepositRelatedToFranchiseServices_639126233171773540" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_DepositRelatedToHomeRenovationAndFurnishingServices" xlink:label="beke_DepositRelatedToHomeRenovationAndFurnishingServices_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccruedLiabilitiesAndOtherLiabilities" xlink:to="beke_DepositRelatedToHomeRenovationAndFurnishingServices_639126233171773540" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_PayableToShareRepurchaseConsideration" xlink:label="beke_PayableToShareRepurchaseConsideration_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccruedLiabilitiesAndOtherLiabilities" xlink:to="beke_PayableToShareRepurchaseConsideration_639126233171773540" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_DepositRelatedToHomeRentalServices" xlink:label="beke_DepositRelatedToHomeRentalServices_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccruedLiabilitiesAndOtherLiabilities" xlink:to="beke_DepositRelatedToHomeRentalServices_639126233171773540" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_DepositRelatedToNewHomeTransactionServices" xlink:label="beke_DepositRelatedToNewHomeTransactionServices_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccruedLiabilitiesAndOtherLiabilities" xlink:to="beke_DepositRelatedToNewHomeTransactionServices_639126233171773540" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_AccruedOperatingExpenses" xlink:label="beke_AccruedOperatingExpenses_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccruedLiabilitiesAndOtherLiabilities" xlink:to="beke_AccruedOperatingExpenses_639126233171773540" order="6" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccrualForTaxesOtherThanIncomeTaxesCurrent" xlink:label="us-gaap_AccrualForTaxesOtherThanIncomeTaxesCurrent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccruedLiabilitiesAndOtherLiabilities" xlink:to="us-gaap_AccrualForTaxesOtherThanIncomeTaxesCurrent_639126233171773540" order="7" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredCompensationShareBasedArrangementsLiabilityCurrent" xlink:label="us-gaap_DeferredCompensationShareBasedArrangementsLiabilityCurrent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccruedLiabilitiesAndOtherLiabilities" xlink:to="us-gaap_DeferredCompensationShareBasedArrangementsLiabilityCurrent_639126233171773540" order="8" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_DeferredGuaranteeRevenueCurrent" xlink:label="beke_DeferredGuaranteeRevenueCurrent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccruedLiabilitiesAndOtherLiabilities" xlink:to="beke_DeferredGuaranteeRevenueCurrent_639126233171773540" order="9" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherSundryLiabilitiesCurrent" xlink:label="us-gaap_OtherSundryLiabilitiesCurrent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccruedLiabilitiesAndOtherLiabilities" xlink:to="us-gaap_OtherSundryLiabilitiesCurrent_639126233171773540" order="10" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_CollectedAndPayableOnBehalfOfOthers" xlink:label="beke_CollectedAndPayableOnBehalfOfOthers_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AccruedLiabilitiesAndOtherLiabilities" xlink:to="beke_CollectedAndPayableOnBehalfOfOthers_639126233171773540" order="11" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureOtherIncomeNetDetails" xlink:type="extended" xlink:title="99941701 - Disclosure - OTHER INCOME, NET (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="OtherNonoperatingIncomeExpense" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentIncomeNet" xlink:label="us-gaap_InvestmentIncomeNet_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="OtherNonoperatingIncomeExpense" xlink:to="us-gaap_InvestmentIncomeNet_639126233171773540" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_GovernmentGrantIncome" xlink:label="beke_GovernmentGrantIncome_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="OtherNonoperatingIncomeExpense" xlink:to="beke_GovernmentGrantIncome_639126233171773540" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_OtherNonoperatingIncomeExpenseOthers" xlink:label="beke_OtherNonoperatingIncomeExpenseOthers_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="OtherNonoperatingIncomeExpense" xlink:to="beke_OtherNonoperatingIncomeExpenseOthers_639126233171773540" order="3" use="optional" weight="1" priority="2" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureInterestIncomeNetDetails" xlink:type="extended" xlink:title="99941801 - Disclosure - INTEREST INCOME, NET (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet" xlink:label="us-gaap_InterestIncomeExpenseNonoperatingNet" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_BankChargesNonoperating" xlink:label="beke_BankChargesNonoperating_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InterestIncomeExpenseNonoperatingNet" xlink:to="beke_BankChargesNonoperating_639126233171773540" order="1" use="optional" weight="-1" priority="4" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InterestExpense" xlink:label="us-gaap_InterestExpense_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InterestIncomeExpenseNonoperatingNet" xlink:to="us-gaap_InterestExpense_639126233171773540" order="2" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_InvestmentIncomeNonoperating" xlink:label="us-gaap_InvestmentIncomeNonoperating_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InterestIncomeExpenseNonoperatingNet" xlink:to="us-gaap_InvestmentIncomeNonoperating_639126233171773540" order="3" use="optional" weight="1" priority="3" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_OtherInterestIncomeExpenseNonoperatingNet" xlink:label="beke_OtherInterestIncomeExpenseNonoperatingNet_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_InterestIncomeExpenseNonoperatingNet" xlink:to="beke_OtherInterestIncomeExpenseNonoperatingNet_639126233171773540" order="4" use="optional" weight="1" priority="3" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureTaxationComponentsOfIncomeTaxDetails" xlink:type="extended" xlink:title="99941901 - Disclosure - TAXATION - Components of income tax (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic" xlink:label="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_639126233171773540" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign" xlink:label="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:to="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_639126233171773540" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="IncomeTaxExpenseBenefit" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FederalIncomeTaxExpenseBenefitContinuingOperations" xlink:label="us-gaap_FederalIncomeTaxExpenseBenefitContinuingOperations_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_FederalIncomeTaxExpenseBenefitContinuingOperations_639126233171773540" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentFederalTaxExpenseBenefit" xlink:label="us-gaap_CurrentFederalTaxExpenseBenefit_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FederalIncomeTaxExpenseBenefitContinuingOperations_639126233171773540" xlink:to="us-gaap_CurrentFederalTaxExpenseBenefit_639126233171773540" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit" xlink:label="us-gaap_DeferredFederalIncomeTaxExpenseBenefit_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_FederalIncomeTaxExpenseBenefitContinuingOperations_639126233171773540" xlink:to="us-gaap_DeferredFederalIncomeTaxExpenseBenefit_639126233171773540" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ForeignIncomeTaxExpenseBenefitContinuingOperations" xlink:label="us-gaap_ForeignIncomeTaxExpenseBenefitContinuingOperations_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="IncomeTaxExpenseBenefit" xlink:to="us-gaap_ForeignIncomeTaxExpenseBenefitContinuingOperations_639126233171773540" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CurrentForeignTaxExpenseBenefit" xlink:label="us-gaap_CurrentForeignTaxExpenseBenefit_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_ForeignIncomeTaxExpenseBenefitContinuingOperations_639126233171773540" xlink:to="us-gaap_CurrentForeignTaxExpenseBenefit_639126233171773540" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit" xlink:label="us-gaap_DeferredForeignIncomeTaxExpenseBenefit_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_ForeignIncomeTaxExpenseBenefitContinuingOperations_639126233171773540" xlink:to="us-gaap_DeferredForeignIncomeTaxExpenseBenefit_639126233171773540" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureTaxationEffectiveTaxRatesDetails" xlink:type="extended" xlink:title="99941902 - Disclosure - TAXATION - Effective tax rates (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="us-gaap_EffectiveIncomeTaxRateContinuingOperations" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther_639126233171773540" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseResearchAndDevelopment" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseResearchAndDevelopment_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseResearchAndDevelopment_639126233171773540" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_EffectiveIncomeTaxRateReconciliationNondeductibleExpensePreferentialTaxBenefitsPercent" xlink:label="beke_EffectiveIncomeTaxRateReconciliationNondeductibleExpensePreferentialTaxBenefitsPercent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="beke_EffectiveIncomeTaxRateReconciliationNondeductibleExpensePreferentialTaxBenefitsPercent_639126233171773540" order="3" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_639126233171773540" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_639126233171773540" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseResearchAndDevelopmentAndOtherPercent" xlink:label="beke_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseResearchAndDevelopmentAndOtherPercent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="beke_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseResearchAndDevelopmentAndOtherPercent_639126233171773540" order="6" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_EffectiveIncomeTaxRateReconciliationPermanentDifferences" xlink:label="beke_EffectiveIncomeTaxRateReconciliationPermanentDifferences_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="beke_EffectiveIncomeTaxRateReconciliationPermanentDifferences_639126233171773540" order="7" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_EffectiveIncomeTaxRateReconciliationOecdPillarIiImpactPercent" xlink:label="beke_EffectiveIncomeTaxRateReconciliationOecdPillarIiImpactPercent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="beke_EffectiveIncomeTaxRateReconciliationOecdPillarIiImpactPercent_639126233171773540" order="8" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_639126233171773540" order="9" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome_639126233171773540" order="10" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_EffectiveIncomeTaxRateReconciliationAtPreferentialTreatments" xlink:label="beke_EffectiveIncomeTaxRateReconciliationAtPreferentialTreatments_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="beke_EffectiveIncomeTaxRateReconciliationAtPreferentialTreatments_639126233171773540" order="11" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_639126233171773540" order="12" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="us-gaap_IncomeTaxExpenseBenefit_2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate" xlink:label="us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeTaxExpenseBenefit_2" xlink:to="us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_639126233171773540" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential" xlink:label="us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeTaxExpenseBenefit_2" xlink:to="us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential_639126233171773540" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_EffectiveIncomeTaxRateReconciliationOecdPillarIiImpactAmount" xlink:label="beke_EffectiveIncomeTaxRateReconciliationOecdPillarIiImpactAmount_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeTaxExpenseBenefit_2" xlink:to="beke_EffectiveIncomeTaxRateReconciliationOecdPillarIiImpactAmount_639126233171773540" order="3" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance" xlink:label="us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeTaxExpenseBenefit_2" xlink:to="us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_639126233171773540" order="4" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost" xlink:label="us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeTaxExpenseBenefit_2" xlink:to="us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost_639126233171773540" order="5" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_EffectiveIncomeTaxRateReconciliationNondeductibleExpensePreferentialTaxBenefits" xlink:label="beke_EffectiveIncomeTaxRateReconciliationNondeductibleExpensePreferentialTaxBenefits_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeTaxExpenseBenefit_2" xlink:to="beke_EffectiveIncomeTaxRateReconciliationNondeductibleExpensePreferentialTaxBenefits_639126233171773540" order="6" use="optional" weight="-1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseResearchAndDevelopment" xlink:label="us-gaap_IncomeTaxReconciliationNondeductibleExpenseResearchAndDevelopment_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeTaxExpenseBenefit_2" xlink:to="us-gaap_IncomeTaxReconciliationNondeductibleExpenseResearchAndDevelopment_639126233171773540" order="7" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseOther" xlink:label="us-gaap_IncomeTaxReconciliationNondeductibleExpenseOther_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeTaxExpenseBenefit_2" xlink:to="us-gaap_IncomeTaxReconciliationNondeductibleExpenseOther_639126233171773540" order="8" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureTaxationIncomeTaxesPaidNetOfRefundsReceivedDetails" xlink:type="extended" xlink:title="99941903 - Disclosure - TAXATION - Income taxes paid (net of refunds received) (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxesPaidNet" xlink:label="us-gaap_IncomeTaxesPaidNet" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidFederalAfterRefundReceived" xlink:label="us-gaap_IncomeTaxPaidFederalAfterRefundReceived_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeTaxesPaidNet" xlink:to="us-gaap_IncomeTaxPaidFederalAfterRefundReceived_639126233171773540" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeTaxPaidForeignAfterRefundReceived" xlink:label="us-gaap_IncomeTaxPaidForeignAfterRefundReceived_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="us-gaap_IncomeTaxesPaidNet" xlink:to="us-gaap_IncomeTaxPaidForeignAfterRefundReceived_639126233171773540" order="2" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_PercentageOfIncomeTaxesPaidNet" xlink:label="beke_PercentageOfIncomeTaxesPaidNet" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_PercentageOfIncomeTaxPaidForeignAfterRefundReceived" xlink:label="beke_PercentageOfIncomeTaxPaidForeignAfterRefundReceived_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="beke_PercentageOfIncomeTaxesPaidNet" xlink:to="beke_PercentageOfIncomeTaxPaidForeignAfterRefundReceived_639126233171773540" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_PercentageOfIncomeTaxPaidFederalAfterRefundReceived" xlink:label="beke_PercentageOfIncomeTaxPaidFederalAfterRefundReceived_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="beke_PercentageOfIncomeTaxesPaidNet" xlink:to="beke_PercentageOfIncomeTaxPaidFederalAfterRefundReceived_639126233171773540" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureTaxationDeferredIncomeTaxAssetsAndLiabilitiesDetails" xlink:type="extended" xlink:title="99941905 - Disclosure - TAXATION - Deferred income tax assets and liabilities (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsNet" xlink:label="DeferredTaxAssetsNet" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="us-gaap_DeferredTaxAssetsValuationAllowance_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="DeferredTaxAssetsNet" xlink:to="us-gaap_DeferredTaxAssetsValuationAllowance_639126233171773540" order="1" use="optional" weight="-1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsOther" xlink:label="us-gaap_DeferredTaxAssetsOther_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="DeferredTaxAssetsNet" xlink:to="us-gaap_DeferredTaxAssetsOther_639126233171773540" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="DeferredTaxAssetsNet" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_639126233171773540" order="3" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_DeferredTaxAssetsUnrealizedProfits" xlink:label="beke_DeferredTaxAssetsUnrealizedProfits_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="DeferredTaxAssetsNet" xlink:to="beke_DeferredTaxAssetsUnrealizedProfits_639126233171773540" order="4" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsDeferredRent" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsDeferredRent_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="DeferredTaxAssetsNet" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsDeferredRent_639126233171773540" order="5" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsImpairmentLosses" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsImpairmentLosses_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="DeferredTaxAssetsNet" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsImpairmentLosses_639126233171773540" order="6" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards" xlink:label="us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="DeferredTaxAssetsNet" xlink:to="us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_639126233171773540" order="7" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredIncomeTaxLiabilities" xlink:label="DeferredIncomeTaxLiabilities" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesTaxDeferredIncome" xlink:label="us-gaap_DeferredTaxLiabilitiesTaxDeferredIncome_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="DeferredIncomeTaxLiabilities" xlink:to="us-gaap_DeferredTaxLiabilitiesTaxDeferredIncome_639126233171773540" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets" xlink:label="us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="DeferredIncomeTaxLiabilities" xlink:to="us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_639126233171773540" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredTaxLiabilitiesInvestments" xlink:label="us-gaap_DeferredTaxLiabilitiesInvestments_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="DeferredIncomeTaxLiabilities" xlink:to="us-gaap_DeferredTaxLiabilitiesInvestments_639126233171773540" order="3" use="optional" weight="1" priority="2" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureFairValueMeasurementDetails" xlink:type="extended" xlink:title="99942201 - Disclosure - FAIR VALUE MEASUREMENT (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="AssetsFairValueDisclosure" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_ShortTermInvestmentFairValueMeasurement" xlink:label="beke_ShortTermInvestmentFairValueMeasurement_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AssetsFairValueDisclosure" xlink:to="beke_ShortTermInvestmentFairValueMeasurement_639126233171773540" order="1" use="optional" weight="1" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_LongTermInvestmentFairValueMeasurement" xlink:label="beke_LongTermInvestmentFairValueMeasurement_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="AssetsFairValueDisclosure" xlink:to="beke_LongTermInvestmentFairValueMeasurement_639126233171773540" order="2" use="optional" weight="1" />
  </calculationLink>
  <calculationLink xlink:role="http://www.ke.com/role/DisclosureCommitmentsAndContingenciesMaturityDetails" xlink:type="extended" xlink:title="99942602 - Disclosure - COMMITMENTS AND CONTINGENCIES - Maturity (Details)" xmlns="http://www.xbrl.org/2003/linkbase">
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RecordedUnconditionalPurchaseObligation" xlink:label="RecordedUnconditionalPurchaseObligation" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RecordedUnconditionalPurchaseObligationDueInFourthYear" xlink:label="us-gaap_RecordedUnconditionalPurchaseObligationDueInFourthYear_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="RecordedUnconditionalPurchaseObligation" xlink:to="us-gaap_RecordedUnconditionalPurchaseObligationDueInFourthYear_639126233171773540" order="1" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RecordedUnconditionalPurchaseObligationDueInThirdYear" xlink:label="us-gaap_RecordedUnconditionalPurchaseObligationDueInThirdYear_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="RecordedUnconditionalPurchaseObligation" xlink:to="us-gaap_RecordedUnconditionalPurchaseObligationDueInThirdYear_639126233171773540" order="2" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RecordedUnconditionalPurchaseObligationDueInSecondYear" xlink:label="us-gaap_RecordedUnconditionalPurchaseObligationDueInSecondYear_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="RecordedUnconditionalPurchaseObligation" xlink:to="us-gaap_RecordedUnconditionalPurchaseObligationDueInSecondYear_639126233171773540" order="3" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="beke-20251231.xsd#beke_RecordedUnconditionalPurchaseObligationToBePaidAfterYearFour" xlink:label="beke_RecordedUnconditionalPurchaseObligationToBePaidAfterYearFour_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="RecordedUnconditionalPurchaseObligation" xlink:to="beke_RecordedUnconditionalPurchaseObligationToBePaidAfterYearFour_639126233171773540" order="4" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RecordedUnconditionalPurchaseObligationDueWithinOneYear" xlink:label="us-gaap_RecordedUnconditionalPurchaseObligationDueWithinOneYear_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="RecordedUnconditionalPurchaseObligation" xlink:to="us-gaap_RecordedUnconditionalPurchaseObligationDueWithinOneYear_639126233171773540" order="5" use="optional" weight="1" priority="2" />
    <loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RecordedUnconditionalPurchaseObligationDueInFifthYear" xlink:label="us-gaap_RecordedUnconditionalPurchaseObligationDueInFifthYear_639126233171773540" />
    <calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="RecordedUnconditionalPurchaseObligation" xlink:to="us-gaap_RecordedUnconditionalPurchaseObligationDueInFifthYear_639126233171773540" order="6" use="optional" weight="1" />
  </calculationLink>
</link:linkbase>
