EMPLOYEE BENEFIT PLANS (Details for Stock Incentive Plans) - USD ($) $ / shares in Units, $ in Thousands | 12 Months Ended | |
Dec. 31, 2017 | Dec. 31, 2016 | Dec. 31, 2015 | Jun. 09, 2016 |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | |
Compensation expense | $ 39,030 | $ 36,349 | $ 34,537 | |
Performance service period | 3 years | | | |
Options Outstanding 1 [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions and Methodology [Abstract] | | | | |
Range of exercise price, minimum, (in dollars per share) | $ 36.73 | | | |
Range of exercise price, maximum, (in dollars per share) | $ 58.06 | | | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range, End of Period [Abstract] | | | | |
Number of shares (in shares) | 41,359 | | | |
Weighted-average remaining contractual life (in years) | 3 years 1 month 17 days | | | |
Weighted- average exercise price (in dollars per share) | $ 56.64 | | | |
Options Outstanding 2 [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions and Methodology [Abstract] | | | | |
Range of exercise price, minimum, (in dollars per share) | 58.07 | | | |
Range of exercise price, maximum, (in dollars per share) | $ 59.59 | | | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range, End of Period [Abstract] | | | | |
Number of shares (in shares) | 40,004 | | | |
Weighted-average remaining contractual life (in years) | 4 years 1 month 21 days | | | |
Weighted- average exercise price (in dollars per share) | $ 58.95 | | | |
Options Outstanding 3 [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions and Methodology [Abstract] | | | | |
Range of exercise price, minimum, (in dollars per share) | 59.60 | | | |
Range of exercise price, maximum, (in dollars per share) | $ 81.19 | | | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range, End of Period [Abstract] | | | | |
Number of shares (in shares) | 1,000 | | | |
Weighted-average remaining contractual life (in years) | 3 years 5 months 1 day | | | |
Weighted- average exercise price (in dollars per share) | $ 60.23 | | | |
Options Outstanding 4 [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions and Methodology [Abstract] | | | | |
Range of exercise price, minimum, (in dollars per share) | 81.20 | | | |
Range of exercise price, maximum, (in dollars per share) | $ 142.45 | | | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range, End of Period [Abstract] | | | | |
Number of shares (in shares) | 70,944 | | | |
Weighted-average remaining contractual life (in years) | 5 years 2 months 9 days | | | |
Weighted- average exercise price (in dollars per share) | $ 102.16 | | | |
Options Outstanding 5 [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions and Methodology [Abstract] | | | | |
Range of exercise price, minimum, (in dollars per share) | 142.46 | | | |
Range of exercise price, maximum, (in dollars per share) | $ 188.22 | | | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range, End of Period [Abstract] | | | | |
Number of shares (in shares) | 76,934 | | | |
Weighted-average remaining contractual life (in years) | 8 years 2 months 9 days | | | |
Weighted- average exercise price (in dollars per share) | $ 182.75 | | | |
Options Outstanding 6 [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions and Methodology [Abstract] | | | | |
Range of exercise price, minimum, (in dollars per share) | 188.23 | | | |
Range of exercise price, maximum, (in dollars per share) | $ 197.37 | | | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range, End of Period [Abstract] | | | | |
Number of shares (in shares) | 65,802 | | | |
Weighted-average remaining contractual life (in years) | 7 years 2 months 1 day | | | |
Weighted- average exercise price (in dollars per share) | $ 193.69 | | | |
Options Outstanding 7 [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions and Methodology [Abstract] | | | | |
Range of exercise price, minimum, (in dollars per share) | 197.38 | | | |
Range of exercise price, maximum, (in dollars per share) | $ 202.98 | | | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range, End of Period [Abstract] | | | | |
Number of shares (in shares) | 62,300 | | | |
Weighted-average remaining contractual life (in years) | 6 years 1 month 28 days | | | |
Weighted- average exercise price (in dollars per share) | $ 201.04 | | | |
Options Outstanding 8 [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions and Methodology [Abstract] | | | | |
Range of exercise price, minimum, (in dollars per share) | 202.99 | | | |
Range of exercise price, maximum, (in dollars per share) | $ 204.91 | | | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range, End of Period [Abstract] | | | | |
Number of shares (in shares) | 95,500 | | | |
Weighted-average remaining contractual life (in years) | 9 years 1 month 28 days | | | |
Weighted- average exercise price (in dollars per share) | $ 204.91 | | | |
Options Outstanding 9 [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions and Methodology [Abstract] | | | | |
Range of exercise price, minimum, (in dollars per share) | 36.73 | | | |
Range of exercise price, maximum, (in dollars per share) | $ 204.91 | | | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range, End of Period [Abstract] | | | | |
Number of shares (in shares) | 453,843 | | | |
Weighted-average remaining contractual life (in years) | 6 years 8 months 1 day | | | |
Weighted- average exercise price (in dollars per share) | $ 156.24 | | | |
Options Exercisable 1 [Member] | | | | |
Options Exercisable [Abstract] | | | | |
Number of shares (in shares) | 41,359 | | | |
Weighted-average exercise price (in dollars per share) | $ 56.64 | | | |
Options Exercisable 2 [Member] | | | | |
Options Exercisable [Abstract] | | | | |
Number of shares (in shares) | 40,004 | | | |
Weighted-average exercise price (in dollars per share) | $ 58.95 | | | |
Options Exercisable 3 [Member] | | | | |
Options Exercisable [Abstract] | | | | |
Number of shares (in shares) | 1,000 | | | |
Weighted-average exercise price (in dollars per share) | $ 60.23 | | | |
Options Exercisable 4 [Member] | | | | |
Options Exercisable [Abstract] | | | | |
Number of shares (in shares) | 70,944 | | | |
Weighted-average exercise price (in dollars per share) | $ 102.16 | | | |
Options Exercisable 5 [Member] | | | | |
Options Exercisable [Abstract] | | | | |
Number of shares (in shares) | 21,999 | | | |
Weighted-average exercise price (in dollars per share) | $ 182.75 | | | |
Options Exercisable 6 [Member] | | | | |
Options Exercisable [Abstract] | | | | |
Number of shares (in shares) | 40,633 | | | |
Weighted-average exercise price (in dollars per share) | $ 193.69 | | | |
Options Exercisable 7 [Member] | | | | |
Options Exercisable [Abstract] | | | | |
Number of shares (in shares) | 62,300 | | | |
Weighted-average exercise price (in dollars per share) | $ 201.04 | | | |
Options Exercisable 8 [Member] | | | | |
Options Exercisable [Abstract] | | | | |
Number of shares (in shares) | 0 | | | |
Weighted-average exercise price (in dollars per share) | $ 0 | | | |
Options Exercisable 9 [Member] | | | | |
Options Exercisable [Abstract] | | | | |
Number of shares (in shares) | 278,239 | | | |
Weighted-average exercise price (in dollars per share) | $ 130.91 | | | |
CoStar Group, Inc. 2016 Stock Incentive Plan [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | |
Shares available for future grant under the plan (in shares) | 2,000,000 | | | |
Shares of common stock authorized for issuance under the plan (in shares) | 1,450,000 | | | |
CoStar Group, Inc. 2007 Stock Incentive Plan [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | |
Shares available for future grant under the plan (in shares) | | | | 0 |
Shares of common stock authorized for issuance under the plan (in shares) | 815,464 | | | |
Restricted Stock Units (RSUs) [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward] | | | | |
Unvested restricted stock at beginning of period (in shares) | 1,199 | | | |
Granted (in shares) | 69 | | | |
Vested (in shares) | (306) | | | |
Canceled (in shares) | 0 | | | |
Unvested restricted stock at end of period (in shares) | 962 | 1,199 | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Additional Disclosures [Abstract] | | | | |
Unvested restricted stock at beginning of period (in dollars per share) | $ 182.64 | | | |
Granted (in dollars per share) | 291.82 | | | |
Vested (in dollars per share) | 183.28 | | | |
Canceled (in dollars per share) | 0 | | | |
Unvested restricted stock at end of period (in dollars per share) | $ 190.27 | $ 182.64 | | |
Stock Options [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | |
Compensation cost expected to be recognized in future years | $ 57,000 | | | |
Weighted-average-period expected to recognize the unrecognized compensation cost (in years) | 2 years 2 months 12 days | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding [Roll Forward] | | | | |
Outstanding at beginning of period (in shares) | 440,158 | 400,077 | 370,179 | |
Granted (in shares) | 95,500 | 82,400 | 89,500 | |
Exercised (in shares) | (81,815) | (29,285) | (59,602) | |
Canceled or expired (in shares) | | (13,034) | | |
Outstanding at end of period (in shares) | 453,843 | 440,158 | 400,077 | |
Exercisable at end of period (in shares) | 278,239 | 284,489 | 220,107 | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Additional Disclosures [Abstract] | | | | |
Weighted-average exercise price, outstanding at beginning of period (in dollars per share) | $ 132.08 | $ 122.30 | $ 99.12 | |
Weighted-average exercise price, granted (in dollars per share) | 204.91 | 182.75 | 193.69 | |
Weighted-average exercise price, exercised (in dollars per share) | 83.07 | 112.78 | 85.48 | |
Weighted-average exercise price, canceled or expired (in dollars per share) | | 195.78 | | |
Weighted-average exercise price, outstanding at end of period (in dollars per share) | 156.24 | 132.08 | 122.30 | |
Weighted-average exercise price, exercisable at end of period (in dollars per share) | $ 130.91 | $ 100.94 | $ 77.63 | |
Weighted-average remaining contract life of options outstanding at end of period | 6 years 8 months 1 day | | | |
Weighted-average remaining contract life of options exercisable at end of period | 5 years 5 months 19 days | | | |
Aggregate intrinsic value of options outstanding at end of period | $ 63,861 | | | |
Aggregate intrinsic value of options exercisable at end of period | 46,199 | | | |
Aggregate intrinsic value of options exercised | $ 13,000 | $ 3,000 | $ 7,000 | |
Weighted-average grant date fair value of each option granted during the period (in dollars per share) | $ 59.06 | $ 54.34 | $ 56.53 | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions and Methodology [Abstract] | | | | |
Dividend yield (in hundredths) | 0.00% | 0.00% | 0.00% | |
Expected volatility (in hundredths) | 28.00% | 31.00% | 30.00% | |
Risk-free interest rate (in hundredths) | 2.00% | 1.00% | 2.00% | |
Expected life (in years) | 5 years | 5 years | 5 years | |
Restricted Stock Awards — without Market Condition | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward] | | | | |
Unvested restricted stock at beginning of period (in shares) | 394,712 | | | |
Granted (in shares) | 156,238 | | | |
Vested (in shares) | (156,240) | | | |
Canceled (in shares) | (30,827) | | | |
Unvested restricted stock at end of period (in shares) | 363,883 | 394,712 | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Additional Disclosures [Abstract] | | | | |
Unvested restricted stock at beginning of period (in dollars per share) | $ 192.38 | | | |
Granted (in dollars per share) | 211.69 | | | |
Vested (in dollars per share) | 177.72 | | | |
Canceled (in dollars per share) | 196.87 | | | |
Unvested restricted stock at end of period (in dollars per share) | $ 206.59 | $ 192.38 | | |
Restricted Stock Awards — with Market Condition | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | |
Compensation expense | $ 5,000 | $ 3,000 | $ 3,000 | |
Compensation cost expected to be recognized in future years | $ 6,000 | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions and Methodology [Abstract] | | | | |
Dividend yield (in hundredths) | 0.00% | 0.00% | 0.00% | |
Expected volatility (in hundredths) | 28.00% | 28.00% | 26.00% | |
Risk-free interest rate (in hundredths) | 2.00% | 1.00% | 1.00% | |
Expected life (in years) | 3 years | 3 years | 3 years | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward] | | | | |
Unvested restricted stock at beginning of period (in shares) | 72,480 | | | |
Granted (in shares) | 32,160 | | | |
Vested (in shares) | (13,477) | | | |
Canceled (in shares) | (5,963) | | | |
Unvested restricted stock at end of period (in shares) | 85,200 | 72,480 | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Additional Disclosures [Abstract] | | | | |
Unvested restricted stock at beginning of period (in dollars per share) | $ 202.07 | | | |
Granted (in dollars per share) | 218.59 | $ 184.97 | $ 208.08 | |
Vested (in dollars per share) | 216.20 | | | |
Canceled (in dollars per share) | 216.20 | | | |
Unvested restricted stock at end of period (in dollars per share) | $ 205.08 | $ 202.07 | | |
Performance Shares [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward] | | | | |
Granted (in shares) | 32,400 | 25,680 | 32,160 | |
Minimum [Member] | CoStar Group, Inc. 2016 Stock Incentive Plan [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | |
Vesting period of options and restricted stock grants | 3 years | | | |
Minimum [Member] | CoStar Group, Inc. 2007 Stock Incentive Plan [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | |
Vesting period of options and restricted stock grants | 3 years | | | |
Minimum [Member] | Stock Options [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding [Roll Forward] | | | | |
Outstanding at beginning of period, (in dollars per share) | $ 36.48 | $ 36.48 | $ 36.48 | |
Granted (in dollars per share) | 0 | 182.75 | 193.69 | |
Exercised (in dollars per share) | 36.48 | 36.48 | 36.48 | |
Canceled or expired (in dollars per share) | | 196.69 | | |
Outstanding at end of period, (in dollars per share) | 36.73 | 36.48 | 36.48 | |
Exercisable at end of period (in dollars per share) | $ 36.73 | 36.48 | 36.48 | |
Minimum [Member] | Restricted Stock [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | |
Vesting period of options and restricted stock grants | 1 year | | | |
Share-based compensation arrangement, award vesting rights, percentage | 0.00% | | | |
Minimum [Member] | Performance Shares [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | |
Share-based compensation arrangement, award vesting rights, percentage | 80.00% | | | |
Maximum [Member] | CoStar Group, Inc. 2016 Stock Incentive Plan [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | |
Vesting period of options and restricted stock grants | 4 years | | | |
Maximum [Member] | CoStar Group, Inc. 2007 Stock Incentive Plan [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | |
Vesting period of options and restricted stock grants | 4 years | | | |
Maximum [Member] | Stock Options [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding [Roll Forward] | | | | |
Outstanding at beginning of period, (in dollars per share) | $ 201.04 | 201.04 | 201.04 | |
Granted (in dollars per share) | 204.91 | 182.75 | 193.69 | |
Exercised (in dollars per share) | 201.04 | 201.04 | 201.04 | |
Canceled or expired (in dollars per share) | | 201.04 | | |
Outstanding at end of period, (in dollars per share) | 204.91 | 201.04 | 201.04 | |
Exercisable at end of period (in dollars per share) | $ 201.04 | $ 201.04 | $ 201.04 | |
Maximum [Member] | Restricted Stock [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | |
Share-based compensation arrangement, award vesting rights, percentage | 200.00% | | | |
Maximum [Member] | Performance Shares [Member] | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | |
Share-based compensation arrangement, award vesting rights, percentage | 120.00% | | | |