XML 150 R132.htm IDEA: XBRL DOCUMENT
v3.26.1

ORDINARY SHARES - General information (Details) $ / shares in Units, $ in Thousands |  |  |  |  |  |  | 1 Months Ended | 12 Months Ended |
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Dec. 01, 2025 shares | May 11, 2022 shares | May 05, 2022 shares | Apr. 20, 2022 shares | Mar. 31, 2022 shares | Nov. 08, 2021 shares | May 31, 2025 shares | Nov. 30, 2020 USD ($) | Aug. 31, 2020 USD ($) | Dec. 31, 2025 $ / shares shares | Dec. 31, 2024 $ / shares shares | Dec. 31, 2023 $ / shares shares | Aug. 12, 2022 USD ($) $ / shares shares
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares and convertible redeemable preferred shares, share capital authorized | $ |  |  |  |  |  |  |  |  |  |  |  |  | $ 500,000
Ordinary shares and convertible redeemable preferred shares, authorized (in shares) |  |  |  |  |  |  |  |  |  |  |  |  | 25,000,000,000
Ordinary shares, shares authorized |  |  |  |  |  |  |  |  |  | 25,000,000,000 | 25,000,000,000 |  |
Ordinary shares par value (in dollars per share) | $ / shares |  |  |  |  |  |  |  |  |  | $ 0.00002 | $ 0.00002 |  |
IPO |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Proceeds from issuance of initial public offering, net of offering costs | $ |  |  |  |  |  |  |  |  | $ 2,358,800 |  |  |  |
Underwriter commissions and relevant offering expenses | $ |  |  |  |  |  |  |  |  | $ 79,200 |  |  |  |
Follow-on public offering |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Underwriter commissions and relevant offering expenses | $ |  |  |  |  |  |  |  | $ 38,500 |  |  |  |  |
Proceeds from issuance of ordinary shares, net of offering costs | $ |  |  |  |  |  |  |  | $ 2,322,600 |  |  |  |  |
Class A Ordinary Shares |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares, shares authorized |  |  |  |  |  |  |  |  |  | 24,114,698,720 | 24,114,698,720 |  | 24,114,698,720
Ordinary shares par value (in dollars per share) | $ / shares |  |  |  |  |  |  |  |  |  | $ 0.00002 | $ 0.00002 | $ 0.00002 | $ 0.00002
Class A Ordinary Shares | Employee trust controlled by the company upon exercise of options |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary share issuance upon follow-on public offering, net of issuance costs |  |  |  |  |  |  |  |  |  | 60,852,775 |  |  |
Number of shares for which options exercised |  |  |  |  |  |  |  |  |  | 57,025,016 |  |  |
Class A Ordinary Shares | Depositary Bank |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary share issuance upon follow-on public offering, net of issuance costs |  |  |  |  |  |  |  |  |  | 30,900,000 | 49,500,000 | 88,800,000 |
Number of shares for which options exercised |  |  |  |  |  |  |  |  |  | 128,783,463 |  |  |
Class A Ordinary Shares | Propitious Global Holdings Limited |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Number of ordinary shares converted from one class to another |  | 727,407,230 |  |  |  |  |  |  |  |  |  |  |
Class A Ordinary Shares | Mr. SHAN Yigang, an executive director |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Number of ordinary shares converted from one class to another |  |  |  |  |  | 47,777,775 |  |  |  |  |  |  |
Conversion ratio for the re-designated shares |  |  |  |  |  | 1 |  |  |  |  |  |  |
Class A Ordinary Shares | Mr. PENG Yongdong, chairman and chief executive officer |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Number of ordinary shares converted from one class to another |  |  |  |  |  | 110,116,275 |  |  |  |  |  |  |
Class B Ordinary Shares |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares, shares authorized |  |  |  |  |  |  |  |  |  | 885,301,280 | 885,301,280 |  | 885,301,280
Ordinary shares par value (in dollars per share) | $ / shares |  |  |  |  |  |  |  |  |  |  |  |  | $ 0.00002
Class B Ordinary Shares | Propitious Global Holdings Limited |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Number of ordinary shares converted from one class to another |  |  |  |  |  | 157,894,050 |  |  |  |  |  |  |
Conversion ratio for the re-designated shares |  | 1 |  |  |  | 1 |  |  |  |  |  |  |
Class B Ordinary Shares | Ever Orient International Limited |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Number of ordinary shares converted from one class to another |  |  |  |  |  |  |  |  |  | 4,160,498 | 4,143,361 | 3,537,486 |
Conversion ratio for the re-designated shares |  |  |  |  |  |  |  |  |  | 1 | 1 | 1 |
Class B Ordinary Shares | Clover Rich Limited |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Number of ordinary shares converted from one class to another |  |  |  |  |  |  |  |  |  | 1,805,178 | 1,797,742 | 1,534,861 |
Conversion ratio for the re-designated shares |  |  |  |  |  |  |  |  |  | 1 | 1 | 1 |
Restricted class A ordinary shares | 2022 Share Incentive Plan |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Restriction period |  |  | 5 years |  |  |  |  |  |  |  |  |  |
Restricted class A ordinary shares | Shengdu Home Renovation Co Ltd |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares issued in acquisition |  |  |  | 44,315,854 | 44,315,854 |  |  |  |  |  |  |  |
Restriction period |  |  |  |  | 3 years |  |  |  |  |  |  |  |
Number of shares restriction removed |  |  |  |  |  |  |  |  |  | 44,315,854 |  |  |
Restricted class A ordinary shares | Shengdu Home Renovation Co Ltd | 2022 Share Incentive Plan |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Restriction period |  |  | 5 years |  |  |  |  |  |  |  |  |  |
Restricted class A ordinary shares | Mr. SHAN Yigang, an executive director |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares issued |  |  |  |  |  |  |  |  |  | 53,868,189 |  |  |
Restricted class A ordinary shares | Mr. SHAN Yigang, an executive director | 2022 Share Incentive Plan |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares restriction removed |  |  |  |  |  |  | 34,373,035 |  |  |  |  |  |
Number of shares issued |  |  | 53,868,189 |  |  |  |  |  |  |  |  |  |
Restricted class A ordinary shares | Mr. PENG Yongdong, chairman and chief executive officer |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares issued |  |  |  |  |  |  |  |  |  | 62,824,250 |  |  |
Restricted class A ordinary shares | Mr. PENG Yongdong, chairman and chief executive officer | 2022 Share Incentive Plan |  |  |  |  |  |  |  |  |  |  |  |  |
Ordinary shares |  |  |  |  |  |  |  |  |  |  |  |  |
Number of shares restriction removed | 9,000,000 |  |  |  |  |  | 45,830,712 |  |  | 9,000,000 |  |  |
Number of shares issued |  |  | 71,824,250 |  |  |  |  |  |  |  |  |  |

X
- Definition Common Stock and Temporary Equity, Share Capital Authorized + References No definition available. + Details
Name: | beke_CommonStockAndTemporaryEquityShareCapitalAuthorized
Namespace Prefix: | beke_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Common Stock and Temporary Equity, Shares Authorized + References No definition available. + Details
Name: | beke_CommonStockAndTemporaryEquitySharesAuthorized
Namespace Prefix: | beke_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Ratio applied to the conversion of stock, for example but not limited to, one share converted to two or two shares converted to one. + References No definition available. + Details
Name: | beke_ConversionRatio
Namespace Prefix: | beke_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Offering Costs, Underwriter Commissions and Relevant Offering Expenses. + References No definition available. + Details
Name: | beke_OfferingCostsUnderwriterCommissionsAndRelevantOfferingExpenses
Namespace Prefix: | beke_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Proceeds from Issuance Initial Public Offering, Net of Offering Costs + References No definition available. + Details
Name: | beke_ProceedsFromIssuanceInitialPublicOfferingNetOfOfferingCosts
Namespace Prefix: | beke_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Proceeds from Issuance of Common Stock, Net of Offering Costs + References No definition available. + Details
Name: | beke_ProceedsFromIssuanceOfCommonStockNetOfOfferingCosts
Namespace Prefix: | beke_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Period to remove restrictions on restricted shares. + References No definition available. + Details
Name: | beke_RestrictedSharePeriod
Namespace Prefix: | beke_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares of equity interest issued or issuable by acquirer as part of consideration transferred in business combination. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 805 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479328/805-10-50-8 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 805 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 41 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479303/805-10-55-41 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 805 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479581/805-30-50-2 Reference 4: http://www.xbrl.org/2003/role/exampleRef -Topic 805 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(4) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479581/805-30-50-1 Reference 5: http://www.xbrl.org/2003/role/exampleRef -Topic 805 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 42 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479303/805-10-55-42 + Details
Name: | us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 8A -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-8A Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-2 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480738/235-10-S50-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 480 -SubTopic 10 -Name Accounting Standards Codification -Section S50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479857/480-10-S50-1 Reference 5: http://www.xbrl.org/2003/role/exampleRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-13 Reference 6: http://www.xbrl.org/2003/role/recommendedDisclosureRef -Topic 272 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483014/272-10-45-3 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 272 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482987/272-10-50-1 Reference 8: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(d)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480678/235-10-S99-1 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-13 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-13 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-13 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (h) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-13 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 14 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-14 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 18 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-18 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(27)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479886/946-10-S99-3 Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(1)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479886/946-10-S99-3 Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(2)(i)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479886/946-10-S99-3 Reference 21: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(2)(ii)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479886/946-10-S99-3 + Details
Name: | us-gaap_ClassOfStockLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Face amount or stated value per share of common stock. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_CommonStockParOrStatedValuePerShare
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of common shares permitted to be issued by an entity's charter and bylaws. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(16)(a)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479170/946-210-S99-1 + Details
Name: | us-gaap_CommonStockSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The number of shares converted in a noncash (or part noncash) transaction. Noncash is defined as transactions during a period that do not result in cash receipts or cash payments in the period. "Part noncash" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482913/230-10-50-4 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482913/230-10-50-3 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 50 -Paragraph 5 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482913/230-10-50-5 + Details
Name: | us-gaap_ConversionOfStockSharesConverted1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(2)(iii)(02) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares issued under share-based payment arrangement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of new stock issued during the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 2 -SubTopic 10 -Topic 505 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-2 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 505 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478448/946-505-50-2 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-09(4)(b)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479134/946-220-S99-3 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.6-03(i)(1)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479886/946-10-S99-3 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480008/505-10-S99-1 + Details
Name: | us-gaap_StockIssuedDuringPeriodSharesNewIssues
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of share options (or share units) exercised during the current period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 2 -SubTopic 10 -Topic 505 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481112/505-10-50-2 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(1)(iv)(02) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480429/718-10-50-2 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480008/505-10-S99-1 + Details
Name: | us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_SubsidiarySaleOfStockAxis=us-gaap_IPOMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_SubsidiarySaleOfStockAxis=beke_FollowOnPublicOfferingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_CommonClassAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CounterpartyNameAxis=beke_EmployeeTrustControlledByCompanyUponExerciseOfOptionsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CounterpartyNameAxis=beke_DepositaryBankMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=beke_PropitiousGlobalHoldingsLimitedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_TitleOfIndividualAxis=beke_Mr.ShanYigangExecutiveDirectorMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_TitleOfIndividualAxis=beke_Mr.PengYongdongChairmanAndChiefExecutiveOfficerMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_CommonClassBMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=beke_EverOrientInternationalLimitedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=beke_CloverRichLimitedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=beke_RestrictedClassaOrdinarySharesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PlanNameAxis=beke_GlobalShareIncentivePlan2022Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=beke_ShengduHomeRenovationCoLtdMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |