Net Income Per Share Attributable to Common Stockholders - Narrative (Details) - USD ($) |
12 Months Ended | ||||
|---|---|---|---|---|---|
Jan. 31, 2021 |
Jan. 31, 2020 |
Jan. 31, 2021 |
Jan. 31, 2020 |
Jan. 31, 2019 |
|
| Class A Common Stock | |||||
| Earnings Per Share, Basic, by Common Class, Including Two Class Method [Line Items] | |||||
| Issuance of common stock reserved for charitable donation (in shares) | 405,156 | 500,000 | 165,336 | 1,929,417 | 0 |
| Convertible Promissory Notes | |||||
| Earnings Per Share, Basic, by Common Class, Including Two Class Method [Line Items] | |||||
| Debt instrument term | 3 years | ||||
| Convertible Promissory Notes | Dropbox | |||||
| Earnings Per Share, Basic, by Common Class, Including Two Class Method [Line Items] | |||||
| Debt instrument face amount | $ 5,000,000.0 | ||||
| Interest rate percentage | 2.75% | ||||
| Convertible Promissory Notes | Atlassian | |||||
| Earnings Per Share, Basic, by Common Class, Including Two Class Method [Line Items] | |||||
| Debt instrument face amount | $ 10,000,000.0 | ||||
| Interest rate percentage | 5.00% | ||||