v3.24.0.1
Net Loss Per Share Attributable to Compass, Inc. - Schedule of Computation of Diluted Net Loss Per Share Attributable to Common Stockholders (Detail) - shares
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 72,737,176 94,698,485 110,502,861
Outstanding stock options      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 40,527,848 46,694,237 54,525,539
Outstanding RSUs      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 29,943,818 47,189,837 54,517,930
Shares subject to the Employee Stock Purchase Plan      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 589,729 583,749 0
Unvested early exercised options      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 11,230 91,770 1,068,300
Unvested common stock      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 0 138,892 391,092
Contingent common stock to be issued in connection with the Strategic Transaction      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 1,664,551 0 0