v3.21.1

Composition of certain financial statement captions - Schedule of prepaid and other current assets (Detail) - USD ($) $ in Thousands | Jan. 31, 2021 | Jan. 31, 2020
--- | --- | ---
Composition of Certain Financial Statement Captions [Abstract] |  |
Prepaid software and business systems | $ 2,322 | $ 1,611
Prepaid PhreesiaPads | 18 | 645
Prepaid data center expenses | 1,211 | 751
Prepaid insurance | 1,311 | 1,259
Other prepaid expenses and other current assets | 2,392 | 891
Total prepaid and other current assets | $ 7,254 | $ 5,157

X
- Definition Composition of Certain Financial Statement Captions [Abstract] + References No definition available. + Details
Name: | phr_CompositionOfCertainFinancialStatementCaptionsAbstract
Namespace Prefix: | phr_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Prepaid Computer Equipment + References No definition available. + Details
Name: | phr_PrepaidComputerEquipment
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Prepaid Data Center Expenses + References No definition available. + Details
Name: | phr_PrepaidDataCenterExpenses
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Prepaid Software and Business Systems + References No definition available. + Details
Name: | phr_PrepaidSoftwareAndBusinessSystems
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of current assets classified as other. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.8) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_OtherAssetsCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of asset related to consideration paid in advance for costs that provide economic benefits in future periods, and amount of other assets that are expected to be realized or consumed within one year or the normal operating cycle, if longer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(7)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=121566466&loc=d3e6676-107765 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(8)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_PrepaidExpenseAndOtherAssetsCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of asset related to consideration paid in advance for insurance that provides economic benefits within a future period of one year or the normal operating cycle, if longer. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 340 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6387103&loc=d3e6435-108320 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 340 -SubTopic 10 -Section 05 -Paragraph 5 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=68074540&loc=d3e5879-108316 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section 45 -Paragraph 1 -Subparagraph (g)(1) -URI http://asc.fasb.org/extlink&oid=121566466&loc=d3e6676-107765 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=121566466&loc=d3e6787-107765 + Details
Name: | us-gaap_PrepaidInsurance
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant