v3.26.1
Basic and Diluted Net Income Per Share - Summary of Basic and Diluted Net Income Per Share of Class A and Class B Common Stock (Detail) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2026
Mar. 31, 2026
Jun. 30, 2025
Mar. 31, 2025
Jun. 30, 2026
Jun. 30, 2025
Numerator:            
Allocation of net income attributable to Guardian Pharmacy Services, Inc. $ 21,872 $ 13,295 $ 9,030 $ 9,448 $ 35,167 $ 18,478
Numerator:            
Allocation of net income attributable to Guardian Pharmacy Services, Inc. 21,872 $ 13,295 9,030 $ 9,448 35,167 18,478
Common Class A [Member]            
Numerator:            
Allocation of net income attributable to Guardian Pharmacy Services, Inc. $ 17,196   $ 3,262   $ 24,078 $ 4,805
Denominator:            
Weighted average number of shares of Class A and Class B common stock outstanding 49,787   22,412   43,357 16,134
Basic net income per share attributable to common stockholders $ 0.35   $ 0.15   $ 0.56 $ 0.3
Numerator:            
Allocation of net income attributable to Guardian Pharmacy Services, Inc. $ 17,196   $ 3,262   $ 24,078 $ 4,805
Denominator:            
Number of shares used in basic computation 49,787   22,412   43,357 16,134
Weighted average shares of Class A and Class B common stock outstanding used to calculate diluted net income per share 50,187   22,830   43,654 16,397
Diluted net income per share attributable to common stockholders $ 0.34   $ 0.14   $ 0.55 $ 0.29
Common Class B [Member]            
Numerator:            
Allocation of net income attributable to Guardian Pharmacy Services, Inc. $ 4,676   $ 5,768   $ 11,089 $ 13,673
Denominator:            
Weighted average number of shares of Class A and Class B common stock outstanding 13,539   39,634   19,967 45,910
Basic net income per share attributable to common stockholders $ 0.35   $ 0.15   $ 0.56 $ 0.3
Numerator:            
Allocation of net income attributable to Guardian Pharmacy Services, Inc. $ 4,676   $ 5,768   $ 11,089 $ 13,673
Denominator:            
Number of shares used in basic computation 13,539   39,634   19,967 45,910
Weighted average shares of Class A and Class B common stock outstanding used to calculate diluted net income per share 13,648   40,373   20,104 46,658
Diluted net income per share attributable to common stockholders $ 0.34   $ 0.14   $ 0.55 $ 0.29
Restricted Stock [Member] | Common Class A [Member]            
Denominator:            
Dilutive Restricted Stock Units and Class A and B Common Stock 400   418   297 263
Restricted Stock [Member] | Common Class B [Member]            
Denominator:            
Dilutive Restricted Stock Units and Class A and B Common Stock 109   739   137 748