| **Fair Value Measurements (Details 4)**                                      | 12 Months Ended |
|------------------------------------------------------------------------------|-----------------|
||
| **Information regarding the initial and ending capitalization rate of MSRs** |            |   |
| Initial capitalization rate of additions to MSRs (as a percent)              | 1.02%           | 1.14% |
| Capitalization servicing rate (as a percent)                                 | 0.82%           | 0.89% |
| Capitalization servicing multiple (as a percent)                             | 290.00%         | 310.00% |
| Weighted-average servicing fee (as a percent)                                | 0.028%          | 0.029% |
| Mortgage servicing rights                                                    |            |   |
| **Significant assumptions used in estimating fair value**                    |            |   |
| Weighted-average prepayment speed (CPR) (as a percent)                       | 9.20%           | 9.10% |
| Option adjusted spread, in basis points (as a percent)                       | 1.43%           | 0.977% |
| Weighted-average delinquency rate (as a percent)                             | 5.10%           | 5.30% |

| X                                                                                                                                                                                                                                                                                                                                                                              |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
The weighted average delinquency rate for servicing assets or liabilities.
+ References
No definition available.
+ Details**Name:**phh_AssumptionForFairValueOfAssetsOrLiabilitiesThatRelateToTransferorsContinuingInvolvementWeightedAverageDelinquencyRate**Namespace Prefix:**phh_**Data Type:**num:percentItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                   |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Represents the capitalization multiple used to estimate the fair value of servicing assets and servicing liabilities.
+ References
No definition available.
+ Details**Name:**phh_MSRCapitalizedServicingMultiple**Namespace Prefix:**phh_**Data Type:**num:percentItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                  |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Represents the initial capitalization rate for additions to servicing assets and servicing liabilities.
+ References
No definition available.
+ Details**Name:**phh_MSRInitialCapitalizationRate**Namespace Prefix:**phh_**Data Type:**num:percentItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                          |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Represents the weighted-average servicing fee for servicing assets and servicing liabilities.
+ References
No definition available.
+ Details**Name:**phh_MSRWeightedAverageServicingFee**Namespace Prefix:**phh_**Data Type:**num:percentItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                            |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Represents the capitalization rate used to estimate the fair value of servicing assets and servicing liabilities.
+ References
No definition available.
+ Details**Name:**phh_RatioOfMSRCarryingValueToPrincipalAmountOfLoansInCapitalizedServingPortfolio**Namespace Prefix:**phh_**Data Type:**num:percentItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.
+ References
No definition available.
+ Details**Name:**us-gaap_AssumptionForFairValueAsOfBalanceSheetDateOfInterestsContinuedToBeHeldByTransferorServicingAssetsOrLiabilitiesLineItems**Namespace Prefix:**us-gaap_**Data Type:**xbrli:stringItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Discount rate which is used to value residual cash flows generated by financial assets of a securitization, asset-backed financing arrangement, or similar transfer regardless of when the transfer occurred.
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b)(1) -URI http://asc.fasb.org/extlink&oid=51814546&loc=d3e107314-111719
+ Details**Name:**us-gaap_AssumptionForFairValueOfInterestsContinuedToBeHeldByTransferorServicingAssetsOrLiabilitiesDiscountRate**Namespace Prefix:**us-gaap_**Data Type:**num:percentItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Estimated rate of prepayment of principal on financial assets regardless of when the transfer occurred.
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b)(2) -URI http://asc.fasb.org/extlink&oid=51814546&loc=d3e107314-111719
+ Details**Name:**us-gaap_AssumptionForFairValueOfInterestsContinuedToBeHeldByTransferorServicingAssetsOrLiabilitiesPrepaymentSpeed**Namespace Prefix:**us-gaap_**Data Type:**num:percentItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                       |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - References
No definition available.
+ Details**Name:**us-gaap_TransfersAndServicingAbstract**Namespace Prefix:**us-gaap_**Data Type:**xbrli:stringItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                         |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_FinancialInstrumentAxis=phh_MortgageServicingRightsMember**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |