| **Transfers and Servicing of Mortgage Loans (Details 2) - USD ($) $ in Millions**                                                                                                                                                                                                                                                                                                                          | 3 Months Ended | 6 Months Ended | 12 Months Ended |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------|----------------|-----------------|
||
| **Activity in capitalized MSRs**                                                                                                                                                                                                                                                                                                                                                                           |                |           |            |   |  |   |  |   |
| Balance, beginning of period                                                                                                                                                                                                                                                                                                                                                                               |                |           |            | $ 1,005 |  | $ 1,279 |  | $ 1,279 |
| Additions                                                                                                                                                                                                                                                                                                                                                                                                  |                |           |            | 48 |  | 46 |  |   |
| Sales                                                                                                                                                                                                                                                                                                                                                                                                      |                |           |            | (25) |  | (7) |  |   |
| **Changes in fair value due to:**                                                                                                                                                                                                                                                                                                                                                                          |                |           |            |   |  |   |  |   |
| Realization of expected cash flows                                                                                                                                                                                                                                                                                                                                                                         |                |           |            | (89) |  | (74) |  |   |
| Changes in market inputs or assumptions used in the valuation model                                                                                                                                                                                                                                                                                                                                        |                |           |            | 81 |  | (57) |  |   |
| Balance, end of period                                                                                                                                                                                                                                                                                                                                                                                     |                | $ 1,020        | $ 1,187         | 1,020 |  | 1,187 |  | $ 1,005 |
| **Contractually specified servicing fees, late fees and other ancillary servicing revenue were recorded within Loan servicing income as follows:**                                                                                                                                                                                                                                                         |                |           |            |   |  |   |  |   |
| Servicing fees from capitalized portfolio                                                                                                                                                                                                                                                                                                                                                                  |                | 77             | 90              | 156 | [1] | 182 | [1] |   |
| Late fees                                                                                                                                                                                                                                                                                                                                                                                                  |                | 3              | 3               | 7 |  | 8 |  |   |
| Other ancillary servicing revenue                                                                                                                                                                                                                                                                                                                                                                          |                | 8              | 8               | $ 15 |  | 16 |  |   |
| Weighted average life of MSRs                                                                                                                                                                                                                                                                                                                                                                              |                |           |            | 6 years 8 months 1 day |  |   |  | 5 years 8 months 12 days |
| **Cash flows relating to loan sales in which the Company has continuing involvement**                                                                                                                                                                                                                                                                                                                      |                |           |            |   |  |   |  |   |
| Proceeds from new loan sales or securitizations                                                                                                                                                                                                                                                                                                                                                            |                |           |            | $ 4,439 |  | 4,578 |  |   |
| Servicing fees from capitalized portfolio                                                                                                                                                                                                                                                                                                                                                                  |                | 77             | 90              | 156 | [1] | 182 | [1] |   |
| Purchases of delinquent or foreclosed loans                                                                                                                                                                                                                                                                                                                                                                | [2]            |           |            | (6) |  | (22) |  |   |
| Servicing advances                                                                                                                                                                                                                                                                                                                                                                                         | [3]            |           |            | (1,018) |  | (1,013) |  |   |
| Repayment of servicing advances                                                                                                                                                                                                                                                                                                                                                                            | [3]            |           |            | 1,041 |  | 1,017 |  |   |
| **Realized Gain Loss on Sale**                                                                                                                                                                                                                                                                                                                                                                             |                |           |            |   |  |   |  |   |
| Pre-tax gains related to sale or securitization of residential mortgage loans                                                                                                                                                                                                                                                                                                                              |                | $ 86           | $ 73            | $ 149 |  | $ 145 |  |   |
|                                                                                                                                                                                                                                                                                                                                                                                                            |
| [1]Excludes late fees and other ancillary servicing revenue.[2]Excludes indemnification payments to investors and insurers of the related mortgage loans.[3]Outstanding servicing advance receivables are presented in Servicing advances, net in the Condensed Consolidated Balance Sheets, except for advances related to loans in foreclosure or real estate owned, which are included in Other assets. |

| X                                                                                                                                                                                                                                     |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - References
No definition available.
+ Details**Name:**phh_SecuritizationFinancialAssetForWhichTransferAccountedAsSaleAbstract**Namespace Prefix:**phh_**Data Type:**xbrli:stringItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                     |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - References
No definition available.
+ Details**Name:**phh_ServicingAssetAtFairValueChangesInFairValueAbstract**Namespace Prefix:**phh_**Data Type:**xbrli:stringItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
All amounts that are due to the servicer of a financial asset, excluding contractually specified servicing fees and late fees.
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 50 -Section 50 -Paragraph 2 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=56950315&loc=d3e122596-111746
+ Details**Name:**us-gaap_AncillaryFeeIncomeGeneratedByServicingFinancialAssetsAmount**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**credit**Period Type:**duration |
| X                                                                                                                                                                                                                         |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - References
No definition available.
+ Details**Name:**us-gaap_CashFlowsBetweenTransfereeAndTransferorAbstract**Namespace Prefix:**us-gaap_**Data Type:**xbrli:stringItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Cash Flows between a transferor and a transferee attributable to newly transferred assets related to either a securitization, asset-backed financing arrangement, or similar transfer in which the transferor has continuing involvement with the transferred financial assets underlying the transaction (including, but not limited to, servicing, recourse, and restrictions on transferor's interests in the transferred financial assets).
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (d)(1) -URI http://asc.fasb.org/extlink&oid=51814546&loc=d3e107207-111719
+ Details**Name:**us-gaap_CashFlowsBetweenTransfereeAndTransferorProceedsFromNewTransfers**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**debit**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Cash Flows between a transferor and a transferee attributable to purchases of previously transferred financial assets (or its underlying collateral) related to a securitization, asset-backed financing arrangement, or similar transfer in which the transferor has continuing involvement with the transferred financial assets underlying the transaction (including, but not limited to, servicing, recourse, and restrictions on transferor's interests in the transferred financial assets).
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph b -URI http://asc.fasb.org/extlink&oid=51814546&loc=d3e107207-111719
+ Details**Name:**us-gaap_CashFlowsBetweenTransfereeAndTransferorPurchasesOfPreviouslyTransferredFinancialAssets**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**credit**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Cash flows between transferee and transferor in repayment of service fee advances, in advance of a securitization, asset-backed financing arrangement, or similar transfer in which the transferor has continuing involvement with the transferred financial assets underlying the transaction (including, but not limited to, servicing, recourse, and restrictions on transferor's interests in the transferred financial assets).
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph d -URI http://asc.fasb.org/extlink&oid=51814546&loc=d3e107207-111719
+ Details**Name:**us-gaap_CashFlowsBetweenTransfereeAndTransferorRepaymentsOfServicingFeeAdvances**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**debit**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Cash flows between transferor and transferee in payment of service fees in advance, prior to or in contemplation of a securitization, asset-backed financing arrangement, or similar transfer in which the transferor will have continuing involvement with the transferred financial assets underlying the transaction (including, but not limited to, servicing, recourse, and restrictions on transferor's interests in the transferred financial assets).
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph d -URI http://asc.fasb.org/extlink&oid=51814546&loc=d3e107207-111719
+ Details**Name:**us-gaap_CashFlowsBetweenTransfereeAndTransferorServicingFeeAdvances**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**credit**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Cash Flows between a transferee and a transferor attributable to servicing fees related to a securitization, asset-backed financing arrangement, or similar transfer in which the transferor has continuing involvement with the transferred financial assets underlying the transaction (including, but not limited to, servicing, recourse, and restrictions on transferor's interests in the transferred financial assets).
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph d -URI http://asc.fasb.org/extlink&oid=51814546&loc=d3e107207-111719
+ Details**Name:**us-gaap_CashFlowsBetweenTransfereeAndTransferorServicingFees**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**debit**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_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssetsAbstract**Namespace Prefix:**us-gaap_**Data Type:**xbrli:stringItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
All amounts that are due to the servicer of a financial asset as a result of the debt holder not meeting the monthly payment terms.
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 50 -Section 50 -Paragraph 2 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=56950315&loc=d3e122596-111746
+ Details**Name:**us-gaap_LateFeeIncomeGeneratedByServicingFinancialAssetsAmount**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**credit**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Reflects, by transferred financial asset type, the amount of sales proceeds in excess of or deficient from the sum of the carrying amounts of transferred financial assets plus transaction costs, including those transactions in which the seller/transferor has continuing involvement with the financial assets that have been transferred.
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=51814546&loc=d3e107207-111719Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 10 -Section 40 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=56951636&loc=d3e96813-111708
+ Details**Name:**us-gaap_SecuritizationFinancialAssetForWhichTransferIsAccountedAsSaleGainLossOnSale**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**credit**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Amount conveyed to unrelated parties of contract to contract to service financial assets under which the benefits of servicing are expected to more than adequately compensate the servicer.
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 50 -Section 50 -Paragraph 4 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=56950315&loc=d3e122739-111746
+ Details**Name:**us-gaap_ServicingAssetAtAmortizedValueDisposals**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**credit**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
The value of new servicing assets, subsequently measured at fair value, acquired or created during the current period through purchases or from transfers of financial assets.
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 50 -Section 50 -Paragraph 3 -Subparagraph (a)(2) -URI http://asc.fasb.org/extlink&oid=56950315&loc=d3e122625-111746
+ Details**Name:**us-gaap_ServicingAssetAtFairValueAdditions**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**debit**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Fair value of an asset representing net future revenue from contractually specified servicing fees, late charges, and other ancillary revenues, in excess of future costs related to servicing arrangements.
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 50 -Section 50 -Paragraph 3 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=56950315&loc=d3e122625-111746
+ Details**Name:**us-gaap_ServicingAssetAtFairValueAmount**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**debit**Period Type:**instant |
| X                                                                                                                                                                                                                                                                                                                                        |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.
+ References
No definition available.
+ Details**Name:**us-gaap_ServicingAssetAtFairValueAmountRollForward**Namespace Prefix:**us-gaap_**Data Type:**xbrli:stringItemType**Balance Type:**na**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
The net Increase or Decrease in fair value as a result of changes in the inputs, assumptions, or model used to calculate the fair value of servicing assets.
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 50 -Section 50 -Paragraph 3 -Subparagraph (a)(4)(i) -URI http://asc.fasb.org/extlink&oid=56950315&loc=d3e122625-111746
+ Details**Name:**us-gaap_ServicingAssetAtFairValueChangesInFairValueResultingFromChangesInValuationInputsOrChangesInAssumptions**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**debit**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
The net Increase or Decrease in fair value as a result of other changes that are not additions, disposals, or a result of change in the inputs, assumptions, or model used to calculate the fair value of servicing assets.
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 50 -Section 50 -Paragraph 3 -Subparagraph (a)(4)(ii) -URI http://asc.fasb.org/extlink&oid=56950315&loc=d3e122625-111746
+ Details**Name:**us-gaap_ServicingAssetAtFairValueOtherChangesInFairValue**Namespace Prefix:**us-gaap_**Data Type:**xbrli:monetaryItemType**Balance Type:**debit**Period Type:**duration |
| X                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| - Definition
Weighted average life of financial assets and financial liabilities, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.
+ References
Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 50 -Section 50 -Paragraph 2 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=56950315&loc=d3e122596-111746
+ Details**Name:**us-gaap_ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValueWeightedAverageLife1**Namespace Prefix:**us-gaap_**Data Type:**xbrli:durationItemType**Balance Type:**na**Period Type:**duration |