| **Derivatives (Details 3) - USD ($) $ in Millions**                               | 3 Months Ended | 6 Months Ended |
|-----------------------------------------------------------------------------------|----------------|----------------|
||
| **Derivatives**                                                                   |           |           |   |   |
| Net derivative (loss) gain related to mortgage servicing rights                   | $ (49)         | $ 20           | $ 4 | $ 26 |
| Interest rate lock commitments | Gain on loans held for sale, net                 |           |           |   |   |
| **Derivatives**                                                                   |           |           |   |   |
| Gains (losses) on derivative instruments                                          | 54             | 95             | 135 | 169 |
| Forward delivery commitments | Gain on loans held for sale, net                   |           |           |   |   |
| **Derivatives**                                                                   |           |           |   |   |
| Gains (losses) on derivative instruments                                          | 28             | (39)           | 11 | (59) |
| Option contracts | Gain on loans held for sale, net                               |           |           |   |   |
| **Derivatives**                                                                   |           |           |   |   |
| Gains (losses) on derivative instruments                                          | (1)            | (2)            | (1) | (3) |
| MSR-related agreements | Net derivative gain related to mortgage servicing rights |           |           |   |   |
| **Derivatives**                                                                   |           |           |   |   |
| Net derivative (loss) gain related to mortgage servicing rights                   | $ (49)         | $ 20           | $ 4 | $ 26 |

| X                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Net gain (loss) from the increase (decrease) in fair value of derivative instrument not designated as hedging instrument related to risk management of the Mortgage Servicing Rights Asset.
+ References
No definition available.
+ Details**Name:**phh_MSRRelatedDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet**Namespace Prefix:**phh_**Data Type:**xbrli:monetaryItemType**Balance Type:**credit**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_DerivativeInstrumentsGainLossLineItems**Namespace Prefix:**us-gaap_**Data Type:**xbrli:stringItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Amount of realized and unrealized gain (loss) of derivative instruments not designated or qualifying as hedging instruments.
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4C -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=56946850&loc=SL5624171-113959
+ Details**Name:**us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**credit**Period Type:**duration |
| X                                                                                                                                                                |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_DerivativeByNatureAxis=us-gaap_InterestRateLockCommitmentsMember**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |
| X                                                                                                                                                                |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_IncomeStatementLocationAxis=phh_GainLossOnMortgageLoansNetMember**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |
| X                                                                                                                                                     |
|-------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_DerivativeByNatureAxis=us-gaap_ForwardContractsMember**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |
| X                                                                                                                                           |
|---------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_DerivativeByNatureAxis=us-gaap_OptionMember**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |
| X                                                                                                                                                             |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_DerivativeByNatureAxis=phh_MSRRelatedDerivativesMSRRiskMember**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |
| X                                                                                                                                                                                  |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Details**Name:**us-gaap_IncomeStatementLocationAxis=phh_NetDerivativeGainLossMortgageServicingRightsMember**Namespace Prefix:****Data Type:**na**Balance Type:****Period Type:** |