{
 "instance": {
  "pmt-10q_20190630.htm": {
   "axisCustom": 0,
   "axisStandard": 41,
   "contextCount": 1200,
   "dts": {
    "calculationLink": {
     "local": [
      "pmt-20190630_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "pmt-20190630_def.xml"
     ],
     "remote": [
      "http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-eedm-def-2018-01-31.xml",
      "http://xbrl.fasb.org/srt/2018/elts/srt-eedm1-def-2018-01-31.xml"
     ]
    },
    "inline": {
     "local": [
      "pmt-10q_20190630.htm"
     ]
    },
    "labelLink": {
     "local": [
      "pmt-20190630_lab.xml"
     ],
     "remote": [
      "http://xbrl.fasb.org/srt/2018/elts/srt-doc-2018-01-31.xml",
      "https://xbrl.sec.gov/dei/2018/dei-doc-2018-01-31.xml",
      "https://xbrl.sec.gov/invest/2013/invest-doc-2013-01-31.xml",
      "http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-doc-2018-01-31.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "pmt-20190630_pre.xml"
     ]
    },
    "referenceLink": {
     "remote": [
      "https://xbrl.sec.gov/invest/2013/invest-ref-2013-01-31.xml",
      "http://xbrl.fasb.org/srt/2018/elts/srt-ref-2018-01-31.xml",
      "http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-ref-2018-01-31.xml",
      "https://xbrl.sec.gov/dei/2018/dei-ref-2018-01-31.xml"
     ]
    },
    "schema": {
     "local": [
      "pmt-20190630.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd",
      "http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd",
      "http://www.xbrl.org/dtr/type/numeric-2009-12-16.xsd",
      "http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd",
      "http://xbrl.fasb.org/us-gaap/2018/elts/us-roles-2018-01-31.xsd",
      "http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://xbrl.fasb.org/srt/2018/elts/srt-types-2018-01-31.xsd",
      "http://xbrl.fasb.org/srt/2018/elts/srt-roles-2018-01-31.xsd",
      "http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd",
      "http://xbrl.fasb.org/us-gaap/2018/elts/us-types-2018-01-31.xsd",
      "https://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd",
      "https://xbrl.sec.gov/exch/2018/exch-2018-01-31.xsd",
      "https://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd",
      "https://xbrl.sec.gov/naics/2017/naics-2017-01-31.xsd",
      "https://xbrl.sec.gov/sic/2011/sic-2011-01-31.xsd",
      "https://xbrl.sec.gov/stpr/2018/stpr-2018-01-31.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/net-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/deprecated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "http://xbrl.fasb.org/us-gaap/2018/elts/us-parts-codification-2018-01-31.xsd"
     ]
    }
   },
   "elementCount": 1090,
   "entityCount": 1,
   "hidden": {
    "http://fasb.org/us-gaap/2018-01-31": 20,
    "http://www.pennymacmortgageinvestmenttrust.com/20190630": 105,
    "http://xbrl.sec.gov/dei/2018-01-31": 9,
    "total": 134
   },
   "keyCustom": 327,
   "keyStandard": 372,
   "memberCustom": 149,
   "memberStandard": 56,
   "nsprefix": "pmt",
   "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "true",
     "longName": "100000 - Document - Document and Entity Information",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation",
     "shortName": "Document and Entity Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R10": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AccountingChangesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100090 - Disclosure - Accounting Development",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAccountingDevelopment",
     "shortName": "Accounting Development",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AccountingChangesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R100": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfFairValueInputsDateOfSaleMortgageServicingRightTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:ServicingAssetAtFairValueAdditionsFromLoanSales",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100990 - Disclosure - Fair Value - Key Assumptions Used in Determining Fair Value of MSRs at Time of Initial Recognition (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueKeyAssumptionsUsedInDeterminingFairValueOfMsrsAtTimeOfInitialRecognitionDetail",
     "shortName": "Fair Value - Key Assumptions Used in Determining Fair Value of MSRs at Time of Initial Recognition (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfFairValueInputsDateOfSaleMortgageServicingRightTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "4",
      "lang": null,
      "name": "pmt:MSRAtFairValueServiceFeeAnnualRateAtInitialRecognition",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     }
    },
    "R101": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:FairValueInputsAndSensitivityAnalysisOfFairValueAdverseChangeInAssumptionsAtPeriodEndTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ServicingAssetAtFairValueAmount",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101000 - Disclosure - Fair Value - Quantitative Summary of Key Assumptions Used in Valuation of MSRs as of Dates Presented, and Effect on Estimated Fair Value from Adverse Changes in Those Inputs (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail",
     "shortName": "Fair Value - Quantitative Summary of Key Assumptions Used in Valuation of MSRs as of Dates Presented, and Effect on Estimated Fair Value from Adverse Changes in Those Inputs (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:FairValueInputsAndSensitivityAnalysisOfFairValueAdverseChangeInAssumptionsAtPeriodEndTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:FairValueUnpaidPrincipalOfUnderlyingLoansBalance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R102": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20181231",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAtFairValue",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101010 - Disclosure - Mortgage-Backed Securities - Summary of Investment in Mortgage Backed Securities Activity (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesActivityDetail",
     "shortName": "Mortgage-Backed Securities - Summary of Investment in Mortgage Backed Securities Activity (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfInvestmentInMortgageBackedSecuritiesActivityTableTextBlock",
       "pmt:MortgageBackedSecuritiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtMortgageLoansOnRealEstateLoanTypeAxis_us-gaapMortgageBackedSecuritiesMember_20190331",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAtFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R103": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAtFairValue",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101020 - Disclosure - Mortgage-Backed Securities - Summary of Investment in Mortgage Backed Securities (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail",
     "shortName": "Mortgage-Backed Securities - Summary of Investment in Mortgage Backed Securities (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfInvestmentInMortgageBackedSecuritiesTableTextBlock",
       "pmt:MortgageBackedSecuritiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFinancialInstrumentAxis_us-gaapMortgageBackedSecuritiesMember_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:InvestmentOwnedBalancePrincipalAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R104": {
     "firstAnchor": {
      "ancestors": [
       "pmt:MortgageBackedSecuritiesMaturityPeriod",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfInvestmentInMortgageBackedSecuritiesTableTextBlock",
       "pmt:MortgageBackedSecuritiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtRangeAxis_srtMinimumMember_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:MortgageBackedSecuritiesMaturityPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101030 - Disclosure - Mortgage-Backed Securities - Summary of Investment in Mortgage Backed Securities (Parenthetical) (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesParentheticalDetail",
     "shortName": "Mortgage-Backed Securities - Summary of Investment in Mortgage Backed Securities (Parenthetical) (Detail)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "pmt:MortgageBackedSecuritiesMaturityPeriod",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfInvestmentInMortgageBackedSecuritiesTableTextBlock",
       "pmt:MortgageBackedSecuritiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtRangeAxis_srtMinimumMember_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:MortgageBackedSecuritiesMaturityPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R105": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:MortgagesHeldForSaleFairValueDisclosure",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101040 - Disclosure - Loans Acquired for Sale at Fair Value - Summary of Distribution of Company's Loans Acquired for Sale at Fair Value (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail",
     "shortName": "Loans Acquired for Sale at Fair Value - Summary of Distribution of Company's Loans Acquired for Sale at Fair Value (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfMortgageLoanAcquiredForSaleTableTextBlock",
       "srt:MortgageLoansOnRealEstateByLoanDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:PledgedFinancialInstrumentsNotSeparatelyReportedAndAssetsSeparatelyReportedOnStatementAtFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R106": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "srt:MortgageLoansOnRealEstateByLoanDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtRangeAxis_srtMinimumMember_us-gaapRelatedPartyTransactionsByRelatedPartyAxis_pmtPennyMacLoanServicesLlcMember_20190101_20190630",
      "decimals": "4",
      "first": true,
      "lang": null,
      "name": "pmt:SourcingFeeOnAverageDaysHeldMortgageLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101050 - Disclosure - Loans Acquired for Sale at Fair Value - Additional Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueAdditionalInformationDetail",
     "shortName": "Loans Acquired for Sale at Fair Value - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "srt:MortgageLoansOnRealEstateByLoanDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtRangeAxis_srtMinimumMember_us-gaapRelatedPartyTransactionsByRelatedPartyAxis_pmtPennyMacLoanServicesLlcMember_20190101_20190630",
      "decimals": "4",
      "first": true,
      "lang": null,
      "name": "pmt:SourcingFeeOnAverageDaysHeldMortgageLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     }
    },
    "R107": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:MortgageLoansOnRealEstate",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101060 - Disclosure - Loans at Fair Value - Summary of Distribution of Company's Loans at Fair Value (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail",
     "shortName": "Loans at Fair Value - Summary of Distribution of Company's Loans at Fair Value (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:MortgageLoanClassificationByCreditQualityAndTypeTableTextBlock",
       "pmt:MortgageLoansAtFairValueDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:MortgageLoansAtFairValueHeldByVariableInterestEntity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R108": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:DisclosureOfCreditDerivativesTextBlock",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:CarryingValueOfCreditRiskTransferStrips",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101070 - Disclosure - Derivative Activities and Credit Risk Transfer Strips - Summary of Derivative and Credit Risk Transfer Assets (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAndCreditRiskTransferAssetsDetail",
     "shortName": "Derivative Activities and Credit Risk Transfer Strips - Summary of Derivative and Credit Risk Transfer Assets (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:DisclosureOfCreditDerivativesTextBlock",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:CreditRiskDerivativeAssetsAtFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R109": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:SummaryOfInvestmentInCreditRiskTransferStripsTableTextBlock",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancialInstrumentsOwnedAtFairValue",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101080 - Disclosure - Derivative Activities and Credit Risk Transfer Strips - Summary of Investment In CRT Strips (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfInvestmentInCRTStripsDetail",
     "shortName": "Derivative Activities and Credit Risk Transfer Strips - Summary of Investment In CRT Strips (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:SummaryOfInvestmentInCreditRiskTransferStripsTableTextBlock",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:FinancialInstrumentsOwnedAndPledgedAsCollateralAtFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R11": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ConcentrationRiskDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100100 - Disclosure - Concentration of Risks",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureConcentrationOfRisks",
     "shortName": "Concentration of Risks",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ConcentrationRiskDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R110": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDerivativeInstrumentsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeFairValueOfDerivativeAsset",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101090 - Disclosure - Derivative Activities and Credit Risk Transfer Strips - Derivative Assets and Derivative Liabilities and Related Margin Deposits Recorded in Other Assets (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
     "shortName": "Derivative Activities and Credit Risk Transfer Strips - Derivative Assets and Derivative Liabilities and Related Margin Deposits Recorded in Other Assets (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDerivativeInstrumentsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:MarginDepositAssetsLiabilities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R111": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFinancialInstrumentAxis_pmtForwardPurchaseContractMember_20190331",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "invest:DerivativeNotionalAmount",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101100 - Disclosure - Derivative Activities and Credit Risk Transfer Strips - Summary of Activity in Notional Amount for Derivative Contracts (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail",
     "shortName": "Derivative Activities and Credit Risk Transfer Strips - Summary of Activity in Notional Amount for Derivative Contracts (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFinancialInstrumentAxis_pmtForwardPurchaseContractMember_20190401_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:DerivativeAcquiredDuringPeriodNotionalAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R112": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDerivativeInstrumentsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeFairValueOfDerivativeAsset",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101110 - Disclosure - Derivative Activities and Credit Risk Transfer Strips - Summary of Net Derivative Assets (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
     "shortName": "Derivative Activities and Credit Risk Transfer Strips - Summary of Net Derivative Assets (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:OffsettingAssetsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:DerivativeAssetNetting",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R113": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:DisclosureOfCreditDerivativesTextBlock",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeAssets",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101120 - Disclosure - Derivative Activities and Credit Risk Transfer Strips - Summary of Derivative Assets, Financial Instruments and Collateral Held by Counterparty (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
     "shortName": "Derivative Activities and Credit Risk Transfer Strips - Summary of Derivative Assets, Financial Instruments and Collateral Held by Counterparty (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfDerivativeAndFinancialAssetsBySignificantCounterpartyNotOffsetTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R114": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:OffsettingLiabilitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101130 - Disclosure - Derivative Activities and Credit Risk Transfer Strips - Schedule of Offsetting of Derivative Liabilities and Financial Liabilities (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
     "shortName": "Derivative Activities and Credit Risk Transfer Strips - Schedule of Offsetting of Derivative Liabilities and Financial Liabilities (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:OffsettingLiabilitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R115": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:OffsettingLiabilitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoaned",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101140 - Disclosure - Derivative Activities and Credit Risk Transfer Strips - Summary of Derivative Liabilities, Financial Liabilities and Collateral Pledged by Counterparty (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail",
     "shortName": "Derivative Activities and Credit Risk Transfer Strips - Summary of Derivative Liabilities, Financial Liabilities and Collateral Pledged by Counterparty (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfDerivativeAndFinancialLiabilitiesBySignificantCounterpartyNotOffsetTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFinancialInstrumentPerformanceStatusAxis_pmtUnpaidPrincipalBalanceBeforeUnamortizedDebtIssuanceCostsAdjustmentMember_us-gaapShortTermDebtTypeAxis_us-gaapSecuritiesSoldUnderAgreementsToRepurchaseMember_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoaned",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R116": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFinancialInstrumentAxis_us-gaapInterestRateLockCommitmentsMember_us-gaapIncomeStatementLocationAxis_pmtGainLossOnLoansAcquiredForSaleMember_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeGainLossOnDerivativeNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101150 - Disclosure - Derivative Activities and Credit Risk Transfer Strips - Net Gains (Losses) Recognized on Derivative Financial Instruments (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
     "shortName": "Derivative Activities and Credit Risk Transfer Strips - Net Gains (Losses) Recognized on Derivative Financial Instruments (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFinancialInstrumentAxis_us-gaapInterestRateLockCommitmentsMember_us-gaapIncomeStatementLocationAxis_pmtGainLossOnLoansAcquiredForSaleMember_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeGainLossOnDerivativeNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R117": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:RealEstateOwnedRollForwardTableTextBlock",
       "us-gaap:RealEstateOwnedTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190331",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RealEstateAcquiredThroughForeclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101160 - Disclosure - Real Estate Acquired in Settlement of Loans - Summary of Financial Information Relating to REO (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail",
     "shortName": "Real Estate Acquired in Settlement of Loans - Summary of Financial Information Relating to REO (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:RealEstateOwnedRollForwardTableTextBlock",
       "us-gaap:RealEstateOwnedTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190331",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RealEstateAcquiredThroughForeclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R118": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfServicingAssetsAtFairValueTextBlock",
       "pmt:MortgageServicingRightsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190331",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ServicingAssetAtFairValueAmount",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101170 - Disclosure - Mortgage Servicing Rights - Summary of MSRs Carried at Fair Value (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfMsrsCarriedAtFairValueDetail",
     "shortName": "Mortgage Servicing Rights - Summary of MSRs Carried at Fair Value (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfServicingAssetsAtFairValueTextBlock",
       "pmt:MortgageServicingRightsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190331",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:ServicingAssetAtFairValueTransferOfMortgageServicingRightsFromMortgageServicingRightsCarriedAtLowerOfAmortizedCostOrFairValuePursuantToChangeInAccountingPrinciple",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R119": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfContractuallySpecifiedServicingFeesTableTextBlock",
       "pmt:MortgageServicingRightsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ContractuallySpecifiedServicingFeesAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101180 - Disclosure - Mortgage Servicing Rights - Summary of Net Loan Servicing Fees Relating to MSRs (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfNetLoanServicingFeesRelatingToMsrsDetail",
     "shortName": "Mortgage Servicing Rights - Summary of Net Loan Servicing Fees Relating to MSRs (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfContractuallySpecifiedServicingFeesTableTextBlock",
       "pmt:MortgageServicingRightsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ContractuallySpecifiedServicingFeesAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R12": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100110 - Disclosure - Transactions with Related Parties",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedParties",
     "shortName": "Transactions with Related Parties",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R120": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTableTextBlock",
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "4",
      "first": true,
      "lang": null,
      "name": "pmt:SecuritiesSoldUnderAgreementsToRepurchaseWeightedAverageInterestRateDuringPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101190 - Disclosure - Assets Sold Under Agreements to Repurchase - Summary of Financial Information Relating to Assets Sold under Agreements to Repurchase (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
     "shortName": "Assets Sold Under Agreements to Repurchase - Summary of Financial Information Relating to Assets Sold under Agreements to Repurchase (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTableTextBlock",
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "4",
      "first": true,
      "lang": null,
      "name": "pmt:SecuritiesSoldUnderAgreementsToRepurchaseWeightedAverageInterestRateDuringPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     }
    },
    "R121": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTableTextBlock",
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RepurchaseAgreementsMaturities",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101200 - Disclosure - Assets Sold Under Agreements to Repurchase - Summary of Financial Information Relating to Assets Sold under Agreements to Repurchase (Parenthetical) (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseParentheticalDetail",
     "shortName": "Assets Sold Under Agreements to Repurchase - Summary of Financial Information Relating to Assets Sold under Agreements to Repurchase (Parenthetical) (Detail)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTableTextBlock",
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapShortTermDebtTypeAxis_pmtAssetsSoldUnderAgreementsToRepurchaseMember_20190401_20190630",
      "decimals": "0",
      "lang": null,
      "name": "us-gaap:AmortizationOfDebtDiscountPremium",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R122": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRepurchaseAgreements",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:SecuritiesSoldUnderAgreementsToRepurchase",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101210 - Disclosure - Assets Sold Under Agreements to Repurchase - Summary of Maturities of Outstanding Assets Sold under Agreements to Repurchase by Facility Maturity Date (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfMaturitiesOfOutstandingAssetsSoldUnderAgreementsToRepurchaseByFacilityMaturityDateDetail",
     "shortName": "Assets Sold Under Agreements to Repurchase - Summary of Maturities of Outstanding Assets Sold under Agreements to Repurchase by Facility Maturity Date (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRepurchaseAgreements",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:SecuritiesSoldUnderAgreementsToRepurchase",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R123": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:SecuritiesSoldUnderAgreementsToRepurchaseScheduleOfRepurchaseAgreementCounterPartiesWithWhomRepurchaseAgreementsExceedTenPercentOfStockholdersEquityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtCounterpartyNameAxis_pmtCreditSuisseFirstBostonMortgageMaturityInTwoThousandTwentyMember_us-gaapInvestmentTypeAxis_us-gaapMortgagesMember_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RepurchaseAgreementCounterpartyAmountAtRisk",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101220 - Disclosure - Assets Sold Under Agreements to Repurchase - Summary of Assets Sold under Agreements to Repurchase by Counterparty (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail",
     "shortName": "Assets Sold Under Agreements to Repurchase - Summary of Assets Sold under Agreements to Repurchase by Counterparty (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:SecuritiesSoldUnderAgreementsToRepurchaseScheduleOfRepurchaseAgreementCounterPartiesWithWhomRepurchaseAgreementsExceedTenPercentOfStockholdersEquityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtCounterpartyNameAxis_pmtCreditSuisseFirstBostonMortgageMaturityInTwoThousandTwentyMember_us-gaapInvestmentTypeAxis_us-gaapMortgagesMember_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RepurchaseAgreementCounterpartyAmountAtRisk",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R124": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:MortgageLoanParticipationPurchaseAndSaleAgreement",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101230 - Disclosure - Mortgage Loan Participation Purchase and Sale Agreements - Summary of Mortgage Loan Participation Purchase and Sale Agreements (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail",
     "shortName": "Mortgage Loan Participation Purchase and Sale Agreements - Summary of Mortgage Loan Participation Purchase and Sale Agreements (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfMortgageLoanParticipationAgreementsTableTextBlock",
       "pmt:MortgageLoanParticipationPurchaseAndSaleAgreementTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapShortTermDebtTypeAxis_pmtMortgageLoanParticipationPurchaseAndSalesAgreementMember_20190401_20190630",
      "decimals": "4",
      "lang": null,
      "name": "srt:MortgageLoansOnRealEstateInterestRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     }
    },
    "R125": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AmortizationOfFinancingCostsAndDiscounts",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101240 - Disclosure - Mortgage Loan Participation Purchase and Sale Agreements - Summary of Mortgage Loan Participation Purchase and Sale Agreements (Parenthetical) (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsParentheticalDetail",
     "shortName": "Mortgage Loan Participation Purchase and Sale Agreements - Summary of Mortgage Loan Participation Purchase and Sale Agreements (Parenthetical) (Detail)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfMortgageLoanParticipationAgreementsTableTextBlock",
       "pmt:MortgageLoanParticipationPurchaseAndSaleAgreementTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapShortTermDebtTypeAxis_pmtMortgageLoanParticipationPurchaseAndSalesAgreementMember_20190401_20190630",
      "decimals": "0",
      "lang": null,
      "name": "us-gaap:AmortizationOfFinancingCostsAndDiscounts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R126": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "pmt:ConvertibleDebtTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapDebtInstrumentAxis_pmtExchangeableSeniorNotesDueTwoThousandAndTwentyMember_20130430",
      "decimals": "-6",
      "first": true,
      "lang": null,
      "name": "us-gaap:SeniorLongTermNotes",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101250 - Disclosure - Exchangeable Senior Notes - Additional Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesAdditionalInformationDetail",
     "shortName": "Exchangeable Senior Notes - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "pmt:ConvertibleDebtTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapDebtInstrumentAxis_pmtExchangeableSeniorNotesDueTwoThousandAndTwentyMember_20130430",
      "decimals": "-6",
      "first": true,
      "lang": null,
      "name": "us-gaap:SeniorLongTermNotes",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R127": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ConvertibleNotesPayable",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101260 - Disclosure - Exchangeable Senior Notes - Summary of Financial Information Relating to Exchangeable Senior Notes (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesSummaryOfFinancialInformationRelatingToExchangeableSeniorNotesDetail",
     "shortName": "Exchangeable Senior Notes - Summary of Financial Information Relating to Exchangeable Senior Notes (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20181231",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:ConvertibleNotesPayable",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R128": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:DebtDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapDebtInstrumentAxis_pmtSecuredTermNotesMember_20190611",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101270 - Disclosure - Notes Payable - Additional Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail",
     "shortName": "Notes Payable - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:DebtDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapDebtInstrumentAxis_pmtSecuredTermNotesMember_20190611",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R129": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:NotesPayableGross",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101280 - Disclosure - Notes Payable - Summary of Financial Information Relating to Note Payable (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail",
     "shortName": "Notes Payable - Summary of Financial Information Relating to Note Payable (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20181231",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:NotesPayableGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R13": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:VariableInterestEntityDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100120 - Disclosure - Loan Sales and Variable Interest Entities",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntities",
     "shortName": "Loan Sales and Variable Interest Entities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:VariableInterestEntityDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R130": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AmortizationOfFinancingCostsAndDiscounts",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101290 - Disclosure - Notes Payable - Summary of Financial Information Relating to Note Payable (Parenthetical) (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableParentheticalDetail",
     "shortName": "Notes Payable - Summary of Financial Information Relating to Note Payable (Parenthetical) (Detail)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfSecuredNotePayableOfMortgageServicingRightsTableTextBlock",
       "us-gaap:DebtDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapLongtermDebtTypeAxis_pmtNotesPayableMember_20190401_20190630",
      "decimals": "0",
      "lang": null,
      "name": "us-gaap:AmortizationOfFinancingCostsAndDiscounts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R131": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:AssetBackedSecuredFinancingLiabilityFairValue",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101300 - Disclosure - Asset-Backed Financing of a Variable Interest Entity at Fair Value - Summary of Financial Information Relating to Asset-Backed Financing of a VIE at Fair Value (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail",
     "shortName": "Asset-Backed Financing of a Variable Interest Entity at Fair Value - Summary of Financial Information Relating to Asset-Backed Financing of a VIE at Fair Value (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:AssetBackedSecuredFinancingTableTextBlock",
       "us-gaap:TransfersAndServicingOfFinancialAssetsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFinancialInstrumentAxis_us-gaapAssetBackedSecuritiesMember_us-gaapVariableInterestEntitiesByClassificationOfEntityAxis_us-gaapVariableInterestEntityPrimaryBeneficiaryMember_20181231",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:AssetBackedSecuredFinancingLiabilityFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R132": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:SummaryOfRecourseLiabilityTableTextBlock",
       "pmt:LiabilityForRepresentationsAndWarrantiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190331",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:RepresentationsAndWarrantiesLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101310 - Disclosure - Liability for Losses under Representations and Warranties - Summary of Company's Liability for Losses under Representations and Warranties (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLiabilityForLossesUnderRepresentationsAndWarrantiesSummaryOfCompanySLiabilityForLossesUnderRepresentationsAndWarrantiesDetail",
     "shortName": "Liability for Losses under Representations and Warranties - Summary of Company's Liability for Losses under Representations and Warranties (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:SummaryOfRecourseLiabilityTableTextBlock",
       "pmt:LiabilityForRepresentationsAndWarrantiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190331",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:RepresentationsAndWarrantiesLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R133": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:OtherCommitmentsTableTextBlock",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:MortgageLoansAcquiredForSaleOutstandingContractualPurchaseCommitments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101320 - Disclosure - Commitments and Contingencies - Company's Outstanding Contractual Commitments (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureCommitmentsAndContingenciesCompanySOutstandingContractualCommitmentsDetail",
     "shortName": "Commitments and Contingencies - Company's Outstanding Contractual Commitments (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:OtherCommitmentsTableTextBlock",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:MortgageLoansAcquiredForSaleOutstandingContractualPurchaseCommitments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R134": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:PreferredStockSharesIssued",
      "reportCount": 1,
      "unitRef": "U_xbrlishares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101330 - Disclosure - Shareholders' Equity - Summary of Preferred Shares of Beneficial Interest (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestDetail",
     "shortName": "Shareholders' Equity - Summary of Preferred Shares of Beneficial Interest (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfStockByClassTextBlock",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapStatementClassOfStockAxis_us-gaapSeriesAPreferredStockMember_20190401_20190630",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:PreferredStockDividendsPerShareCashPaid",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD_xbrlishares",
      "xsiNil": "false"
     }
    },
    "R135": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:PreferredStockParOrStatedValuePerShare",
      "reportCount": 1,
      "unitRef": "U_iso4217USD_xbrlishares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101340 - Disclosure - Shareholders' Equity - Summary of Preferred Shares of Beneficial Interest (Parenthetical) (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestParentheticalDetail",
     "shortName": "Shareholders' Equity - Summary of Preferred Shares of Beneficial Interest (Parenthetical) (Detail)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": null
    },
    "R136": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:PreferredStockParOrStatedValuePerShare",
      "reportCount": 1,
      "unitRef": "U_iso4217USD_xbrlishares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101350 - Disclosure - Shareholders' Equity - Additional Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
     "shortName": "Shareholders' Equity - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:PaymentForIncentiveFee",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R137": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockSharesIssued",
      "reportCount": 1,
      "unitRef": "U_xbrlishares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101360 - Disclosure - Shareholders' Equity - Summary of Underwritten Offerings of Common Shares (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfUnderwrittenOfferingsOfCommonSharesDetail",
     "shortName": "Shareholders' Equity - Summary of Underwritten Offerings of Common Shares (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:SummaryOfUnderwrittenOfferingsOfCommonSharesOfBeneficialInterestTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapTypeOfArrangementAxis_pmtPurchaseAgreementMember_20190509",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:CommonStockSharesIssued",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlishares",
      "xsiNil": "false"
     }
    },
    "R138": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockSharesIssued",
      "reportCount": 1,
      "unitRef": "U_xbrlishares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101370 - Disclosure - Shareholders' Equity - Summary of Underwritten Offerings of Common Shares (Parenthetical) (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfUnderwrittenOfferingsOfCommonSharesParentheticalDetail",
     "shortName": "Shareholders' Equity - Summary of Underwritten Offerings of Common Shares (Parenthetical) (Detail)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": null
    },
    "R139": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ProceedsFromIssuanceOfCommonStock",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101380 - Disclosure - Shareholders' Equity - Summary of Activities under ATM Equity Offering Program (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfActivitiesUnderATMEquityOfferingProgramDetail",
     "shortName": "Shareholders' Equity - Summary of Activities under ATM Equity Offering Program (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapTypeOfArrangementAxis_pmtEquityDistributionAgreementMember_20190331",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:SharePrice",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD_xbrlishares",
      "xsiNil": "false"
     }
    },
    "R14": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100130 - Disclosure - Fair Value",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValue",
     "shortName": "Fair Value",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R140": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfSharesRepurchaseTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20180101_20180630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockRepurchasedAndRetiredDuringPeriodShares",
      "reportCount": 1,
      "unitRef": "U_xbrlishares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101390 - Disclosure - Shareholders' Equity - Summary of Share Repurchase Activity (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfShareRepurchaseActivityDetail",
     "shortName": "Shareholders' Equity - Summary of Share Repurchase Activity (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfSharesRepurchaseTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:StockRepurchaseProgramCumulativeNumberOfSharesRepurchased",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlishares",
      "xsiNil": "false"
     }
    },
    "R141": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfNetGainLossOnMortgageLoansAcquiredForSaleTableTextBlock",
       "pmt:NetGainOnMortgageLoansAcquiredForSaleDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:GainLossOnSaleOfMortgageLoans",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101400 - Disclosure - Net Gain (Loss) on Investments - Summary of Net Gain (Loss) on Investments (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
     "shortName": "Net Gain (Loss) on Investments - Summary of Net Gain (Loss) on Investments (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:GainLossOnInvestmentsTextBlock",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_deiLegalEntityAxis_pmtNonAffiliatesMember_20190401_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:GainLossOnSalesOfMortgageBackedSecuritiesMBS",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R142": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:SummaryOfRecourseLiabilityTableTextBlock",
       "pmt:LiabilityForRepresentationsAndWarrantiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:ProvisionsForRepresentationsAndWarrantiesLosses",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101410 - Disclosure - Net Gain on Loans Acquired for Sale - Summary of Net Gain on Mortgage Loans Acquired for Sale (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail",
     "shortName": "Net Gain on Loans Acquired for Sale - Summary of Net Gain on Mortgage Loans Acquired for Sale (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfNetGainLossOnMortgageLoansAcquiredForSaleTableTextBlock",
       "pmt:NetGainOnMortgageLoansAcquiredForSaleDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_deiLegalEntityAxis_pmtNonAffiliatesMember_20190401_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:GainLossOnSaleOfMortgageLoansAcquiredForSaleCashPortion",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R143": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfContractuallySpecifiedServicingFeesTableTextBlock",
       "pmt:MortgageServicingRightsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101420 - Disclosure - Net Loan Servicing Fees - Summary of Net Loan Servicing Fees (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail",
     "shortName": "Net Loan Servicing Fees - Summary of Net Loan Servicing Fees (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfNetMortgageLoanServicingFeesTableTextBlock",
       "pmt:NetMortgageLoanServicingFeesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapRelatedPartyTransactionsByRelatedPartyAxis_pmtPennyMacFinancialServicesAffiliatedEntityMember_20190401_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:MortgageServicingRightsRecaptureFromAffiliate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R144": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InterestIncomeOperating",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101430 - Disclosure - Net Interest Income - Summary of Net Interest Income (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
     "shortName": "Net Interest Income - Summary of Net Interest Income (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapRelatedPartyTransactionsByRelatedPartyAxis_pmtPennymacFinancialServicesIncMember_20190401_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:InterestIncomeOperating",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R145": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTableTextBlock",
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RepurchaseAgreementsMaturities",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101440 - Disclosure - Net Interest Income - Summary of Net Interest Income (Parenthetical) (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeParentheticalDetail",
     "shortName": "Net Interest Income - Summary of Net Interest Income (Parenthetical) (Detail)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:RepurchaseAgreementsMaturities",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapParticipatingMortgageLoansAxis_pmtMasterRepurchaseAgreementMember_20190101_20190630",
      "decimals": null,
      "lang": "en-US",
      "name": "pmt:RepurchaseAgreementsMaturityDate",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R146": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlishares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101450 - Disclosure - Share-Based Compensation Plans - Summary of Share-Based Compensation Activity (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlansSummaryOfShareBasedCompensationActivityDetail",
     "shortName": "Share-Based Compensation Plans - Summary of Share-Based Compensation Activity (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlishares",
      "xsiNil": "false"
     }
    },
    "R147": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlishares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101460 - Disclosure - Share-Based Compensation Plans - Additional Information (Details)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlansAdditionalInformationDetails",
     "shortName": "Share-Based Compensation Plans - Additional Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlishares",
      "xsiNil": "false"
     }
    },
    "R148": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OtherOperatingIncomeExpenseNet",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101470 - Disclosure - Other Expenses - Summary of Other Expenses (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOtherExpensesSummaryOfOtherExpensesDetail",
     "shortName": "Other Expenses - Summary of Other Expenses (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfOtherOperatingCostAndExpenseByComponentTextBlock",
       "us-gaap:OtherIncomeAndOtherExpenseDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapIncomeStatementLocationAxis_pmtOverheadMember_20190401_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:OtherOperatingIncomeExpenseNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R149": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "us-gaap:EffectiveIncomeTaxRateContinuingOperations",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101480 - Disclosure - Income Taxes - Additional Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetail",
     "shortName": "Income Taxes - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "us-gaap:EffectiveIncomeTaxRateContinuingOperations",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     }
    },
    "R15": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:MortgageBackedSecuritiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100140 - Disclosure - Mortgage-Backed Securities",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecurities",
     "shortName": "Mortgage-Backed Securities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:MortgageBackedSecuritiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R150": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101490 - Disclosure - Earnings Per Share - Summary of Basic and Diluted Earnings per Share (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail",
     "shortName": "Earnings Per Share - Summary of Basic and Diluted Earnings per Share (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R151": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapAwardTypeAxis_us-gaapStockCompensationPlanMember_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlishares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101500 - Disclosure - Earnings Per Share - Summary of Potentially Dilutive Shares Excluded from Computation of Diluted Earnings Per Share (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfPotentiallyDilutiveSharesExcludedFromComputationOfDilutedEarningsPerShareDetail",
     "shortName": "Earnings Per Share - Summary of Potentially Dilutive Shares Excluded from Computation of Diluted Earnings Per Share (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapAwardTypeAxis_us-gaapStockCompensationPlanMember_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlishares",
      "xsiNil": "false"
     }
    },
    "R152": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:SegmentReportingPolicyPolicyTextBlock",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:NumberOfOperatingSegments",
      "reportCount": 1,
      "unitRef": "U_pmtSegment",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101510 - Disclosure - Segments - Additional Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsAdditionalInformationDetail",
     "shortName": "Segments - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R153": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:GainLossOnInvestments",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101520 - Disclosure - Segments - Financial Highlights by Operating Segment (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
     "shortName": "Segments - Financial Highlights by Operating Segment (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:OtherOperatingIncomeLossNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R154": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapStatementBusinessSegmentsAxis_pmtCorrespondentProductionMember_20190401_20190630",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "pmt:FairValueOfFirmCommitmentRecognizedInGainOnSaleOfMortgageLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101530 - Disclosure - Segments - Financial Highlights by Operating Segment (Parenthetical) (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentParentheticalDetail",
     "shortName": "Segments - Financial Highlights by Operating Segment (Parenthetical) (Detail)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapStatementBusinessSegmentsAxis_pmtCorrespondentProductionMember_20190401_20190630",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "pmt:FairValueOfFirmCommitmentRecognizedInGainOnSaleOfMortgageLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R155": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfCashFlowSupplementalDisclosuresTableTextBlock",
       "us-gaap:CashFlowSupplementalDisclosuresTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeTaxesPaidNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101540 - Disclosure - Supplemental Cash Flow Information - Summary of Supplemental Cash Flow Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationSummaryOfSupplementalCashFlowInformationDetail",
     "shortName": "Supplemental Cash Flow Information - Summary of Supplemental Cash Flow Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfCashFlowSupplementalDisclosuresTableTextBlock",
       "us-gaap:CashFlowSupplementalDisclosuresTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeTaxesPaidNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R156": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:RegulatoryCapitalRequirementsForMortgageCompaniesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:MinimumNetWorthRequiredForCompliance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101550 - Disclosure - Regulatory Capital and Liquidity Requirements - Additional Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsAdditionalInformationDetail",
     "shortName": "Regulatory Capital and Liquidity Requirements - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:RegulatoryCapitalRequirementsForMortgageCompaniesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:MinimumNetWorthRequiredForCompliance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R157": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "us-gaap:RegulatoryCapitalRequirementsForMortgageCompaniesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtCounterpartyNameAxis_pmtFederalNationalMortgageAssociationAndFederalHomeLoanMortgageCorporationMember_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:TangibleCapital",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101560 - Disclosure - Regulatory Capital and Liquidity Requirements - Summary of Capital and Liquidity Amounts and Requirements by Agencies (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsSummaryOfCapitalAndLiquidityAmountsAndRequirementsByAgenciesDetail",
     "shortName": "Regulatory Capital and Liquidity Requirements - Summary of Capital and Liquidity Amounts and Requirements by Agencies (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
       "us-gaap:RegulatoryCapitalRequirementsForMortgageCompaniesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtCounterpartyNameAxis_pmtFederalNationalMortgageAssociationAndFederalHomeLoanMortgageCorporationMember_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:TangibleCapital",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R158": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTableTextBlock",
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:SecuritiesSoldUnderAgreementsAvailableBorrowingCapacity",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101570 - Disclosure - Subsequent Events - Additional Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail",
     "shortName": "Subsequent Events - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:SubsequentEventsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtMortgageLoansOnRealEstateDescriptionLoanCategoryAxis_pmtMortgageLoanMember_us-gaapSubsequentEventTypeAxis_us-gaapSubsequentEventMember_20190731",
      "decimals": "-6",
      "lang": null,
      "name": "pmt:FairValueOfPerformingAndNonperformingLoansAgreedToSell",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R16": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:MortgageLoansOnRealEstateByLoanDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100150 - Disclosure - Loans Acquired for Sale at Fair Value",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValue",
     "shortName": "Loans Acquired for Sale at Fair Value",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:MortgageLoansOnRealEstateByLoanDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R17": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:MortgageLoansAtFairValueDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100160 - Disclosure - Loans at Fair Value",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValue",
     "shortName": "Loans at Fair Value",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:MortgageLoansAtFairValueDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R18": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100170 - Disclosure - Derivative Activities and Credit Risk Transfer Strips",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStrips",
     "shortName": "Derivative Activities and Credit Risk Transfer Strips",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RealEstateOwnedTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100180 - Disclosure - Real Estate Acquired in Settlement of Loans",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoans",
     "shortName": "Real Estate Acquired in Settlement of Loans",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RealEstateOwnedTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:SummaryOfInvestmentInCreditRiskTransferStripsTableTextBlock",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancialInstrumentsOwnedAtFairValue",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100010 - Statement - Consolidated Balance Sheets (Unaudited)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited",
     "shortName": "Consolidated Balance Sheets (Unaudited)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:Cash",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R20": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:MortgageServicingRightsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100190 - Disclosure - Mortgage Servicing Rights",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRights",
     "shortName": "Mortgage Servicing Rights",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:MortgageServicingRightsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R21": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100200 - Disclosure - Assets Sold Under Agreements to Repurchase",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchase",
     "shortName": "Assets Sold Under Agreements to Repurchase",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R22": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:MortgageLoanParticipationPurchaseAndSaleAgreementTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100210 - Disclosure - Mortgage Loan Participation Purchase and Sale Agreements",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreements",
     "shortName": "Mortgage Loan Participation Purchase and Sale Agreements",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:MortgageLoanParticipationPurchaseAndSaleAgreementTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R23": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ConvertibleDebtTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100220 - Disclosure - Exchangeable Senior Notes",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotes",
     "shortName": "Exchangeable Senior Notes",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ConvertibleDebtTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R24": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100230 - Disclosure - Notes Payable",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayable",
     "shortName": "Notes Payable",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R25": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:TransfersAndServicingOfFinancialAssetsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100240 - Disclosure - Asset-Backed Financing of a Variable Interest Entity at Fair Value",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValue",
     "shortName": "Asset-Backed Financing of a Variable Interest Entity at Fair Value",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:TransfersAndServicingOfFinancialAssetsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:LiabilityForRepresentationsAndWarrantiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100250 - Disclosure - Liability for Losses Under Representations and Warranties",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLiabilityForLossesUnderRepresentationsAndWarranties",
     "shortName": "Liability for Losses Under Representations and Warranties",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:LiabilityForRepresentationsAndWarrantiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R27": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100260 - Disclosure - Commitments and Contingencies",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureCommitmentsAndContingencies",
     "shortName": "Commitments and Contingencies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R28": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100270 - Disclosure - Shareholders' Equity",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquity",
     "shortName": "Shareholders' Equity",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R29": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100280 - Disclosure - Net Gain (Loss) on Investments",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestments",
     "shortName": "Net Gain (Loss) on Investments",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R3": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:PledgedAssetsSeparatelyReportedLoansAcquiredForSalePledgedAsCollateralAtFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100020 - Statement - Consolidated Balance Sheets (Unaudited) (Parenthetical)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical",
     "shortName": "Consolidated Balance Sheets (Unaudited) (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:PledgedAssetsSeparatelyReportedLoansAcquiredForSalePledgedAsCollateralAtFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R30": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:NetGainOnMortgageLoansAcquiredForSaleDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100290 - Disclosure - Net Gain on Loans Acquired for Sale",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSale",
     "shortName": "Net Gain on Loans Acquired for Sale",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:NetGainOnMortgageLoansAcquiredForSaleDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R31": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:NetMortgageLoanServicingFeesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100300 - Disclosure - Net Loan Servicing Fees",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFees",
     "shortName": "Net Loan Servicing Fees",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:NetMortgageLoanServicingFeesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R32": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100310 - Disclosure - Net Interest Income",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncome",
     "shortName": "Net Interest Income",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R33": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100320 - Disclosure - Share-Based Compensation Plans",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlans",
     "shortName": "Share-Based Compensation Plans",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R34": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherIncomeAndOtherExpenseDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100330 - Disclosure - Other Expenses",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOtherExpenses",
     "shortName": "Other Expenses",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherIncomeAndOtherExpenseDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R35": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100340 - Disclosure - Income Taxes",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureIncomeTaxes",
     "shortName": "Income Taxes",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R36": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100350 - Disclosure - Earnings Per Share",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShare",
     "shortName": "Earnings Per Share",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R37": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100360 - Disclosure - Segments",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegments",
     "shortName": "Segments",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R38": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashFlowSupplementalDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100370 - Disclosure - Supplemental Cash Flow Information",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformation",
     "shortName": "Supplemental Cash Flow Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashFlowSupplementalDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R39": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RegulatoryCapitalRequirementsForMortgageCompaniesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100380 - Disclosure - Regulatory Capital and Liquidity Requirements",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirements",
     "shortName": "Regulatory Capital and Liquidity Requirements",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RegulatoryCapitalRequirementsForMortgageCompaniesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R4": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:GainLossOnInvestments",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100030 - Statement - Consolidated Statements of Income (Unaudited)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited",
     "shortName": "Consolidated Statements of Income (Unaudited)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:LoanOriginationsFees",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R40": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100390 - Disclosure - Subsequent Events",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEvents",
     "shortName": "Subsequent Events",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R41": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SegmentReportingPolicyPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100400 - Disclosure - Organization and Basis of Presentation (Policies)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOrganizationAndBasisOfPresentationPolicies",
     "shortName": "Organization and Basis of Presentation (Policies)",
     "subGroupType": "policies",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SegmentReportingPolicyPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R42": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ScheduleOfCorrespondentProductionActivityAffiliateTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100410 - Disclosure - Transactions with Related Parties (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesTables",
     "shortName": "Transactions with Related Parties (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ScheduleOfCorrespondentProductionActivityAffiliateTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:SummarizesCashFlowsBetweenCompanyAndTransfereesUponSaleOfLoansInTransactionsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100420 - Disclosure - Loan Sales and Variable Interest Entities (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesTables",
     "shortName": "Loan Sales and Variable Interest Entities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:SummarizesCashFlowsBetweenCompanyAndTransfereesUponSaleOfLoansInTransactionsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R44": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueAssetsMeasuredOnRecurringBasisTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100430 - Disclosure - Fair Value (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueTables",
     "shortName": "Fair Value (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueAssetsMeasuredOnRecurringBasisTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R45": {
     "firstAnchor": {
      "ancestors": [
       "pmt:MortgageBackedSecuritiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ScheduleOfInvestmentInMortgageBackedSecuritiesActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100440 - Disclosure - Mortgage-Backed Securities (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesTables",
     "shortName": "Mortgage-Backed Securities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "pmt:MortgageBackedSecuritiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ScheduleOfInvestmentInMortgageBackedSecuritiesActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R46": {
     "firstAnchor": {
      "ancestors": [
       "srt:MortgageLoansOnRealEstateByLoanDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ScheduleOfMortgageLoanAcquiredForSaleTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100450 - Disclosure - Loans Acquired for Sale at Fair Value (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueTables",
     "shortName": "Loans Acquired for Sale at Fair Value (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "srt:MortgageLoansOnRealEstateByLoanDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ScheduleOfMortgageLoanAcquiredForSaleTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R47": {
     "firstAnchor": {
      "ancestors": [
       "pmt:MortgageLoansAtFairValueDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:MortgageLoanClassificationByCreditQualityAndTypeTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100460 - Disclosure - Loans at Fair Value (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueTables",
     "shortName": "Loans at Fair Value (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "pmt:MortgageLoansAtFairValueDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:MortgageLoanClassificationByCreditQualityAndTypeTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R48": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCreditDerivativesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100470 - Disclosure - Derivative Activities and Credit Risk Transfer Strips (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsTables",
     "shortName": "Derivative Activities and Credit Risk Transfer Strips (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCreditDerivativesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R49": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:RealEstateOwnedTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:RealEstateOwnedRollForwardTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100480 - Disclosure - Real Estate Acquired in Settlement of Loans (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansTables",
     "shortName": "Real Estate Acquired in Settlement of Loans (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:RealEstateOwnedTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:RealEstateOwnedRollForwardTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R5": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20171231",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100040 - Statement - Consolidated Statements of Changes in Shareholders' Equity (Unaudited)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited",
     "shortName": "Consolidated Statements of Changes in Shareholders' Equity (Unaudited)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20171231",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "pmt:MortgageServicingRightsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfServicingAssetsAtFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100490 - Disclosure - Mortgage Servicing Rights (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsTables",
     "shortName": "Mortgage Servicing Rights (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "pmt:MortgageServicingRightsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfServicingAssetsAtFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R51": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100500 - Disclosure - Assets Sold Under Agreements to Repurchase (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseTables",
     "shortName": "Assets Sold Under Agreements to Repurchase (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R52": {
     "firstAnchor": {
      "ancestors": [
       "pmt:MortgageLoanParticipationPurchaseAndSaleAgreementTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ScheduleOfMortgageLoanParticipationAgreementsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100510 - Disclosure - Mortgage Loan Participation Purchase and Sale Agreements (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsTables",
     "shortName": "Mortgage Loan Participation Purchase and Sale Agreements (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "pmt:MortgageLoanParticipationPurchaseAndSaleAgreementTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ScheduleOfMortgageLoanParticipationAgreementsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R53": {
     "firstAnchor": {
      "ancestors": [
       "pmt:ConvertibleDebtTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ConvertibleDebtTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100520 - Disclosure - Exchangeable Senior Notes (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesTables",
     "shortName": "Exchangeable Senior Notes (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "pmt:ConvertibleDebtTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ConvertibleDebtTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R54": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:DebtDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ScheduleOfSecuredNotePayableOfMortgageServicingRightsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100530 - Disclosure - Notes Payable (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableTables",
     "shortName": "Notes Payable (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:DebtDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ScheduleOfSecuredNotePayableOfMortgageServicingRightsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R55": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:TransfersAndServicingOfFinancialAssetsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:AssetBackedSecuredFinancingTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100540 - Disclosure - Asset-Backed Financing of a Variable Interest Entity at Fair Value (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueTables",
     "shortName": "Asset-Backed Financing of a Variable Interest Entity at Fair Value (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:TransfersAndServicingOfFinancialAssetsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:AssetBackedSecuredFinancingTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R56": {
     "firstAnchor": {
      "ancestors": [
       "pmt:LiabilityForRepresentationsAndWarrantiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:SummaryOfRecourseLiabilityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100550 - Disclosure - Liability for Losses Under Representations and Warranties (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLiabilityForLossesUnderRepresentationsAndWarrantiesTables",
     "shortName": "Liability for Losses Under Representations and Warranties (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "pmt:LiabilityForRepresentationsAndWarrantiesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:SummaryOfRecourseLiabilityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R57": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherCommitmentsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100560 - Disclosure - Commitments and Contingencies (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureCommitmentsAndContingenciesTables",
     "shortName": "Commitments and Contingencies (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherCommitmentsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R58": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfStockByClassTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100570 - Disclosure - Shareholders' Equity (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityTables",
     "shortName": "Shareholders' Equity (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfStockByClassTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R59": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:GainLossOnInvestmentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100580 - Disclosure - Net Gain (Loss) on Investments (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsTables",
     "shortName": "Net Gain (Loss) on Investments (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:GainLossOnInvestmentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R6": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockDividendsPerShareDeclared",
      "reportCount": 1,
      "unitRef": "U_iso4217USD_xbrlishares",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100050 - Statement - Consolidated Statements of Changes in Shareholders' Equity (Unaudited) (Parenthetical)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnauditedParenthetical",
     "shortName": "Consolidated Statements of Changes in Shareholders' Equity (Unaudited) (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapStatementEquityComponentsAxis_us-gaapRetainedEarningsMember_20190401_20190630",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:CommonStockDividendsPerShareDeclared",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD_xbrlishares",
      "xsiNil": "false"
     }
    },
    "R60": {
     "firstAnchor": {
      "ancestors": [
       "pmt:NetGainOnMortgageLoansAcquiredForSaleDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ScheduleOfNetGainLossOnMortgageLoansAcquiredForSaleTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100590 - Disclosure - Net Gain on Loans Acquired for Sale (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleTables",
     "shortName": "Net Gain on Loans Acquired for Sale (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "pmt:NetGainOnMortgageLoansAcquiredForSaleDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ScheduleOfNetGainLossOnMortgageLoansAcquiredForSaleTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R61": {
     "firstAnchor": {
      "ancestors": [
       "pmt:NetMortgageLoanServicingFeesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ScheduleOfNetMortgageLoanServicingFeesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100600 - Disclosure - Net Loan Servicing Fees (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesTables",
     "shortName": "Net Loan Servicing Fees (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "pmt:NetMortgageLoanServicingFeesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:ScheduleOfNetMortgageLoanServicingFeesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R62": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100610 - Disclosure - Net Interest Income (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeTables",
     "shortName": "Net Interest Income (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R63": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfShareBasedCompensationActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100620 - Disclosure - Share-Based Compensation Plans (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlansTables",
     "shortName": "Share-Based Compensation Plans (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfShareBasedCompensationActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R64": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:OtherIncomeAndOtherExpenseDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfOtherOperatingCostAndExpenseByComponentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100630 - Disclosure - Other Expenses (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOtherExpensesTables",
     "shortName": "Other Expenses (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:OtherIncomeAndOtherExpenseDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfOtherOperatingCostAndExpenseByComponentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R65": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100640 - Disclosure - Earnings Per Share (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareTables",
     "shortName": "Earnings Per Share (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:EarningsPerShareTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R66": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100650 - Disclosure - Segments (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsTables",
     "shortName": "Segments (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R67": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:CashFlowSupplementalDisclosuresTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfCashFlowSupplementalDisclosuresTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100660 - Disclosure - Supplemental Cash Flow Information (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationTables",
     "shortName": "Supplemental Cash Flow Information (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:CashFlowSupplementalDisclosuresTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfCashFlowSupplementalDisclosuresTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R68": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:RegulatoryCapitalRequirementsForMortgageCompaniesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100670 - Disclosure - Regulatory Capital and Liquidity Requirements (Tables)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsTables",
     "shortName": "Regulatory Capital and Liquidity Requirements (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:RegulatoryCapitalRequirementsForMortgageCompaniesDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R69": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:SegmentReportingPolicyPolicyTextBlock",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:NumberOfOperatingSegments",
      "reportCount": 1,
      "unitRef": "U_pmtSegment",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100680 - Disclosure - Organization - Additional Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOrganizationAdditionalInformationDetail",
     "shortName": "Organization - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": "2",
      "lang": null,
      "name": "pmt:ReitQualificationThresholdPercentageOfTaxableIncomeForDistribution",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     }
    },
    "R7": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100060 - Statement - Consolidated Statements of Cash Flows (Unaudited)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited",
     "shortName": "Consolidated Statements of Cash Flows (Unaudited)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:AccrualOfInterestOnExcessServicingSpreadPurchased",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R70": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
       "us-gaap:BasisOfAccounting",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:RestrictedCash",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100690 - Disclosure - Basis of Presentation - Additional Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureBasisOfPresentationAdditionalInformationDetail",
     "shortName": "Basis of Presentation - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
       "us-gaap:BasisOfAccounting",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:RestrictedCash",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R71": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtRangeAxis_srtMinimumMember_20190101_20190630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "pmt:SourcingFeeOnUnpaidPrincipalBalance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100700 - Disclosure - Transactions with Related Parties - Correspondent Production Activities - Additional Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail",
     "shortName": "Transactions with Related Parties - Correspondent Production Activities - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtRangeAxis_srtMinimumMember_20190101_20190630",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "pmt:SourcingFeeOnUnpaidPrincipalBalance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     }
    },
    "R72": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:LoanFulfillmentFeesPayableToAffiliate",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100710 - Disclosure - Transactions with Related Parties - Summary of Correspondent Production Activity (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfCorrespondentProductionActivityDetail",
     "shortName": "Transactions with Related Parties - Summary of Correspondent Production Activity (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfCorrespondentProductionActivityAffiliateTableTextBlock",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapRelatedPartyTransactionsByRelatedPartyAxis_pmtPennyMacLoanServicesLlcMember_20190401_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:LoanFulfillmentFeesPayableToAffiliate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R73": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapRelatedPartyTransactionsByRelatedPartyAxis_pmtPennyMacLoanServicesLlcMember_20190101_20190630",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "pmt:ReoRentalFee",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100720 - Disclosure - Transactions with Related Parties - Mortgage Loan Servicing - Additional Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail",
     "shortName": "Transactions with Related Parties - Mortgage Loan Servicing - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "us-gaap:RelatedPartyTransactionsDisclosureTextBlock",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapRelatedPartyTransactionsByRelatedPartyAxis_pmtPennyMacLoanServicesLlcMember_20190101_20190630",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "pmt:ReoRentalFee",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R74": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LoanPortfolioExpense",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100730 - Disclosure - Transactions with Related Parties - Summary of Loan Servicing Fees Earned and Mortgage Servicing Rights Recaptured Income Earned (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfLoanServicingFeesEarnedAndMortgageServicingRightsRecapturedIncomeEarnedDetail",
     "shortName": "Transactions with Related Parties - Summary of Loan Servicing Fees Earned and Mortgage Servicing Rights Recaptured Income Earned (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:MortgageLoanServicingFeesEarnedByAffiliateAndMortgageServicingRightsRecapturedIncomeEarnedTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapRelatedPartyTransactionsByRelatedPartyAxis_pmtPennyMacLoanServicesLlcMember_20190401_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:LoanPortfolioExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R75": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:TerminationFeesDescription",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100740 - Disclosure - Transactions with Related Parties - Management Fees - Additional Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
     "shortName": "Transactions with Related Parties - Management Fees - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "pmt:TerminationFeesDescription",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R76": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ManagementFeeExpense",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100750 - Disclosure - Transactions with Related Parties - Summary of Base Management and Performance Incentive Fees Payable (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfBaseManagementAndPerformanceIncentiveFeesPayableDetail",
     "shortName": "Transactions with Related Parties - Summary of Base Management and Performance Incentive Fees Payable (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapRelatedPartyTransactionsByRelatedPartyAxis_pmtPNMACCapitalManagementLLCMember_20190401_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:ManagementFeeExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R77": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfExpensesRelatedToTransactionWithAffiliateTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapRelatedPartyTransactionsByRelatedPartyAxis_pmtPNMACCapitalManagementLLCMember_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:ReimbursementOfExpensesToAffiliateNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100760 - Disclosure - Transactions with Related Parties - Summary of Expenses (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfExpensesDetail",
     "shortName": "Transactions with Related Parties - Summary of Expenses (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfExpensesRelatedToTransactionWithAffiliateTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapRelatedPartyTransactionsByRelatedPartyAxis_pmtPNMACCapitalManagementLLCMember_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:ReimbursementOfExpensesToAffiliateNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R78": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20161217_20161219",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "pmt:ExcessServiceSpreadRecaptureOfMinimumPercentageLoanFeeRateAndUnpaidPrincipalBalanceRefinanceMortgageLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100770 - Disclosure - Transactions with Related Parties - Note Payable to PLS - Additional Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail",
     "shortName": "Transactions with Related Parties - Note Payable to PLS - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20161217_20161219",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "pmt:ExcessServiceSpreadRecaptureOfMinimumPercentageLoanFeeRateAndUnpaidPrincipalBalanceRefinanceMortgageLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     }
    },
    "R79": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InterestIncomeOperating",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100780 - Disclosure - Transactions with Related Parties - Summary of Investing Activity (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail",
     "shortName": "Transactions with Related Parties - Summary of Investing Activity (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:SummaryOfInvestmentTransactionsWithAffiliateTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapRelatedPartyTransactionsByRelatedPartyAxis_pmtPennyMacFinancialServicesAffiliatedEntityMember_20190401_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:ExcessServicingSpreadRecaptureReceivedAsExcessServicingSpread",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R8": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100070 - Disclosure - Organization",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOrganization",
     "shortName": "Organization",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R80": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:ProceedsFromSaleOfAssetsUnderAgreementsToRepurchase",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100790 - Disclosure - Transactions with Related Parties - Summary of Financing Activities (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfFinancingActivitiesDetail",
     "shortName": "Transactions with Related Parties - Summary of Financing Activities (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:SummaryOfFinancingTransactionsWithAffiliateTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapRelatedPartyTransactionsByRelatedPartyAxis_pmtPennyMacFinancialServicesAffiliatedEntityMember_20190401_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:ProceedsFromSaleOfAssetsUnderAgreementsToRepurchase",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R81": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapRelatedPartyTransactionsByRelatedPartyAxis_pmtPennyMacFinancialServicesAffiliatedEntityMember_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:MortgageServicingRightsRecaptureReceivable",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100800 - Disclosure - Transactions with Related Parties - Summary of Amounts Receivable From and Payable to PFSI (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail",
     "shortName": "Transactions with Related Parties - Summary of Amounts Receivable From and Payable to PFSI (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRelatedPartyTransactionsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapRelatedPartyTransactionsByRelatedPartyAxis_pmtPennyMacFinancialServicesAffiliatedEntityMember_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:MortgageServicingRightsRecaptureReceivable",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R82": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:SummarizesCashFlowsBetweenCompanyAndTransfereesUponSaleOfLoansInTransactionsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapVariableInterestEntitiesByClassificationOfEntityAxis_us-gaapVariableInterestEntityNotPrimaryBeneficiaryAggregatedDisclosureMember_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashFlowsBetweenTransfereeAndTransferorProceedsFromNewTransfers",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100810 - Disclosure - Loan Sales and Variable Interest Entities - Summary of Cash Flows between Company and Transferees in Transfers Accounted for Sales (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCashFlowsBetweenCompanyAndTransfereesInTransfersAccountedForSalesDetail",
     "shortName": "Loan Sales and Variable Interest Entities - Summary of Cash Flows between Company and Transferees in Transfers Accounted for Sales (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:SummarizesCashFlowsBetweenCompanyAndTransfereesUponSaleOfLoansInTransactionsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapVariableInterestEntitiesByClassificationOfEntityAxis_us-gaapVariableInterestEntityNotPrimaryBeneficiaryAggregatedDisclosureMember_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashFlowsBetweenTransfereeAndTransferorProceedsFromNewTransfers",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R83": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:SummarizesUnpaidBalanceInformationForMortgageLoansUponSaleOfLoansInTransactionsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapVariableInterestEntitiesByClassificationOfEntityAxis_us-gaapVariableInterestEntityNotPrimaryBeneficiaryAggregatedDisclosureMember_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ContinuingInvolvementWithTransferredFinancialAssetsPrincipalAmountOutstanding",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100820 - Disclosure - Loan Sales and Variable Interest Entities - Summary of Collection Status Information for Loans Accounted for Sales (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCollectionStatusInformationForLoansAccountedForSalesDetail",
     "shortName": "Loan Sales and Variable Interest Entities - Summary of Collection Status Information for Loans Accounted for Sales (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:SummarizesUnpaidBalanceInformationForMortgageLoansUponSaleOfLoansInTransactionsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapVariableInterestEntitiesByClassificationOfEntityAxis_us-gaapVariableInterestEntityNotPrimaryBeneficiaryAggregatedDisclosureMember_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ContinuingInvolvementWithTransferredFinancialAssetsPrincipalAmountOutstanding",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R84": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapDebtInstrumentAxis_pmtJumboMortgageLoanFinancingMember_us-gaapVariableInterestEntitiesByClassificationOfEntityAxis_us-gaapVariableInterestEntityPrimaryBeneficiaryAggregatedDisclosureMember_20130929_20130930",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:NotesIssued1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100830 - Disclosure - Loan Sales and Variable Interest Entities - Additional Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail",
     "shortName": "Loan Sales and Variable Interest Entities - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapDebtInstrumentAxis_pmtJumboMortgageLoanFinancingMember_us-gaapVariableInterestEntitiesByClassificationOfEntityAxis_us-gaapVariableInterestEntityPrimaryBeneficiaryAggregatedDisclosureMember_20130929_20130930",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:NotesIssued1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R85": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InterestIncomeOperating",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100840 - Disclosure - Loan Sales and Variable Interest Entities - Summary of Credit Risk Transfer Agreements (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail",
     "shortName": "Loan Sales and Variable Interest Entities - Summary of Credit Risk Transfer Agreements (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfCreditRiskTransferAgreementsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapCreditDerivativesByContractTypeAxis_pmtCreditRiskTransferAgreementMember_us-gaapVariableInterestEntitiesByClassificationOfEntityAxis_us-gaapVariableInterestEntityPrimaryBeneficiaryAggregatedDisclosureMember_20190401_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:UnpaidBalanceOfMortgageLoansSold",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R86": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShortTermInvestments",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100850 - Disclosure - Fair Value - Summary of Financial Statement Items Measured at Fair Value on Recurring Basis (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
     "shortName": "Fair Value - Summary of Financial Statement Items Measured at Fair Value on Recurring Basis (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFairValueByMeasurementFrequencyAxis_us-gaapFairValueMeasurementsRecurringMember_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:ShortTermInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R87": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfFairValueInputsDateOfSaleMortgageServicingRightTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:ServicingAssetAtFairValueAdditionsFromLoanSales",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100860 - Disclosure - Fair Value - Summary of Changes in Items Measured Using Level 3 Inputs on Recurring Basis (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
     "shortName": "Fair Value - Summary of Changes in Items Measured Using Level 3 Inputs on Recurring Basis (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFairValueByMeasurementFrequencyAxis_us-gaapFairValueMeasurementsRecurringMember_20190331",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R88": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:FairValueOptionLoansHeldAsAssetsAggregateFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100870 - Disclosure - Fair Value - Fair Values and Related Principal Amounts Due upon Maturity of Loans Accounted for Under Fair Value Option (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail",
     "shortName": "Fair Value - Fair Values and Related Principal Amounts Due upon Maturity of Loans Accounted for Under Fair Value Option (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:FairValueOptionLoansHeldAsAssetsAggregateFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R89": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20180401_20180630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueOptionChangesInFairValueGainLoss1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100880 - Disclosure - Fair Value - Summary of Changes in Fair Value Included in Current Period Income (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
     "shortName": "Fair Value - Summary of Changes in Fair Value Included in Current Period Income (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20180401_20180630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueOptionChangesInFairValueGainLoss1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R9": {
     "firstAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfAccounting",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100080 - Disclosure - Basis of Presentation",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureBasisOfPresentation",
     "shortName": "Basis of Presentation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190101_20190630",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfAccounting",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R90": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFairValueByMeasurementFrequencyAxis_us-gaapFairValueMeasurementsNonrecurringMember_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:RealEstateAcquiredThroughForeclosureRemeasuredDuringPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100890 - Disclosure - Fair Value - Summary of Carrying Value of REO Re-measured Based on Fair Value on Nonrecurring Basis (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfCarryingValueOfREOReMeasuredBasedOnFairValueOnNonrecurringBasisDetail",
     "shortName": "Fair Value - Summary of Carrying Value of REO Re-measured Based on Fair Value on Nonrecurring Basis (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFairValueByMeasurementFrequencyAxis_us-gaapFairValueMeasurementsNonrecurringMember_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:RealEstateAcquiredThroughForeclosureRemeasuredDuringPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R91": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFairValueByMeasurementFrequencyAxis_us-gaapFairValueMeasurementsNonrecurringMember_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:RealEstateAcquiredThroughForeclosureGainsLossesRecognized",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100900 - Disclosure - Fair Value - Summary of Changes in Fair Value Recognized in REO that Remeasured at Fair Value on a Nonrecurring Basis (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueRecognizedInREOThatRemeasuredAtFairValueOnNonrecurringBasisDetail",
     "shortName": "Fair Value - Summary of Changes in Fair Value Recognized in REO that Remeasured at Fair Value on a Nonrecurring Basis (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFairValueByMeasurementFrequencyAxis_us-gaapFairValueMeasurementsNonrecurringMember_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:RealEstateAcquiredThroughForeclosureGainsLossesRecognized",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R92": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfCarryingValuesAndEstimatedFairValuesOfDebtInstrumentsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LongTermDebtFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100910 - Disclosure - Fair Value - Fair Value of Other Borrowings (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValueOfOtherBorrowingsDetail",
     "shortName": "Fair Value - Fair Value of Other Borrowings (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfCarryingValuesAndEstimatedFairValuesOfDebtInstrumentsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LongTermDebtFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R93": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfKeyInputsUsedInValuationOfMortgageLoansAtFairValueTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtRangeAxis_srtWeightedAverageMember_us-gaapFairValueByAssetClassAxis_pmtMortgageLoansAtFairValueMember_us-gaapMeasurementInputTypeAxis_us-gaapMeasurementInputDiscountRateMember_20190630",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "pmt:MortgageLoansAtFairValueMeasurementInput",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100920 - Disclosure - Fair Value - Quantitative Summary of Key Inputs Used in Valuation of Level 3 Loans at Fair Value (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail",
     "shortName": "Fair Value - Quantitative Summary of Key Inputs Used in Valuation of Level 3 Loans at Fair Value (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfKeyInputsUsedInValuationOfMortgageLoansAtFairValueTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtRangeAxis_srtWeightedAverageMember_us-gaapFairValueByAssetClassAxis_pmtMortgageLoansAtFairValueMember_us-gaapMeasurementInputTypeAxis_us-gaapMeasurementInputDiscountRateMember_20190630",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "pmt:MortgageLoansAtFairValueMeasurementInput",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     }
    },
    "R94": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfFairValueInputsDateOfSaleMortgageServicingRightTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_20190401_20190630",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "pmt:FairValueUnpaidPrincipalBalanceOfUnderlyingLoans",
      "reportCount": 1,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100930 - Disclosure - Fair Value - Summary of Key Inputs Used in Determining Fair Value of ESS (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail",
     "shortName": "Fair Value - Summary of Key Inputs Used in Determining Fair Value of ESS (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfKeyInputsUsedInValuationOfExcessServicingSpreadAtFairValueTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtRangeAxis_srtWeightedAverageMember_us-gaapFairValueByAssetClassAxis_pmtExcessSpreadInvestmentMember_20190101_20190630",
      "decimals": "-3",
      "lang": null,
      "name": "pmt:FairValueUnpaidPrincipalBalanceOfUnderlyingLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_iso4217USD",
      "xsiNil": "false"
     }
    },
    "R95": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFairValueByAssetClassAxis_pmtCreditRiskTransferStripsMember_us-gaapMeasurementInputTypeAxis_us-gaapMeasurementInputDiscountRateMember_20190630",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "pmt:SecurititesInterestOnlyStrippedMeasurementInput",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100940 - Disclosure - Fair Value - Summary of Key Unobservable Inputs Used in Valuation Credit Risk Transfer Strips (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationCreditRiskTransferStripsDetail",
     "shortName": "Fair Value - Summary of Key Unobservable Inputs Used in Valuation Credit Risk Transfer Strips (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFairValueByAssetClassAxis_pmtCreditRiskTransferStripsMember_us-gaapMeasurementInputTypeAxis_us-gaapMeasurementInputDiscountRateMember_20190630",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "pmt:SecurititesInterestOnlyStrippedMeasurementInput",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     }
    },
    "R96": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfKeyUnobservableInputsUsedInValuationOfCreditRiskTransfersTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtRangeAxis_srtWeightedAverageMember_us-gaapCreditDerivativesByContractTypeAxis_pmtCreditRiskTransferAgreementsMember_us-gaapMeasurementInputTypeAxis_us-gaapMeasurementInputDiscountRateMember_20190101_20190630",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "pmt:FairValueUnobservableInputsDiscountRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100950 - Disclosure - Fair Value - Quantitative Summary of Key Unobservable Inputs Used in Review and Approval of Broker-provided Fair Values for CRT Agreements (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail",
     "shortName": "Fair Value - Quantitative Summary of Key Unobservable Inputs Used in Review and Approval of Broker-provided Fair Values for CRT Agreements (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "pmt:ScheduleOfKeyUnobservableInputsUsedInValuationOfCreditRiskTransfersTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtRangeAxis_srtWeightedAverageMember_us-gaapCreditDerivativesByContractTypeAxis_pmtCreditRiskTransferAgreementsMember_us-gaapMeasurementInputTypeAxis_us-gaapMeasurementInputDiscountRateMember_20190101_20190630",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "pmt:FairValueUnobservableInputsDiscountRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     }
    },
    "R97": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtRangeAxis_srtWeightedAverageMember_us-gaapMeasurementInputTypeAxis_pmtMeasurementInputPullThroughRateMember_20190630",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "pmt:InterestRateLockCommitmentMeasurementInput",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100960 - Disclosure - Fair Value - Quantitative Summary of Key Unobservable Inputs Used in Valuation of Interest Rate Lock Commitments (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInValuationOfInterestRateLockCommitmentsDetail",
     "shortName": "Fair Value - Quantitative Summary of Key Unobservable Inputs Used in Valuation of Interest Rate Lock Commitments (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_srtRangeAxis_srtWeightedAverageMember_us-gaapMeasurementInputTypeAxis_pmtMeasurementInputPullThroughRateMember_20190630",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "pmt:InterestRateLockCommitmentMeasurementInput",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     }
    },
    "R98": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFairValueByFairValueHierarchyLevelAxis_us-gaapFairValueInputsLevel3Member_us-gaapInvestmentTypeAxis_us-gaapRepurchaseAgreementsMember_20190630",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "pmt:EstimatedFairValueOfMortgageLoanApprovalRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100970 - Disclosure - Fair Value - Additional Information (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueAdditionalInformationDetail",
     "shortName": "Fair Value - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFairValueByFairValueHierarchyLevelAxis_us-gaapFairValueInputsLevel3Member_us-gaapInvestmentTypeAxis_us-gaapRepurchaseAgreementsMember_20190630",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "pmt:EstimatedFairValueOfMortgageLoanApprovalRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     }
    },
    "R99": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFairValueByAssetClassAxis_pmtFirmCommitmentToPurchaseCreditRiskTransferSecuritiesMember_us-gaapMeasurementInputTypeAxis_us-gaapMeasurementInputDiscountRateMember_20190630",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "pmt:FirmCommitmentMeasurementInput",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100980 - Disclosure - Fair Value - Summary of Key Unobservable Inputs Used in Valuation of Firm Commitment to Purchase CRT Securities (Detail)",
     "role": "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationOfFirmCommitmentToPurchaseCRTSecuritiesDetail",
     "shortName": "Fair Value - Summary of Key Unobservable Inputs Used in Valuation of Firm Commitment to Purchase CRT Securities (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "pmt-10q_20190630.htm",
      "contextRef": "C_0001464423_us-gaapFairValueByAssetClassAxis_pmtFirmCommitmentToPurchaseCreditRiskTransferSecuritiesMember_us-gaapMeasurementInputTypeAxis_us-gaapMeasurementInputDiscountRateMember_20190630",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "pmt:FirmCommitmentMeasurementInput",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_xbrlipure",
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 214,
   "tag": {
    "dei_AmendmentFlag": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "If the value is true, then the document is an amendment to previously-filed/accepted document.",
        "label": "Amendment Flag",
        "terseLabel": "Amendment Flag"
       }
      }
     },
     "localname": "AmendmentFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_CityAreaCode": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Area code of city",
        "label": "City Area Code",
        "terseLabel": "City Area Code"
       }
      }
     },
     "localname": "CityAreaCode",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_CurrentFiscalYearEndDate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "End date of current fiscal year in the format --MM-DD.",
        "label": "Current Fiscal Year End Date",
        "terseLabel": "Current Fiscal Year End Date"
       }
      }
     },
     "localname": "CurrentFiscalYearEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "gMonthDayItemType"
    },
    "dei_DocumentFiscalPeriodFocus": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This is focus fiscal period of the document report. For a first quarter 2006 quarterly report, which may also provide financial information from prior periods, the first fiscal quarter should be given as the fiscal period focus. Values: FY, Q1, Q2, Q3, Q4, H1, H2, M9, T1, T2, T3, M8, CY.",
        "label": "Document Fiscal Period Focus",
        "terseLabel": "Document Fiscal Period Focus"
       }
      }
     },
     "localname": "DocumentFiscalPeriodFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "fiscalPeriodItemType"
    },
    "dei_DocumentFiscalYearFocus": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This is focus fiscal year of the document report in CCYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006.",
        "label": "Document Fiscal Year Focus",
        "terseLabel": "Document Fiscal Year Focus"
       }
      }
     },
     "localname": "DocumentFiscalYearFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "gYearItemType"
    },
    "dei_DocumentPeriodEndDate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The end date of the period reflected on the cover page if a periodic report. For all other reports and registration statements containing historical data, it is the date up through which that historical data is presented.  If there is no historical data in the report, use the filing date. The format of the date is CCYY-MM-DD.",
        "label": "Document Period End Date",
        "terseLabel": "Document Period End Date"
       }
      }
     },
     "localname": "DocumentPeriodEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "dateItemType"
    },
    "dei_DocumentType": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'.",
        "label": "Document Type",
        "terseLabel": "Document Type"
       }
      }
     },
     "localname": "DocumentType",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "submissionTypeItemType"
    },
    "dei_EntityAddressAddressLine1": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Address Line 1 such as Building Name, Street Name",
        "label": "Entity Address Address Line1",
        "terseLabel": "Entity Address, Address Line One"
       }
      }
     },
     "localname": "EntityAddressAddressLine1",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressCityOrTown": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Name of the City or Town",
        "label": "Entity Address City Or Town",
        "terseLabel": "Entity Address, City or Town"
       }
      }
     },
     "localname": "EntityAddressCityOrTown",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressPostalZipCode": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Code for the postal or zip code",
        "label": "Entity Address Postal Zip Code",
        "terseLabel": "Entity Address, Postal Zip Code"
       }
      }
     },
     "localname": "EntityAddressPostalZipCode",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressStateOrProvince": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Name of the state or province.",
        "label": "Entity Address State Or Province",
        "terseLabel": "Entity Address, State or Province"
       }
      }
     },
     "localname": "EntityAddressStateOrProvince",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r435"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK.",
        "label": "Entity Central Index Key",
        "terseLabel": "Entity Central Index Key"
       }
      }
     },
     "localname": "EntityCentralIndexKey",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "centralIndexKeyItemType"
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument.",
        "label": "Entity Common Stock Shares Outstanding",
        "terseLabel": "Entity Common Stock, Shares Outstanding"
       }
      }
     },
     "localname": "EntityCommonStockSharesOutstanding",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "sharesItemType"
    },
    "dei_EntityCurrentReportingStatus": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Current Reporting Status",
        "terseLabel": "Entity Current Reporting Status"
       }
      }
     },
     "localname": "EntityCurrentReportingStatus",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains.",
        "label": "Entity [Domain]",
        "terseLabel": "Entity"
       }
      }
     },
     "localname": "EntityDomain",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "dei_EntityEmergingGrowthCompany": {
     "auth_ref": [
      "r435"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicate if registrant meets the emerging growth company criteria.",
        "label": "Entity Emerging Growth Company",
        "terseLabel": "Entity Emerging Growth Company"
       }
      }
     },
     "localname": "EntityEmergingGrowthCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityFileNumber": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen.",
        "label": "Entity File Number",
        "terseLabel": "Entity File Number"
       }
      }
     },
     "localname": "EntityFileNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "fileNumberItemType"
    },
    "dei_EntityFilerCategory": {
     "auth_ref": [
      "r435"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicate whether the registrant is one of the following: (1) Large Accelerated Filer, (2) Accelerated Filer, (3) Non-accelerated Filer, (4) Smaller Reporting Company (Non-accelerated), (5) Smaller Reporting Accelerated Filer or (6) Smaller Reporting Company and Large Accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Filer Category",
        "terseLabel": "Entity Filer Category"
       }
      }
     },
     "localname": "EntityFilerCategory",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "filerCategoryItemType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r435"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC.",
        "label": "Entity Registrant Name",
        "terseLabel": "Entity Registrant Name"
       }
      }
     },
     "localname": "EntityRegistrantName",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityShellCompany": {
     "auth_ref": [
      "r435"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicate if company meets the shell company criteria: a company with no or nominal operations, and with no or nominal assets or assets consisting solely of cash and cash equivalents.",
        "label": "Entity Shell Company",
        "terseLabel": "Entity Shell Company"
       }
      }
     },
     "localname": "EntityShellCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntitySmallBusiness": {
     "auth_ref": [
      "r435"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicates that the company is a smaller reporting company with both a public float and revenues of less than $75 million.",
        "label": "Entity Small Business",
        "terseLabel": "Entity Small Business"
       }
      }
     },
     "localname": "EntitySmallBusiness",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityTaxIdentificationNumber": {
     "auth_ref": [
      "r435"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS.",
        "label": "Entity Tax Identification Number",
        "terseLabel": "Entity Tax Identification Number"
       }
      }
     },
     "localname": "EntityTaxIdentificationNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "nineDigitItemType"
    },
    "dei_LegalEntityAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The set of legal entities associated with a report.",
        "label": "Legal Entity [Axis]",
        "terseLabel": "Legal Entity"
       }
      }
     },
     "localname": "LegalEntityAxis",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_LocalPhoneNumber": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Local phone number for entity.",
        "label": "Local Phone Number",
        "terseLabel": "Local Phone Number"
       }
      }
     },
     "localname": "LocalPhoneNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_TradingSymbol": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Trading symbol of an instrument as listed on an exchange.",
        "label": "Trading Symbol",
        "terseLabel": "Trading Symbol"
       }
      }
     },
     "localname": "TradingSymbol",
     "nsuri": "http://xbrl.sec.gov/dei/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DocumentDocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "invest_DerivativeNotionalAmount": {
     "auth_ref": [
      "r437"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate notional amount specified by the derivative(s). Expressed as an absolute value.",
        "label": "Derivative Notional Amount",
        "periodEndLabel": "Notional amount, end of quarter",
        "periodStartLabel": "Notional amount, beginning of quarter",
        "terseLabel": "Notional amount"
       }
      }
     },
     "localname": "DerivativeNotionalAmount",
     "nsuri": "http://xbrl.sec.gov/invest/2013-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "invest_InvestmentAxis": {
     "auth_ref": [
      "r436"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A categorization of investments (securities, debt instruments, other instruments).",
        "label": "Investment [Axis]",
        "terseLabel": "Investment"
       }
      }
     },
     "localname": "InvestmentAxis",
     "nsuri": "http://xbrl.sec.gov/invest/2013-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfInvestmentInCRTStripsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "invest_InvestmentDomain": {
     "auth_ref": [
      "r436"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A categorization of investments (securities, debt instruments, other instruments).",
        "label": "Investment [Domain]",
        "terseLabel": "Investment"
       }
      }
     },
     "localname": "InvestmentDomain",
     "nsuri": "http://xbrl.sec.gov/invest/2013-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfInvestmentInCRTStripsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_AccrualOfInterestOnExcessServicingSpreadPurchased": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10370.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accrual of interest on excess servicing spread purchased.",
        "label": "Accrual Of Interest On Excess Servicing Spread Purchased",
        "negatedLabel": "Accrual of interest on excess servicing spread purchased from PennyMac Financial Services, Inc."
       }
      }
     },
     "localname": "AccrualOfInterestOnExcessServicingSpreadPurchased",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ActivityBasedFees": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Activity based fees.",
        "label": "Activity Based Fees",
        "terseLabel": "Activity based fees"
       }
      }
     },
     "localname": "ActivityBasedFees",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_AdditionalServicingFees": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Additional Servicing Fees",
        "label": "Additional Servicing Fees",
        "terseLabel": "Additional servicing fees per loan per month"
       }
      }
     },
     "localname": "AdditionalServicingFees",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_AdjustableRateMortgagesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Adjustable Rate Mortgages [Member]",
        "label": "Adjustable Rate Mortgages [Member]",
        "terseLabel": "Adjustable rate mortgage loans [Member]"
       }
      }
     },
     "localname": "AdjustableRateMortgagesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_AggregateCashGainLossOnSaleOfMortgageLoansAcquiredForSaleNetOfCashHedgingResults": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate Cash Gain Loss On Sale Of Mortgage Loans Acquired For Sale Net Of Cash Hedging Results",
        "label": "Aggregate Cash Gain Loss On Sale Of Mortgage Loans Acquired For Sale Net Of Cash Hedging Results",
        "totalLabel": "Cash gain, net of effects of cash hedging, on sale of mortgage loans acquired for sale"
       }
      }
     },
     "localname": "AggregateCashGainLossOnSaleOfMortgageLoansAcquiredForSaleNetOfCashHedgingResults",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_AggregateNonCashPortionOfGainLossOnMortgageLoansAcquiredForSale": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate non cash portion of gain loss on mortgage loans acquired for sale.",
        "label": "Aggregate Non Cash Portion Of Gain Loss On Mortgage Loans Acquired For Sale",
        "totalLabel": "Total non cash portion of gain on mortgage loans acquired for sale"
       }
      }
     },
     "localname": "AggregateNonCashPortionOfGainLossOnMortgageLoansAcquiredForSale",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_AgreementExpirationDate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the expiration date of the contingent underwriting fee reimbursement agreement.",
        "label": "Agreement Expiration Date",
        "terseLabel": "Reimbursement agreement expiry date"
       }
      }
     },
     "localname": "AgreementExpirationDate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "pmt_AllocatedExpensesAndExpensesPaidByAffiliate": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail": {
       "order": 10030.0,
       "parentTag": "us-gaap_DueToAffiliateCurrentAndNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Allocated expenses and expenses paid by affiliate.",
        "label": "Allocated Expenses And Expenses Paid By Affiliate",
        "terseLabel": "Allocated expenses and expenses paid by PFSI on PMT\u2019s behalf"
       }
      }
     },
     "localname": "AllocatedExpensesAndExpensesPaidByAffiliate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_AssetBackedSecuredFinancingInterestExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": 10050.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents interest expense relating to bonds issued to non-affiliates secured by mortgage loans held in a consolidated VIE.",
        "label": "Asset Backed Secured Financing Interest Expense",
        "terseLabel": "Asset-backed financings of a VIE at fair value"
       }
      }
     },
     "localname": "AssetBackedSecuredFinancingInterestExpense",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_AssetBackedSecuredFinancingLiabilityFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_FinancialLiabilitiesFairValueDisclosure",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10190.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Asset-backed secured financing represents the amounts owed to nonaffiliates relating to the securitization of mortgage loans held in a variable interest entity.",
        "label": "Asset Backed Secured Financing Liability Fair Value",
        "terseLabel": "Asset-backed financing of a variable interest entity at fair value",
        "verboseLabel": "Asset-backed financing of a VIE at fair value"
       }
      }
     },
     "localname": "AssetBackedSecuredFinancingLiabilityFairValue",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_AssetBackedSecuredFinancingLiabilityFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Asset backed secured financing liability fair value.",
        "label": "Asset Backed Secured Financing Liability Fair Value [Member]",
        "terseLabel": "Asset Backed Secured Financing Liability Fair Value [Member]"
       }
      }
     },
     "localname": "AssetBackedSecuredFinancingLiabilityFairValueMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_AssetBackedSecuredFinancingTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial information relating to asset-backed secured financings, including balances, interest rates and interest expense for the period and at period end.",
        "label": "Asset Backed Secured Financing Table [Text Block]",
        "terseLabel": "Summary of Financial Information Relating to Asset-Backed Financing of a VIE at Fair Value"
       }
      }
     },
     "localname": "AssetBackedSecuredFinancingTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_AssetSoldUnderAgreementsToRepurchaseMaximumDailyAmountOutstanding": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Asset sold under agreements to repurchase maximum daily amount outstanding.",
        "label": "Asset Sold Under Agreements To Repurchase Maximum Daily Amount Outstanding",
        "terseLabel": "Maximum daily amount outstanding"
       }
      }
     },
     "localname": "AssetSoldUnderAgreementsToRepurchaseMaximumDailyAmountOutstanding",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_AssetsSoldUnderAgreementToRepurchase": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Assets sold under agreement to repurchase.",
        "label": "Assets Sold Under Agreement To Repurchase",
        "terseLabel": "Assets sold to PFSI under agreement to repurchase"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementToRepurchase",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfFinancingActivitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_AssetsSoldUnderAgreementsAvailableBorrowingCapacityCommitted": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail": {
       "order": 10730.0,
       "parentTag": "pmt_SecuritiesSoldUnderAgreementsAvailableBorrowingCapacity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Assets sold under agreements available borrowing capacity committed.",
        "label": "Assets Sold Under Agreements Available Borrowing Capacity Committed",
        "terseLabel": "Available borrowing capacity, Committed"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsAvailableBorrowingCapacityCommitted",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_AssetsSoldUnderAgreementsToRepurchase": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail": {
       "order": 10750.0,
       "parentTag": "us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of funds outstanding borrowed in the form of an asset repurchase agreement between PMT and another party for the sale and repurchase of identical or substantially the same assets at a date certain for a specified price.",
        "label": "Assets Sold Under Agreements To Repurchase",
        "terseLabel": "Unpaid principal balance"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchase",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_AssetsSoldUnderAgreementsToRepurchaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Assets sold under agreements to repurchase.",
        "label": "Assets Sold Under Agreements To Repurchase [Abstract]",
        "terseLabel": "Assets sold under agreements to repurchase"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_AssetsSoldUnderAgreementsToRepurchaseAverageBalance": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Assets sold under agreements to repurchase average balance.",
        "label": "Assets Sold Under Agreements To Repurchase Average Balance",
        "terseLabel": "Average balance"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseAverageBalance",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_AssetsSoldUnderAgreementsToRepurchaseMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Assets Sold Under Agreements To Repurchase [Member]",
        "label": "Assets Sold Under Agreements To Repurchase [Member]",
        "terseLabel": "Assets Sold Under Agreements to Repurchase [Member]"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_AverageBalanceDuringPeriodForServicingAssetsPortfolio": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Average unpaid principal balance of mortgage loans in the mortgage loan servicing portfolio.",
        "label": "Average Balance During Period For Servicing Assets Portfolio",
        "terseLabel": "Average servicing portfolio UPB",
        "verboseLabel": "Average MSR portfolio UPB"
       }
      }
     },
     "localname": "AverageBalanceDuringPeriodForServicingAssetsPortfolio",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfLoanServicingFeesEarnedAndMortgageServicingRightsRecapturedIncomeEarnedDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_BNPParibasCorporateAndInstitutionalBankMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "BNP Paribas Corporate &amp; Institutional Bank [Member]",
        "label": "B N P Paribas Corporate And Institutional Bank [Member]",
        "terseLabel": "BNP Paribas [Member]"
       }
      }
     },
     "localname": "BNPParibasCorporateAndInstitutionalBankMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_BNPParibasMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "BNP Paribas [Member]",
        "label": "B N P Paribas [Member]",
        "terseLabel": "BNP Paribas [Member]"
       }
      }
     },
     "localname": "BNPParibasMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_BankOfAmericaNaMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Bank Of America Na [Member]",
        "label": "Bank Of America Na [Member]",
        "terseLabel": "Bank of America, N.A. [Member]",
        "verboseLabel": "Bank of America, N.A. [Member]"
       }
      }
     },
     "localname": "BankOfAmericaNaMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_BankOfNYMellonMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Bank of NY Mellon [Member]",
        "label": "Bank Of N Y Mellon [Member]",
        "terseLabel": "Bank of New York Mellon [Member]"
       }
      }
     },
     "localname": "BankOfNYMellonMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_BankServiceChargesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Bank service charges",
        "label": "Bank Service Charges [Member]",
        "terseLabel": "Bank Service Charges [Member]"
       }
      }
     },
     "localname": "BankServiceChargesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOtherExpensesSummaryOfOtherExpensesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_BaseManagementFeeShareholdersEquityLimit": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the shareholders' equity levels upon which base management fee rates are based effective February 1, 2013.",
        "label": "Base Management Fee Shareholders Equity Limit",
        "terseLabel": "Base management fee shareholders' equity limit"
       }
      }
     },
     "localname": "BaseManagementFeeShareholdersEquityLimit",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_BaseMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Base [Member]",
        "label": "Base [Member]",
        "terseLabel": "Base [Member]"
       }
      }
     },
     "localname": "BaseMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfBaseManagementAndPerformanceIncentiveFeesPayableDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_BaseServicesFeesForReo": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Base services fees for reo.",
        "label": "Base Services Fees For Reo",
        "terseLabel": "Base servicing fees for REO per month"
       }
      }
     },
     "localname": "BaseServicesFeesForReo",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_BaseServicesFeesToRelatedParty": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Base Services Fees To Related Party",
        "label": "Base Services Fees To Related Party",
        "terseLabel": "Base servicing fees per month"
       }
      }
     },
     "localname": "BaseServicesFeesToRelatedParty",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_BondFuturesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Bond futures.",
        "label": "Bond Futures [Member]",
        "terseLabel": "Bond Futures [Member]"
       }
      }
     },
     "localname": "BondFuturesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_CallOptionsOnInterestRateFuturesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Call Options On Interest Rate Futures [Member]",
        "label": "Call Options On Interest Rate Futures [Member]",
        "terseLabel": "Call Options on Interest Rate Futures [Member]"
       }
      }
     },
     "localname": "CallOptionsOnInterestRateFuturesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_CapitalRequirementsByAgenciesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Capital requirements by agencies.",
        "label": "Capital Requirements By Agencies [Line Items]",
        "terseLabel": "Capital Requirements By Agencies [Line Items]"
       }
      }
     },
     "localname": "CapitalRequirementsByAgenciesLineItems",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsSummaryOfCapitalAndLiquidityAmountsAndRequirementsByAgenciesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_CapitalRequirementsByAgenciesTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Capital Requirements By Agencies [Table]",
        "label": "Capital Requirements By Agencies [Table]",
        "terseLabel": "Capital Requirements By Agencies [Table]"
       }
      }
     },
     "localname": "CapitalRequirementsByAgenciesTable",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsSummaryOfCapitalAndLiquidityAmountsAndRequirementsByAgenciesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_CapitalizationOfInterestAndFeesOnMortgageLoansAtFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10380.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Capitalization of interest and fees on mortgage loans at fair value.",
        "label": "Capitalization Of Interest And Fees On Mortgage Loans At Fair Value",
        "negatedLabel": "Capitalization of interest and fees on loans at fair value"
       }
      }
     },
     "localname": "CapitalizationOfInterestAndFeesOnMortgageLoansAtFairValue",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_CapitalizationOfServicingAdvancesPursuantToMortgageLoanModifications": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Capitalization of servicing advances pursuant to mortgage loan modifications.",
        "label": "Capitalization Of Servicing Advances Pursuant To Mortgage Loan Modifications",
        "terseLabel": "Capitalization of servicing advances pursuant to mortgage loan modifications"
       }
      }
     },
     "localname": "CapitalizationOfServicingAdvancesPursuantToMortgageLoanModifications",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationSummaryOfSupplementalCashFlowInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_CarryingValueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying value.",
        "label": "Carrying Value [Abstract]",
        "terseLabel": "Carrying value:"
       }
      }
     },
     "localname": "CarryingValueAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesSummaryOfFinancialInformationRelatingToExchangeableSeniorNotesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_CarryingValueOfCreditRiskTransferAgreementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying Value of Credit Risk Transfer Agreements [Abstract]",
        "label": "Carrying Value Of Credit Risk Transfer Agreements [Abstract]",
        "terseLabel": "Carrying value of CRT arrangements:"
       }
      }
     },
     "localname": "CarryingValueOfCreditRiskTransferAgreementsAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_CarryingValueOfCreditRiskTransferStrips": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAndCreditRiskTransferAssetsDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_CreditRiskDerivativeAssetsAtFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying value of credit risk transfer strips.",
        "label": "Carrying Value Of Credit Risk Transfer Strips",
        "terseLabel": "Credit risk transfer strips"
       }
      }
     },
     "localname": "CarryingValueOfCreditRiskTransferStrips",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAndCreditRiskTransferAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_CarryingValueOfFirmCommitmentToPurchaseCreditTransferRiskSecurities": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying value of firm commitment to purchase credit transfer risk securities.",
        "label": "Carrying Value Of Firm Commitment To Purchase Credit Transfer Risk Securities",
        "terseLabel": "Firm commitment to purchase CRT securities at fair value"
       }
      }
     },
     "localname": "CarryingValueOfFirmCommitmentToPurchaseCreditTransferRiskSecurities",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_CashFlowsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Cash flows.",
        "label": "Cash Flows [Abstract]",
        "terseLabel": "Cash flows:"
       }
      }
     },
     "localname": "CashFlowsAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCashFlowsBetweenCompanyAndTransfereesInTransfersAccountedForSalesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_CashPortionOfLossOnMortgageLoansAcquiredForSaleAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Cash portion of loss on mortgage loans acquired for sale.",
        "label": "Cash Portion Of Loss On Mortgage Loans Acquired For Sale [Abstract]",
        "terseLabel": "Cash loss:"
       }
      }
     },
     "localname": "CashPortionOfLossOnMortgageLoansAcquiredForSaleAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_ChangeInExpectedFaceAmountOfFirmCommitmentToPurchaseCreditRiskTransferSecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail": {
       "order": 10100.0,
       "parentTag": "pmt_DepositsOfCashSecuringCreditRiskTransferAgreementsNetOfAdjustment",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Change in expected face amount of firm commitment to purchase credit risk transfer securities.",
        "label": "Change In Expected Face Amount Of Firm Commitment To Purchase Credit Risk Transfer Securities",
        "negatedLabel": "Change in expected face amount of firm commitment to purchase CRT securities"
       }
      }
     },
     "localname": "ChangeInExpectedFaceAmountOfFirmCommitmentToPurchaseCreditRiskTransferSecurities",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ChangeInFairValueHedgingInstrumentsStillHeldAtPeriodEnd": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail": {
       "order": 10060.0,
       "parentTag": "pmt_AggregateNonCashPortionOfGainLossOnMortgageLoansAcquiredForSale",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the change in fair value of hedging derivatives still held at period end.",
        "label": "Change In Fair Value Hedging Instruments Still Held At Period End",
        "terseLabel": "Hedging derivatives"
       }
      }
     },
     "localname": "ChangeInFairValueHedgingInstrumentsStillHeldAtPeriodEnd",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ChangeInFairValueOfCommitmentsToPurchaseLoans": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail": {
       "order": 10040.0,
       "parentTag": "pmt_AggregateNonCashPortionOfGainLossOnMortgageLoansAcquiredForSale",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the portion of gain on sale of mortgage loans arising from the change in fair value of commitments to purchase loans.",
        "label": "Change In Fair Value Of Commitments To Purchase Loans",
        "terseLabel": "IRLCs"
       }
      }
     },
     "localname": "ChangeInFairValueOfCommitmentsToPurchaseLoans",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ChangeInFairValueOfFirmCommitmentToPurchaseCreditRiskTransferSecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_InterestIncomeOperating",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Change in fair value of firm commitment to purchase credit risk transfer securities.",
        "label": "Change In Fair Value Of Firm Commitment To Purchase Credit Risk Transfer Securities",
        "negatedLabel": "Change in fair value of firm commitments to purchase CRT securities"
       }
      }
     },
     "localname": "ChangeInFairValueOfFirmCommitmentToPurchaseCreditRiskTransferSecurities",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ChangeInFairValueOfInterestOnlySecurityPayableAtFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail": {
       "order": 10070.0,
       "parentTag": "pmt_GainsLossesRecognizedOnCRTAgreementsIncludedInNetLossGainOnInvestments",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Change in fair value of interest only security payable at fair value.",
        "label": "Change In Fair Value Of Interest Only Security Payable At Fair Value",
        "terseLabel": "Interest-only security payable at fair value"
       }
      }
     },
     "localname": "ChangeInFairValueOfInterestOnlySecurityPayableAtFairValue",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ChangeInFairValueOfMortgageLoansAndRelatedHedgingInstrumentsStillHeldAtPeriodEndAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Change in fair value of mortgage loans and related hedging instruments still held at period end.",
        "label": "Change In Fair Value Of Mortgage Loans And Related Hedging Instruments Still Held At Period End [Abstract]",
        "terseLabel": "Change in fair value of financial instruments held at end of period:"
       }
      }
     },
     "localname": "ChangeInFairValueOfMortgageLoansAndRelatedHedgingInstrumentsStillHeldAtPeriodEndAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_ChangeInFairValueRelatingToMortgageLoansStillHeldAtPeriodEnd": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail": {
       "order": 10050.0,
       "parentTag": "pmt_AggregateNonCashPortionOfGainLossOnMortgageLoansAcquiredForSale",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the change in fair value of mortgage loans still held at period end.",
        "label": "Change In Fair Value Relating To Mortgage Loans Still Held At Period End",
        "terseLabel": "Loans"
       }
      }
     },
     "localname": "ChangeInFairValueRelatingToMortgageLoansStillHeldAtPeriodEnd",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_CitibankMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Citibank.",
        "label": "Citibank [Member]",
        "verboseLabel": "Citibank, N.A. [Member]"
       }
      }
     },
     "localname": "CitibankMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_CitigroupGlobalMarketsIncMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Citigroup Global Markets Inc.",
        "label": "Citigroup Global Markets Inc [Member]",
        "terseLabel": "Citigroup Global Markets Inc. [Member]"
       }
      }
     },
     "localname": "CitigroupGlobalMarketsIncMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_CollectionStatusInUnpaidPrincipalBalanceAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Collection status in unpaid principal balance.",
        "label": "Collection Status In Unpaid Principal Balance [Abstract]",
        "terseLabel": "Collection status (in UPB):"
       }
      }
     },
     "localname": "CollectionStatusInUnpaidPrincipalBalanceAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_CommercialRealEstateLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Commercial Real Estate Loans [Member]",
        "label": "Commercial Real Estate Loans [Member]",
        "terseLabel": "Commercial Real Estate [Member]"
       }
      }
     },
     "localname": "CommercialRealEstateLoansMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_CommonStockSharesAvailableForIssuanceValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Common stock shares available for issuance value.",
        "label": "Common Stock Shares Available For Issuance Value",
        "terseLabel": "Common stock shares available for issuance value"
       }
      }
     },
     "localname": "CommonStockSharesAvailableForIssuanceValue",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ComponentsOfNetServicingFeeIncomeLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Components of Net Servicing Fee Income [Line Items]",
        "label": "Components Of Net Servicing Fee Income [Line Items]",
        "terseLabel": "Components of Net Servicing Fee Income [Line Items]"
       }
      }
     },
     "localname": "ComponentsOfNetServicingFeeIncomeLineItems",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_ComponentsOfNetServicingFeeIncomeTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Components of Net Servicing Fee Income [Table]",
        "label": "Components Of Net Servicing Fee Income [Table]",
        "terseLabel": "Components Of Net Servicing Fee Income [Table]"
       }
      }
     },
     "localname": "ComponentsOfNetServicingFeeIncomeTable",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_ConditionalReimbursementOfOfferingCostsPaidToAffiliate": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of reimbursable underwriting fee repaid to PCM during the period.",
        "label": "Conditional Reimbursement Of Offering Costs Paid To Affiliate",
        "terseLabel": "Conditional Reimbursement paid to PCM"
       }
      }
     },
     "localname": "ConditionalReimbursementOfOfferingCostsPaidToAffiliate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfFinancingActivitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ConditionalReimbursementOfOfferingCostsToPayableToAffiliate": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail": {
       "order": 10060.0,
       "parentTag": "us-gaap_DueToAffiliateCurrentAndNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the balance payable pursuant to an agreement with the investment manager pursuant to which the company agreed to reimburse our the investment manager for the payment that it made to the underwriters for the company's initial public offering if the company achieves certain performance measures over a specified period.",
        "label": "Conditional Reimbursement Of Offering Costs To Payable To Affiliate",
        "terseLabel": "Conditional Reimbursement payable to PCM included in Due to PennyMac Financial Services, Inc."
       }
      }
     },
     "localname": "ConditionalReimbursementOfOfferingCostsToPayableToAffiliate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfFinancingActivitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ContingentUnderwritingFeePaymentsToAffiliate": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the amount of payments made to the company's manager of underwriting costs advanced on behalf of the Company pursuant to its IPO during the period.",
        "label": "Contingent Underwriting Fee Payments To Affiliate",
        "verboseLabel": "Reimbursement of contingent underwriting fee to manager"
       }
      }
     },
     "localname": "ContingentUnderwritingFeePaymentsToAffiliate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ContingentUnderwritingFeePaymentsToUnderwriters": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents payments of contingent underwriting fees to underwriters during the period.",
        "label": "Contingent Underwriting Fee Payments To Underwriters",
        "terseLabel": "Payments of contingent underwriting fees to underwriters"
       }
      }
     },
     "localname": "ContingentUnderwritingFeePaymentsToUnderwriters",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ContractuallyRestrictedFromSaleMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Contractually restricted from sale.",
        "label": "Contractually Restricted From Sale [Member]",
        "terseLabel": "Contractually Restricted From Sale Through June 13, 2020 [Member]"
       }
      }
     },
     "localname": "ContractuallyRestrictedFromSaleMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfInvestmentInCRTStripsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_ContractuallyRestrictedFromSaleToMaturityMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Contractually restricted from sale to maturity.",
        "label": "Contractually Restricted From Sale To Maturity [Member]",
        "terseLabel": "Contractually Restricted From Sale To Maturity [Member]"
       }
      }
     },
     "localname": "ContractuallyRestrictedFromSaleToMaturityMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfInvestmentInCRTStripsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_ConventionalAgencyEligibleMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Conventional Agency Eligible [Member]",
        "label": "Conventional Agency Eligible [Member]",
        "terseLabel": "Agency-Eligible [Member]"
       }
      }
     },
     "localname": "ConventionalAgencyEligibleMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_ConventionalJumboLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Conventional Jumbo Loans [Member]",
        "label": "Conventional Jumbo Loans [Member]",
        "terseLabel": "Jumbo [Member]"
       }
      }
     },
     "localname": "ConventionalJumboLoansMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_ConvertibleDebtAverageBalanceDuringPeriod": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the weighted average balance of exchangeable notes outstanding during the period.",
        "label": "Convertible Debt Average Balance During Period",
        "terseLabel": "Average balance"
       }
      }
     },
     "localname": "ConvertibleDebtAverageBalanceDuringPeriod",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesSummaryOfFinancialInformationRelatingToExchangeableSeniorNotesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ConvertibleDebtTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents information relating to the issuance of exchangeable senior notes, including their ending balance, unamortized issuance costs, interest rates and expense for the period.",
        "label": "Convertible Debt [Text Block]",
        "terseLabel": "Exchangeable Senior Notes"
       }
      }
     },
     "localname": "ConvertibleDebtTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotes"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_CorrespondentProductionFeesPayable": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail": {
       "order": 10050.0,
       "parentTag": "us-gaap_DueToAffiliateCurrentAndNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Correspondent production fees payable.",
        "label": "Correspondent Production Fees Payable",
        "terseLabel": "Correspondent production fees"
       }
      }
     },
     "localname": "CorrespondentProductionFeesPayable",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_CorrespondentProductionMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Correspondent Production [Member]",
        "label": "Correspondent Production [Member]",
        "terseLabel": "Correspondent production [Member]"
       }
      }
     },
     "localname": "CorrespondentProductionMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_CreditRiskTransferAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Credit Risk Transfer Agreement [Member]",
        "label": "Credit Risk Transfer Agreement [Member]",
        "terseLabel": "Credit Risk Transfer Agreements [Member]",
        "verboseLabel": "CRT Agreements sold under agreements to repurchase [Member]"
       }
      }
     },
     "localname": "CreditRiskTransferAgreementMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseTables",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_CreditRiskTransferAgreementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Credit risk transfer agreements.",
        "label": "Credit Risk Transfer Agreements [Abstract]",
        "terseLabel": "CRT arrangements"
       }
      }
     },
     "localname": "CreditRiskTransferAgreementsAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_CreditRiskTransferAgreementsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Credit risk transfer agreements.",
        "label": "Credit Risk Transfer Agreements [Member]",
        "terseLabel": "CRT Agreement Derivatives [Member]",
        "verboseLabel": "CRT Agreements [Member]"
       }
      }
     },
     "localname": "CreditRiskTransferAgreementsMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_CreditRiskTransferCreditGuaranteeObligationAssets": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Net derivative asset on credit risk transfer agreements in relation to the credit guarantee obligation",
        "label": "Credit Risk Transfer Credit Guarantee Obligation Assets",
        "terseLabel": "CRT Agreements"
       }
      }
     },
     "localname": "CreditRiskTransferCreditGuaranteeObligationAssets",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_CreditRiskTransferMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Credit risk transfer.",
        "label": "Credit Risk Transfer [Member]",
        "terseLabel": "Credit Risk Transfer Arrangements [Member]"
       }
      }
     },
     "localname": "CreditRiskTransferMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_CreditRiskTransferStripsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Credit risk transfer strips.",
        "label": "Credit Risk Transfer Strips [Member]",
        "terseLabel": "Credit Risk Transfer Strips",
        "verboseLabel": "CRT Strips [Member]"
       }
      }
     },
     "localname": "CreditRiskTransferStripsMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationCreditRiskTransferStripsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_CreditRiskTransferStripsPledgedToCreditors": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Credit risk transfer strips pledged to creditors.",
        "label": "Credit Risk Transfer Strips Pledged To Creditors",
        "terseLabel": "Credit risk transfer strips"
       }
      }
     },
     "localname": "CreditRiskTransferStripsPledgedToCreditors",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_CreditSensitiveStrategiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Credit sensitive strategies.",
        "label": "Credit Sensitive Strategies [Member]",
        "terseLabel": "Credit Sensitive Strategies [Member]"
       }
      }
     },
     "localname": "CreditSensitiveStrategiesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_CreditSuisseFirstBostonMortgageMaturityInTwoThousandTwentyMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Credit suisse first boston mortgage maturity in two thousand twenty.",
        "label": "Credit Suisse First Boston Mortgage Maturity In Two Thousand Twenty [Member]",
        "terseLabel": "Credit Suisse First Boston Mortgage Capital LLC Maturity in 2020 [Member]"
       }
      }
     },
     "localname": "CreditSuisseFirstBostonMortgageMaturityInTwoThousandTwentyMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_CreditSuisseFirstBostonMortgageMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Credit Suisse first Boston mortgage.",
        "label": "Credit Suisse First Boston Mortgage [Member]",
        "terseLabel": "Credit Suisse First Boston Mortgage"
       }
      }
     },
     "localname": "CreditSuisseFirstBostonMortgageMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_CreditSuisseSecuritiesUSALLCMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Credit Suisse Securities (USA) LLC.",
        "label": "Credit Suisse Securities U S A L L C [Member]",
        "terseLabel": "Credit Suisse Securities (USA) LLC [Member]"
       }
      }
     },
     "localname": "CreditSuisseSecuritiesUSALLCMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_CumulativeDividendsFromDateOfOriginalIssuanceToMarchFourteenTwoThousandTwentyFourMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Cumulative Dividends From Date Of Original Issuance To March Fourteen Two Thousand Twenty Four.",
        "label": "Cumulative Dividends From Date Of Original Issuance To March Fourteen Two Thousand Twenty Four [Member]",
        "terseLabel": "Date Of Original Issuance To March 14,2024 [Member]"
       }
      }
     },
     "localname": "CumulativeDividendsFromDateOfOriginalIssuanceToMarchFourteenTwoThousandTwentyFourMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_CumulativeDividendsFromMarchFifteenTwoThousandTwentyFourAndThereafterMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Cumulative Dividends From March Fifteen Two Thousand Twenty Four And Thereafter.",
        "label": "Cumulative Dividends From March Fifteen Two Thousand Twenty Four And Thereafter [Member]",
        "terseLabel": "March 15,2024 and Thereafter [member]"
       }
      }
     },
     "localname": "CumulativeDividendsFromMarchFifteenTwoThousandTwentyFourAndThereafterMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_CumulativeEffectOnAccumulatedDeficitOfConversionToFairValueAccountingForMortgageServicingRights": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Cumulative effect on accumulated deficit of conversion to fair value accounting for mortgage servicing rights.",
        "label": "Cumulative Effect On Accumulated Deficit Of Conversion To Fair Value Accounting For Mortgage Servicing Rights",
        "terseLabel": "Cumulative effect on accumulated deficit of conversion to fair value accounting for mortgage servicing rights"
       }
      }
     },
     "localname": "CumulativeEffectOnAccumulatedDeficitOfConversionToFairValueAccountingForMortgageServicingRights",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationSummaryOfSupplementalCashFlowInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DaiwaCapitalMarketsAmericaIncMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Daiwa Capital Markets America, Inc. [Member]",
        "label": "Daiwa Capital Markets America Inc [Member]",
        "terseLabel": "Daiwa Capital Markets [Member]"
       }
      }
     },
     "localname": "DaiwaCapitalMarketsAmericaIncMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_DebtInstrumentExtendedMaturityDateSubjectToTermNoteIndenture": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Debt instrument extended maturity date subject to term note indenture.",
        "label": "Debt Instrument Extended Maturity Date Subject To Term Note Indenture",
        "terseLabel": "Debt instrument extended maturity date subject to term note indenture"
       }
      }
     },
     "localname": "DebtInstrumentExtendedMaturityDateSubjectToTermNoteIndenture",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "pmt_DebtInstrumentFairValueCarryingValueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Debt Instrument Fair Value Carrying Value [Abstract]",
        "label": "Debt Instrument Fair Value Carrying Value [Abstract]"
       }
      }
     },
     "localname": "DebtInstrumentFairValueCarryingValueAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "xbrltype": "stringItemType"
    },
    "pmt_DebtInstrumentPayableStartDate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Debt instrument payable start date.",
        "label": "Debt Instrument Payable Start Date",
        "terseLabel": "Debt instrument payable start date"
       }
      }
     },
     "localname": "DebtInstrumentPayableStartDate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail"
     ],
     "xbrltype": "gYearMonthItemType"
    },
    "pmt_DelinquentAmountAtEndOfPeriodOnLoansManagedAndSecuritizedNinetyDaysOrMoreInForeclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Delinquent amount at end of period on loans managed and securitized ninety days or more in foreclosure or bankruptcy.",
        "label": "Delinquent Amount At End Of Period On Loans Managed And Securitized Ninety Days Or More In Foreclosure",
        "terseLabel": "In foreclosure"
       }
      }
     },
     "localname": "DelinquentAmountAtEndOfPeriodOnLoansManagedAndSecuritizedNinetyDaysOrMoreInForeclosure",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCollectionStatusInformationForLoansAccountedForSalesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DelinquentAmountAtEndOfPeriodOnLoansManagedAndSecuritizedNinetyDaysOrMoreNotInForeclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Delinquent amount at end of period on loans managed and securitized ninety days or more not in foreclosure or bankruptcy.",
        "label": "Delinquent Amount At End Of Period On Loans Managed And Securitized Ninety Days Or More Not In Foreclosure",
        "terseLabel": "Not in foreclosure"
       }
      }
     },
     "localname": "DelinquentAmountAtEndOfPeriodOnLoansManagedAndSecuritizedNinetyDaysOrMoreNotInForeclosure",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCollectionStatusInformationForLoansAccountedForSalesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DelinquentAmountAtEndOfPeriodOnLoansManagedAndSecuritizedNinetyToOneHundredAndEighty": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Delinquent amount at end of period on loans managed and securitized ninety to one hundred and eighty.",
        "label": "Delinquent Amount At End Of Period On Loans Managed And Securitized Ninety To One Hundred And Eighty",
        "terseLabel": "90\u2014180 days delinquent"
       }
      }
     },
     "localname": "DelinquentAmountAtEndOfPeriodOnLoansManagedAndSecuritizedNinetyToOneHundredAndEighty",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DelinquentAmountAtEndOfPeriodOnLoansManagedAndSecuritizedOneHundredAndEightyOrMoreDaysNotInForeclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Delinquent amount at end of period on loans managed and securitized one hundred and eighty or more days not in foreclosure.",
        "label": "Delinquent Amount At End Of Period On Loans Managed And Securitized One Hundred And Eighty Or More Days Not In Foreclosure",
        "verboseLabel": "180 or more days delinquent"
       }
      }
     },
     "localname": "DelinquentAmountAtEndOfPeriodOnLoansManagedAndSecuritizedOneHundredAndEightyOrMoreDaysNotInForeclosure",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DelinquentAmountAtEndOfPeriodOnLoansManagedAndSecuritizedThirtyToEightyNineDays": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Delinquent amount at end of period on loans managed and securitized thirty to eighty nine days.",
        "label": "Delinquent Amount At End Of Period On Loans Managed And Securitized Thirty To Eighty Nine Days",
        "terseLabel": "30\u201489 days delinquent"
       }
      }
     },
     "localname": "DelinquentAmountAtEndOfPeriodOnLoansManagedAndSecuritizedThirtyToEightyNineDays",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DelinquentAmountAtEndOfPeriodOnLoansManagedAndSecuritizedThirtyToEightyNineDaysDelinquent": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Delinquent Amount At End Of Period On Loans Managed And Securitized Thirty To Eighty Nine Days Delinquent",
        "label": "Delinquent Amount At End Of Period On Loans Managed And Securitized Thirty To Eighty Nine Days Delinquent",
        "terseLabel": "30-89 days delinquent"
       }
      }
     },
     "localname": "DelinquentAmountAtEndOfPeriodOnLoansManagedAndSecuritizedThirtyToEightyNineDaysDelinquent",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCollectionStatusInformationForLoansAccountedForSalesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DepositsOfCashSecuringCreditRiskTransferAgreements": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10310.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Deposits of cash securing credit risk transfer agreements.",
        "label": "Deposits Of Cash Securing Credit Risk Transfer Agreements",
        "negatedLabel": "Deposit of cash securing credit risk transfer arrangements"
       }
      }
     },
     "localname": "DepositsOfCashSecuringCreditRiskTransferAgreements",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DepositsOfCashSecuringCreditRiskTransferAgreementsNetOfAdjustment": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Deposits of cash securing credit risk transfer agreements net of adjustment.",
        "label": "Deposits Of Cash Securing Credit Risk Transfer Agreements Net Of Adjustment",
        "totalLabel": "Deposits of cash securing credit risk transfer agreements net of adjustment"
       }
      }
     },
     "localname": "DepositsOfCashSecuringCreditRiskTransferAgreementsNetOfAdjustment",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DepositsOfCashSecuringCreditRiskTransferArrangements": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail": {
       "order": 10110.0,
       "parentTag": "pmt_DepositsOfCashSecuringCreditRiskTransferAgreementsNetOfAdjustment",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Deposits of cash securing credit risk transfer arrangements.",
        "label": "Deposits Of Cash Securing Credit Risk Transfer Arrangements",
        "terseLabel": "Deposits securing CRT arrangements"
       }
      }
     },
     "localname": "DepositsOfCashSecuringCreditRiskTransferArrangements",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DepositsPledgedToCreditors": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Deposits pledged to creditors.",
        "label": "Deposits Pledged To Creditors",
        "verboseLabel": "Deposits securing CRT arrangements"
       }
      }
     },
     "localname": "DepositsPledgedToCreditors",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DepositsSecuringCreditRiskTransferAgreements": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10370.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents cash deposited to secure the company's obligation under credit risk transfer agreements.",
        "label": "Deposits Securing Credit Risk Transfer Agreements",
        "terseLabel": "Deposits securing credit risk transfer arrangements pledged to creditors",
        "verboseLabel": "Deposits securing credit risk transfer agreements"
       }
      }
     },
     "localname": "DepositsSecuringCreditRiskTransferAgreements",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DepositsSecuringCreditRiskTransferAgreementsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Deposits securing credit risk transfer agreements.",
        "label": "Deposits Securing Credit Risk Transfer Agreements [Member]",
        "terseLabel": "Deposits securing CRT Agreements [Member]"
       }
      }
     },
     "localname": "DepositsSecuringCreditRiskTransferAgreementsMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_DerivativeAcquiredDuringPeriodNotionalAmount": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Derivative Acquired During Period Notional Amount",
        "label": "Derivative Acquired During Period Notional Amount",
        "terseLabel": "Additions"
       }
      }
     },
     "localname": "DerivativeAcquiredDuringPeriodNotionalAmount",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DerivativeAndCreditRiskTransferStripAssets": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10330.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Derivative and credit risk transfer strip assets.",
        "label": "Derivative And Credit Risk Transfer Strip Assets",
        "terseLabel": "Derivative and credit risk transfer strip assets (includes $160,156 and $87,976 pledged to creditors, respectively)"
       }
      }
     },
     "localname": "DerivativeAndCreditRiskTransferStripAssets",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DerivativeAndCreditRiskTransferStripAssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Derivative and credit risk transfer strip assets.",
        "label": "Derivative And Credit Risk Transfer Strip Assets [Abstract]",
        "terseLabel": "Derivative and credit risk transfer strip assets:"
       }
      }
     },
     "localname": "DerivativeAndCreditRiskTransferStripAssetsAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_DerivativeArisingFromDerivativeContractsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Derivative arising from derivative contracts.",
        "label": "Derivative Arising From Derivative Contracts [Member]",
        "terseLabel": "Derivative Arising From Derivative Contracts [Member]"
       }
      }
     },
     "localname": "DerivativeArisingFromDerivativeContractsMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsTables"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_DerivativeAssetNetting": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Adjustment to net fair value amounts recognized for derivative instruments and fair value amounts recognized arising from derivative instrument(s) recognized at fair value executed with the same counterparty under a master netting arrangement.",
        "label": "Derivative Asset Netting",
        "negatedLabel": "Net amounts of assets presented in the consolidated balance sheet"
       }
      }
     },
     "localname": "DerivativeAssetNetting",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DerivativeAssetsPledgedToCreditors": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Derivative assets pledged to creditors.",
        "label": "Derivative Assets Pledged To Creditors",
        "positiveLabel": "Derivative assets",
        "terseLabel": "Derivative assets, pledged to creditors"
       }
      }
     },
     "localname": "DerivativeAssetsPledgedToCreditors",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DerivativeAssetsRelatedToCreditRiskTransferAgreementsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Derivative assets related to credit risk transfer agreements.",
        "label": "Derivative Assets Related To Credit Risk Transfer Agreements [Member]",
        "terseLabel": "Derivative assets related to CRT Agreements [Member]"
       }
      }
     },
     "localname": "DerivativeAssetsRelatedToCreditRiskTransferAgreementsMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_DerivativeDispositionsOrExpirationsDuringPeriodNotionalAmount": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Derivative Dispositions Or Expirations During Period Notional Amount",
        "label": "Derivative Dispositions Or Expirations During Period Notional Amount",
        "negatedLabel": "Dispositions/expirations"
       }
      }
     },
     "localname": "DerivativeDispositionsOrExpirationsDuringPeriodNotionalAmount",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DerivativeLiabilitiesBeforeNettingMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Derivative Liabilities Before Netting [Member]",
        "label": "Derivative Liabilities Before Netting [Member]",
        "terseLabel": "Derivative Liabilities Before Netting [Member]"
       }
      }
     },
     "localname": "DerivativeLiabilitiesBeforeNettingMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_DerivativesNotSubjectToMasterNettingAdjustmentMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Derivatives Not Subject To Master Netting Adjustment [Member)",
        "label": "Derivatives Not Subject To Master Netting Adjustment [Member]",
        "terseLabel": "Derivatives Not Subject To Master Netting Adjustment [Member]"
       }
      }
     },
     "localname": "DerivativesNotSubjectToMasterNettingAdjustmentMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_DerivativesSubjectToMasterNettingAdjustmentMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Derivatives Subject To Master Netting Adjustment [Member)",
        "label": "Derivatives Subject To Master Netting Adjustment [Member]",
        "terseLabel": "Derivatives Subject to Master Netting Arrangements [Member]"
       }
      }
     },
     "localname": "DerivativesSubjectToMasterNettingAdjustmentMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_DeutscheBankMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Deutsche Bank.",
        "label": "Deutsche Bank [Member]",
        "terseLabel": "Deutsche Bank [Member]"
       }
      }
     },
     "localname": "DeutscheBankMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_DeutscheBankSecuritiesLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Deutsche Bank Securities LLC.",
        "label": "Deutsche Bank Securities L L C [Member]",
        "terseLabel": "Deutsche Bank Securities LLC [Member]"
       }
      }
     },
     "localname": "DeutscheBankSecuritiesLLCMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_DistributionsFromCreditRiskTransferAgreements": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10300.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents amounts received relating to investments in credit risk transfer agreements.",
        "label": "Distributions From Credit Risk Transfer Agreements",
        "terseLabel": "Distribution from credit risk transfer agreements"
       }
      }
     },
     "localname": "DistributionsFromCreditRiskTransferAgreements",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_DocumentAndEntityInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Document And Entity Information [Abstract]",
        "label": "Document And Entity Information [Abstract]"
       }
      }
     },
     "localname": "DocumentAndEntityInformationAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "xbrltype": "stringItemType"
    },
    "pmt_EffectOfMortgageServicingRightsFairValueChangesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Effect of mortgage servicing rights fair value changes.",
        "label": "Effect Of Mortgage Servicing Rights Fair Value Changes [Abstract]",
        "terseLabel": "Effect of MSRs fair value changes:"
       }
      }
     },
     "localname": "EffectOfMortgageServicingRightsFairValueChangesAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_EffectOnValueOfFivePercentageAdverseChangeMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Effect on value of 5% adverse change.",
        "label": "Effect On Value Of Five Percentage Adverse Change [Member]",
        "terseLabel": "Effect On Value Of Five Percentage Adverse Change"
       }
      }
     },
     "localname": "EffectOnValueOfFivePercentageAdverseChangeMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_EffectOnValueOfTenPercentageAdverseChangeMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Effect on value of 10% adverse change.",
        "label": "Effect On Value Of Ten Percentage Adverse Change [Member]",
        "terseLabel": "Effect On Value Of Ten Percentage Adverse Change"
       }
      }
     },
     "localname": "EffectOnValueOfTenPercentageAdverseChangeMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_EffectOnValueOfTwentyPercentageAdverseChangeMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Effect on value of 20% adverse change.",
        "label": "Effect On Value Of Twenty Percentage Adverse Change [Member]",
        "terseLabel": "Effect On Value Of Twenty Percentage Adverse Change"
       }
      }
     },
     "localname": "EffectOnValueOfTwentyPercentageAdverseChangeMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_EquityDistributionAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Equity Distribution Agreement.",
        "label": "Equity Distribution Agreement [Member]",
        "terseLabel": "Equity Distribution Agreement [Member]"
       }
      }
     },
     "localname": "EquityDistributionAgreementMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfActivitiesUnderATMEquityOfferingProgramDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_EstablishedPercentageOfUnpaidPrincipalBalanceOfMortgageLoansSoldUnderRecourseObligationLosses": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Established percentage of unpaid principal balance of mortgage loans sold under recourse obligation losses.",
        "label": "Established Percentage Of Unpaid Principal Balance Of Mortgage Loans Sold Under Recourse Obligation Losses",
        "terseLabel": "Initially established percentage of unpaid principal balance of loans sold under recourse obligation losses"
       }
      }
     },
     "localname": "EstablishedPercentageOfUnpaidPrincipalBalanceOfMortgageLoansSoldUnderRecourseObligationLosses",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_EstimatedFairValueOfMortgageLoanApprovalRate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Estimated fair value of mortgage loan approval rate.",
        "label": "Estimated Fair Value Of Mortgage Loan Approval Rate",
        "terseLabel": "Ratio included in estimated fair value"
       }
      }
     },
     "localname": "EstimatedFairValueOfMortgageLoanApprovalRate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_EurodollarFutureSalesContractsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Eurodollar Future Sales Contracts [Member]",
        "label": "Eurodollar Future Sales Contracts [Member]",
        "terseLabel": "Eurodollar Future Sale Contracts [Member]"
       }
      }
     },
     "localname": "EurodollarFutureSalesContractsMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_ExcessServiceSpreadRecaptureCashSettlementOptionLimit": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Excess service spread recapture cash settlement option limit.",
        "label": "Excess Service Spread Recapture Cash Settlement Option Limit",
        "terseLabel": "Aggregate ESS transferred"
       }
      }
     },
     "localname": "ExcessServiceSpreadRecaptureCashSettlementOptionLimit",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ExcessServiceSpreadRecaptureOfMinimumPercentageLoanFeeRateAndUnpaidPrincipalBalanceModifiedMortgageLoans": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Excess service spread recapture of minimum percentage loan fee rate and unpaid principal balance modified mortgage loans.",
        "label": "Excess Service Spread Recapture Of Minimum Percentage Loan Fee Rate And Unpaid Principal Balance Modified Mortgage Loans",
        "terseLabel": "Recapture percentage loan fee rate and unpaid principal balance modified loans"
       }
      }
     },
     "localname": "ExcessServiceSpreadRecaptureOfMinimumPercentageLoanFeeRateAndUnpaidPrincipalBalanceModifiedMortgageLoans",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_ExcessServiceSpreadRecaptureOfMinimumPercentageLoanFeeRateAndUnpaidPrincipalBalanceRefinanceMortgageLoans": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Excess service spread recapture of minimum percentage loan fee rate and unpaid principal balance refinance mortgage loans.",
        "label": "Excess Service Spread Recapture Of Minimum Percentage Loan Fee Rate And Unpaid Principal Balance Refinance Mortgage Loans",
        "terseLabel": "Recapture percentage loan fee rate and unpaid principal balance refinance loans"
       }
      }
     },
     "localname": "ExcessServiceSpreadRecaptureOfMinimumPercentageLoanFeeRateAndUnpaidPrincipalBalanceRefinanceMortgageLoans",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_ExcessServicingSpreadAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Excess Servicing Spread [Abstract]",
        "label": "Excess Servicing Spread [Abstract]",
        "terseLabel": "ESS:"
       }
      }
     },
     "localname": "ExcessServicingSpreadAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_ExcessServicingSpreadAnnualRate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the excess servicing spread in basis points to which the company is contractually entitled to receive as a result of the purchase of such right from an affiliate.",
        "label": "Excess Servicing Spread Annual Rate",
        "terseLabel": "Average ESS rate (in basis points)"
       }
      }
     },
     "localname": "ExcessServicingSpreadAnnualRate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_ExcessServicingSpreadAtFairValueAssumptionsUsedToEstimateFairValueDiscountRate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Excess servicing spread at fair value assumptions used to estimate fair value discount rate.",
        "label": "Excess Servicing Spread At Fair Value Assumptions Used To Estimate Fair Value Discount Rate",
        "terseLabel": "Annual total prepayment speed"
       }
      }
     },
     "localname": "ExcessServicingSpreadAtFairValueAssumptionsUsedToEstimateFairValueDiscountRate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_ExcessServicingSpreadAtFairValueAssumptionsUsedToEstimateFairValueWeightedAverageLife": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Excess servicing spread at fair value assumptions used to estimate fair value weighted average life.",
        "label": "Excess Servicing Spread At Fair Value Assumptions Used To Estimate Fair Value Weighted Average Life",
        "terseLabel": "Life (in years)"
       }
      }
     },
     "localname": "ExcessServicingSpreadAtFairValueAssumptionsUsedToEstimateFairValueWeightedAverageLife",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "pmt_ExcessServicingSpreadRebateFromAffiliates": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_GainLossOnInvestments",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Excess Servicing Spread Rebate From Affiliates",
        "label": "Excess Servicing Spread Rebate From Affiliates",
        "terseLabel": "Recapture income"
       }
      }
     },
     "localname": "ExcessServicingSpreadRebateFromAffiliates",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ExcessServicingSpreadRecaptureReceivedAsExcessServicingSpread": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents excess servicing spread recapture received by the Company in settlement of its recapture agreement with an affiliate in compensation for the affiliate's refinancing of mortgage loans underlying excess servicing spread assets.",
        "label": "Excess Servicing Spread Recapture Received As Excess Servicing Spread",
        "terseLabel": "Received pursuant to a recapture agreement",
        "verboseLabel": "ESS received pursuant to a recapture agreement with PFSI"
       }
      }
     },
     "localname": "ExcessServicingSpreadRecaptureReceivedAsExcessServicingSpread",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ExcessSpreadInvestment": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": 10100.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10320.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The balance represents the fair value of the contractual right to receive a portion of servicing fee revenue relating to MSRs.",
        "label": "Excess Spread Investment",
        "positiveLabel": "Excess servicing spread purchased from PFSI",
        "terseLabel": "Excess servicing spread purchased from PennyMac Financial Services, Inc. at fair value pledged to secure Assets sold to PennyMac Financial Services, Inc. under agreements to repurchase",
        "verboseLabel": "Excess servicing spread purchased from PennyMac Financial Services, Inc. at fair value"
       }
      }
     },
     "localname": "ExcessSpreadInvestment",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ExcessSpreadInvestmentMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Excess Spread Investment [Member]",
        "label": "Excess Spread Investment [Member]",
        "terseLabel": "Excess servicing spread [Member]"
       }
      }
     },
     "localname": "ExcessSpreadInvestmentMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_ExchangeableSeniorNotesDueTwoThousandAndTwentyMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Exchangeable Senior Notes due Two Thousand and Twenty [Member]",
        "label": "Exchangeable Senior Notes Due Two Thousand And Twenty [Member]",
        "terseLabel": "Exchangeable Senior Notes due May 1, 2020 [Member]"
       }
      }
     },
     "localname": "ExchangeableSeniorNotesDueTwoThousandAndTwentyMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_ExchangeableSeniorNotesPerNotePrincipalAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Exchangeable Senior Notes Per Note Principal Amount",
        "label": "Exchangeable Senior Notes Per Note Principal Amount",
        "terseLabel": "Principal amount of the exchangeable notes"
       }
      }
     },
     "localname": "ExchangeableSeniorNotesPerNotePrincipalAmount",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FaceAmountOfFirmCommitmentToPurchaseCreditRiskTransferSecurities": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Face amount of firm commitment to purchase credit risk transfer securities.",
        "label": "Face Amount Of Firm Commitment To Purchase Credit Risk Transfer Securities",
        "terseLabel": "Face amount of firm commitment to purchase credit risk transfer securities"
       }
      }
     },
     "localname": "FaceAmountOfFirmCommitmentToPurchaseCreditRiskTransferSecurities",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureCommitmentsAndContingenciesCompanySOutstandingContractualCommitmentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FaceAmountOfMortgageLoansSubjectToFirmCommitmentToPurchaseCreditRiskTransferSecurities": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Face amount of mortgage loans subject to firm commitment to purchase credit risk transfer securities.",
        "label": "Face Amount Of Mortgage Loans Subject To Firm Commitment To Purchase Credit Risk Transfer Securities",
        "terseLabel": "Face amount of firm commitment to purchase CRT securities"
       }
      }
     },
     "localname": "FaceAmountOfMortgageLoansSubjectToFirmCommitmentToPurchaseCreditRiskTransferSecurities",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueAssetsGainsLossesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair Value Assets Gains Losses [Member]",
        "label": "Fair Value Assets Gains Losses [Member]",
        "terseLabel": "Assets, Total [Member]"
       }
      }
     },
     "localname": "FairValueAssetsGainsLossesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_FairValueInputCostOfServicingMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Cost of servicing.",
        "label": "Fair Value Input Cost Of Servicing [Member]",
        "terseLabel": "Cost of Servicing [Member]"
       }
      }
     },
     "localname": "FairValueInputCostOfServicingMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_FairValueInputEffectOnValueOfPercentageAdverseChange": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Effect on fair value of MSRs carried at fair value of a specified adverse change in the value of an input.",
        "label": "Fair Value Input Effect On Value Of Percentage Adverse Change",
        "negatedLabel": "Effect on value of percentage adverse change, Fair value input"
       }
      }
     },
     "localname": "FairValueInputEffectOnValueOfPercentageAdverseChange",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueInputPrepaymentSpeedMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Prepayment speed.",
        "label": "Fair Value Input Prepayment Speed [Member]",
        "terseLabel": "Prepayment Speed [Member]"
       }
      }
     },
     "localname": "FairValueInputPrepaymentSpeedMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_FairValueInputPricingSpreadMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Pricing spread.",
        "label": "Fair Value Input Pricing Spread [Member]",
        "terseLabel": "Pricing Spread [Member]"
       }
      }
     },
     "localname": "FairValueInputPricingSpreadMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_FairValueInputWeightedAverageLife": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the average life of the ESS asset based on its prepayment speed input.",
        "label": "Fair Value Input Weighted Average Life",
        "verboseLabel": "Estimated fair value inputs, Life (in years)"
       }
      }
     },
     "localname": "FairValueInputWeightedAverageLife",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "pmt_FairValueInputsAndSensitivityAnalysisOfFairValueAdverseChangeInAssumptionsAtPeriodEndTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair Value Inputs And Sensitivity Analysis Of Fair Value Adverse Change In Assumptions At Period End [Table Text Block]",
        "label": "Fair Value Inputs And Sensitivity Analysis Of Fair Value Adverse Change In Assumptions At Period End Table [Text Block]",
        "terseLabel": "Quantitative Summary of Key Assumptions Used in Valuation of MSRs as of Dates Presented, and Effect on Estimated Fair Value from Adverse Changes in Those Inputs"
       }
      }
     },
     "localname": "FairValueInputsAndSensitivityAnalysisOfFairValueAdverseChangeInAssumptionsAtPeriodEndTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_FairValueInputsAnnualPerLoanCostOfServicing": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Annual per loan cost of servicing.fair value input relating to mortgage loans underlying MSRs accounted for at fair value.",
        "label": "Fair Value Inputs Annual Per Loan Cost Of Servicing",
        "terseLabel": "Estimated fair value inputs, Annual per-loan cost of servicing"
       }
      }
     },
     "localname": "FairValueInputsAnnualPerLoanCostOfServicing",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueInputsAnnualPerLoanCostOfServicingDuringPeriod": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Annual per-loan cost to service input applied to MSR cash flows in estimating the value of new MSRs carried at fair value during the period.",
        "label": "Fair Value Inputs Annual Per Loan Cost Of Servicing During Period",
        "terseLabel": "Fair value inputs, Annual per loan cost of servicing during period"
       }
      }
     },
     "localname": "FairValueInputsAnnualPerLoanCostOfServicingDuringPeriod",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueKeyAssumptionsUsedInDeterminingFairValueOfMsrsAtTimeOfInitialRecognitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueInputsAnnualPrepaymentSpeed": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value inputs, annual total prepayment speed.",
        "label": "Fair Value Inputs Annual Prepayment Speed",
        "verboseLabel": "Estimated fair value inputs, Prepayment speed"
       }
      }
     },
     "localname": "FairValueInputsAnnualPrepaymentSpeed",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_FairValueInputsInvoluntaryPrepaymentSpeed": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value inputs involuntary prepayment speed.",
        "label": "Fair Value Inputs Involuntary Prepayment Speed",
        "terseLabel": "Key inputs used in fair value for CRT agreements"
       }
      }
     },
     "localname": "FairValueInputsInvoluntaryPrepaymentSpeed",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_FairValueInputsPrepaymentSpeedDuringPeriod": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Prepayment speed input applied to MSR cash flows in estimating the value of new MSRs carried at fair value during the period.",
        "label": "Fair Value Inputs Prepayment Speed During Period",
        "terseLabel": "Fair value inputs, Prepayment speed during period"
       }
      }
     },
     "localname": "FairValueInputsPrepaymentSpeedDuringPeriod",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueKeyAssumptionsUsedInDeterminingFairValueOfMsrsAtTimeOfInitialRecognitionDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_FairValueInputsPricingSpread": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value inputs pricing spread.",
        "label": "Fair Value Inputs Pricing Spread",
        "terseLabel": "Estimated fair value inputs, Pricing spread"
       }
      }
     },
     "localname": "FairValueInputsPricingSpread",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_FairValueInputsPricingSpreadDuringPeriod": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Pricing spread applied to reference discount rate applied to ESS cash flows in estimating the value of ESS added during the period.",
        "label": "Fair Value Inputs Pricing Spread During Period",
        "verboseLabel": "Fair value inputs, Pricing spread during period"
       }
      }
     },
     "localname": "FairValueInputsPricingSpreadDuringPeriod",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueKeyAssumptionsUsedInDeterminingFairValueOfMsrsAtTimeOfInitialRecognitionDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_FairValueInputsRemainingLossExpectation": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value inputs remaining loss expectation.",
        "label": "Fair Value Inputs Remaining Loss Expectation",
        "terseLabel": "Key inputs used in fair value for CRT agreements"
       }
      }
     },
     "localname": "FairValueInputsRemainingLossExpectation",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_FairValueInputsVoluntaryPrepaymentSpeed": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value inputs voluntary prepayment speed.",
        "label": "Fair Value Inputs Voluntary Prepayment Speed",
        "terseLabel": "Key inputs used in fair value for CRT agreements"
       }
      }
     },
     "localname": "FairValueInputsVoluntaryPrepaymentSpeed",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_FairValueInputsWeightedAverageLifeDuringPeriod": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average life input applied to MSR cash flows in estimating the value of MSRs carried at fair value added during the period.",
        "label": "Fair Value Inputs Weighted Average Life During Period",
        "terseLabel": "Fair value inputs, Weighted average life during period"
       }
      }
     },
     "localname": "FairValueInputsWeightedAverageLifeDuringPeriod",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueKeyAssumptionsUsedInDeterminingFairValueOfMsrsAtTimeOfInitialRecognitionDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "pmt_FairValueLiabilitiesAdjustmentDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value liabilities adjustment.",
        "label": "Fair Value Liabilities Adjustment Disclosure [Abstract]",
        "terseLabel": "Changes in fair value included in income arising from:"
       }
      }
     },
     "localname": "FairValueLiabilitiesAdjustmentDisclosureAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_FairValueLiabilitiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value liabilities.",
        "label": "Fair Value Liabilities [Member]",
        "terseLabel": "Liabilities, Total [Member]"
       }
      }
     },
     "localname": "FairValueLiabilitiesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesAndIssuances": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair Value Measurement with Unobservable Inputs Reconciliation Recurring Basis Asset Purchases And Issuances",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Purchases And Issuances",
        "terseLabel": "Purchases and issuances"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesAndIssuances",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSalesAndSettlements": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value measurement with unobservable inputs reconciliation recurring basis asset sales and settlements.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Sales And Settlements",
        "negatedLabel": "Repayments and sales"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSalesAndSettlements",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisCapitalizationOfAdvances": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value measurement with unobservable inputs reconciliation recurring basis capitalization of advances.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Capitalization Of Advances",
        "terseLabel": "Capitalization of advances"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisCapitalizationOfAdvances",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisCapitalizationOfInterestAndFees": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value measurement with unobservable inputs reconciliation recurring basis capitalization of interest and fees.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Capitalization Of Interest And Fees",
        "terseLabel": "Capitalization of interest and fees"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisCapitalizationOfInterestAndFees",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueOfFirmCommitmentRecognizedInGainOnSaleOfMortgageLoans": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of firm commitment recognized in gain on sale of mortgage loans.",
        "label": "Fair Value Of Firm Commitment Recognized In Gain On Sale Of Mortgage Loans",
        "verboseLabel": "Initial firm commitment recognized gain allocated to net gain on loans acquired for sale"
       }
      }
     },
     "localname": "FairValueOfFirmCommitmentRecognizedInGainOnSaleOfMortgageLoans",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentParentheticalDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueOfFirmCommitmentToPurchaseCreditRiskTransferSecuritiesRecognizedUponSaleOfLoans": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail": {
       "order": 10030.0,
       "parentTag": "us-gaap_InterestIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of firm commitment to purchase credit risk transfer securities recognized upon sale of loans.",
        "label": "Fair Value Of Firm Commitment To Purchase Credit Risk Transfer Securities Recognized Upon Sale Of Loans",
        "terseLabel": "Fair value of firm commitment to purchase CRT securities recognized upon sale of loans"
       }
      }
     },
     "localname": "FairValueOfFirmCommitmentToPurchaseCreditRiskTransferSecuritiesRecognizedUponSaleOfLoans",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueOfPerformingAndNonperformingLoansAgreedToSell": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of performing and nonperforming loans agreed to sell.",
        "label": "Fair Value Of Performing And Nonperforming Loans Agreed To Sell",
        "terseLabel": "Fair value of performing and nonperforming loans agreed to sell"
       }
      }
     },
     "localname": "FairValueOfPerformingAndNonperformingLoansAgreedToSell",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueOptionLoansHeldAsAssetsAggregateFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail": {
       "order": 10140.0,
       "parentTag": "us-gaap_MortgageLoansOnRealEstate",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total fair value of mortgage loans carried at fair value under the fair value option.",
        "label": "Fair Value Option Loans Held As Assets Aggregate Fair Value",
        "totalLabel": "Fair value"
       }
      }
     },
     "localname": "FairValueOptionLoansHeldAsAssetsAggregateFairValue",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueOptionLoansHeldAsAssetsInForeclosureAggregateDifference": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail": {
       "order": 10030.0,
       "parentTag": "us-gaap_FairValueOptionLoansHeldAsAssetsAggregateDifference",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate difference between fair value and unpaid principal balance mortgage loans carried at fair value under the fair value option, more than 90 days past due and in foreclosure.",
        "label": "Fair Value Option Loans Held As Assets In Foreclosure Aggregate Difference",
        "terseLabel": "90 or more days delinquent, in foreclosure"
       }
      }
     },
     "localname": "FairValueOptionLoansHeldAsAssetsInForeclosureAggregateDifference",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueOptionLoansHeldAsAssetsInForeclosureAggregateFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail": {
       "order": 10160.0,
       "parentTag": "pmt_FairValueOptionLoansHeldAsAssetsAggregateFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of mortgage loans carried at fair value under the fair value option, more than 90 days past due and in foreclosure.",
        "label": "Fair Value Option Loans Held As Assets In Foreclosure Aggregate Fair Value",
        "terseLabel": "90 or more days delinquent, in foreclosure"
       }
      }
     },
     "localname": "FairValueOptionLoansHeldAsAssetsInForeclosureAggregateFairValue",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueOptionLoansHeldAsAssetsNinetyDaysOrLessPastDue": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail": {
       "order": 10130.0,
       "parentTag": "us-gaap_MortgageLoansOnRealEstate",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of mortgage loans carried at fair value under the fair value option and less than 90 days past due.",
        "label": "Fair Value Option Loans Held As Assets Ninety Days Or Less Past Due",
        "terseLabel": "Current through 89 days delinquent:"
       }
      }
     },
     "localname": "FairValueOptionLoansHeldAsAssetsNinetyDaysOrLessPastDue",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueOptionLoansHeldAsAssetsNinetyDaysOrLessPastDueAggregateDifference": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_FairValueOptionLoansHeldAsAssetsAggregateDifference",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate difference between fair value and unpaid principal balance mortgage loans carried at fair value under the fair value option and less than 90 days past due.",
        "label": "Fair Value Option Loans Held As Assets Ninety Days Or Less Past Due Aggregate Difference",
        "terseLabel": "Current through 89 days delinquent:"
       }
      }
     },
     "localname": "FairValueOptionLoansHeldAsAssetsNinetyDaysOrLessPastDueAggregateDifference",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueOptionLoansHeldAsAssetsNotInForeclosureAggregateDifference": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_FairValueOptionLoansHeldAsAssetsAggregateDifference",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate difference between fair value and unpaid principal balance mortgage loans carried at fair value under the fair value option, more than 90 days past due and not in foreclosure.",
        "label": "Fair Value Option Loans Held As Assets Not In Foreclosure Aggregate Difference",
        "terseLabel": "90 or more days delinquent, not in foreclosure"
       }
      }
     },
     "localname": "FairValueOptionLoansHeldAsAssetsNotInForeclosureAggregateDifference",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueOptionLoansHeldAsAssetsNotInForeclosureAggregateFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail": {
       "order": 10150.0,
       "parentTag": "pmt_FairValueOptionLoansHeldAsAssetsAggregateFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of mortgage loans carried at fair value under the fair value option, more than 90 days past due and not in foreclosure.",
        "label": "Fair Value Option Loans Held As Assets Not In Foreclosure Aggregate Fair Value",
        "terseLabel": "90 or more days delinquent, not in foreclosure"
       }
      }
     },
     "localname": "FairValueOptionLoansHeldAsAssetsNotInForeclosureAggregateFairValue",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueOptionNonCreditRiskGainsLossesOnAssets": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Changes in fair value of mortgage loans attributable to changes in inputs other than credit.",
        "label": "Fair Value Option Non Credit Risk Gains Losses On Assets",
        "terseLabel": "Other factors"
       }
      }
     },
     "localname": "FairValueOptionNonCreditRiskGainsLossesOnAssets",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueUnobservableInputsDiscountRate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value unobservable inputs discount rate.",
        "label": "Fair Value Unobservable Inputs Discount Rate",
        "terseLabel": "Key inputs used in fair value for CRT agreements"
       }
      }
     },
     "localname": "FairValueUnobservableInputsDiscountRate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_FairValueUnpaidPrincipalBalanceOfUnderlyingLoans": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents unpaid principal balance of loans underlying ESS.",
        "label": "Fair Value Unpaid Principal Balance Of Underlying Loans",
        "terseLabel": "UPB of underlying loans (in thousands)"
       }
      }
     },
     "localname": "FairValueUnpaidPrincipalBalanceOfUnderlyingLoans",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueKeyAssumptionsUsedInDeterminingFairValueOfMsrsAtTimeOfInitialRecognitionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueUnpaidPrincipalOfUnderlyingLoansBalance": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unpaid principal balance of mortgage loans underlying MSRs carried at fair value at period end.",
        "label": "Fair Value Unpaid Principal Of Underlying Loans Balance",
        "terseLabel": "UPB of underlying loans, Fair Value"
       }
      }
     },
     "localname": "FairValueUnpaidPrincipalOfUnderlyingLoansBalance",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FairValueWeightedAverageCouponInterestRate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Average note interest rate applicable to MSRs carried at fair value.",
        "label": "Fair Value Weighted Average Coupon Interest Rate",
        "terseLabel": "Weighted-average note interest rate, Fair value"
       }
      }
     },
     "localname": "FairValueWeightedAverageCouponInterestRate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_FannieMaeOrFreddieMacMortgageLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fannie Mae or Freddie Mac mortgage loans.",
        "label": "Fannie Mae Or Freddie Mac Mortgage Loans [Member]",
        "terseLabel": "Fannie Mae Or Freddie Mac Mortgage Loans"
       }
      }
     },
     "localname": "FannieMaeOrFreddieMacMortgageLoansMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_FederalHomeLoanMortgageCorporationMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Federal home loan mortgage corporation.",
        "label": "Federal Home Loan Mortgage Corporation [Member]",
        "terseLabel": "Freddie Mac [Member]"
       }
      }
     },
     "localname": "FederalHomeLoanMortgageCorporationMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_FederalNationalMortgageAssociationAndFederalHomeLoanMortgageCorporationMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Federal national mortgage association and federal home loan mortgage corporation.",
        "label": "Federal National Mortgage Association And Federal Home Loan Mortgage Corporation [Member]",
        "terseLabel": "Fannie Mae and Freddie Mac [Member]"
       }
      }
     },
     "localname": "FederalNationalMortgageAssociationAndFederalHomeLoanMortgageCorporationMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsSummaryOfCapitalAndLiquidityAmountsAndRequirementsByAgenciesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_FederalNationalMortgageAssociationMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Federal national mortgage association.",
        "label": "Federal National Mortgage Association [Member]",
        "terseLabel": "Federal National Mortgage Association [Member]",
        "verboseLabel": "Fannie Mae [Member]"
       }
      }
     },
     "localname": "FederalNationalMortgageAssociationMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_FeesAndCommissionsMortgageBankingAndServicingMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fees and commissions mortgage banking and servicing.",
        "label": "Fees And Commissions Mortgage Banking And Servicing [Member]",
        "terseLabel": "Net Loan Servicing Fees [Member]"
       }
      }
     },
     "localname": "FeesAndCommissionsMortgageBankingAndServicingMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAccumulatedValuationChanges": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail": {
       "order": 10030.0,
       "parentTag": "us-gaap_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAtFairValue",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial instruments owned mortgages, mortgage backed and asset backed securities, accumulated valuation changes.",
        "label": "Financial Instruments Owned Mortgages Mortgage Backed And Asset Backed Securities Accumulated Valuation Changes",
        "negatedLabel": "Accumulated valuation changes"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAccumulatedValuationChanges",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAmortizationOfPremiums": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesActivityDetail": {
       "order": 10010.0,
       "parentTag": "pmt_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesChangesInFairValueRecordedInIncome",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial instruments owned mortgages mortgage backed and asset backed securities amortization of premiums.",
        "label": "Financial Instruments Owned Mortgages Mortgage Backed And Asset Backed Securities Amortization Of Premiums",
        "negatedLabel": "Amortization of premiums"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAmortizationOfPremiums",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAtFairValuePurchases": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial instruments owned mortgages mortgage backed and asset backed securities at fair value purchases.",
        "label": "Financial Instruments Owned Mortgages Mortgage Backed And Asset Backed Securities At Fair Value Purchases",
        "terseLabel": "Purchases"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAtFairValuePurchases",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesChangesInFairValueIncludedInIncomeAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial instruments owned mortgages mortgage backed and asset backed securities changes in fair value included in income.",
        "label": "Financial Instruments Owned Mortgages Mortgage Backed And Asset Backed Securities Changes In Fair Value Included In Income [Abstract]",
        "terseLabel": "Changes in fair value included in income arising from:"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesChangesInFairValueIncludedInIncomeAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesActivityDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesChangesInFairValueRecordedInIncome": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesActivityDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial instruments owned mortgages mortgage backed and asset backed securities changes in fair value recorded in income.",
        "label": "Financial Instruments Owned Mortgages Mortgage Backed And Asset Backed Securities Changes In Fair Value Recorded In Income",
        "totalLabel": "Total changes in fair value included in income"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesChangesInFairValueRecordedInIncome",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesRepayment": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial instruments owned mortgages mortgage backed and asset backed securities repayment.",
        "label": "Financial Instruments Owned Mortgages Mortgage Backed And Asset Backed Securities Repayment",
        "terseLabel": "Repayment"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesRepayment",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesUnamortizedPurchasePremiums": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAtFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial instruments owned mortgages mortgage backed and asset backed securities unamortized purchase premiums.",
        "label": "Financial Instruments Owned Mortgages Mortgage Backed And Asset Backed Securities Unamortized Purchase Premiums",
        "terseLabel": "Unamortized purchase premiums"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesUnamortizedPurchasePremiums",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesValuationAdjustments": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesActivityDetail": {
       "order": 10020.0,
       "parentTag": "pmt_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesChangesInFairValueRecordedInIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial instruments owned mortgages mortgage backed and asset backed securities valuation adjustments.",
        "label": "Financial Instruments Owned Mortgages Mortgage Backed And Asset Backed Securities Valuation Adjustments",
        "terseLabel": "Valuation adjustments"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesValuationAdjustments",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FirmCommitmentMeasurementInput": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Firm commitment measurement input.",
        "label": "Firm Commitment Measurement Input",
        "terseLabel": "Key inputs used in valuation"
       }
      }
     },
     "localname": "FirmCommitmentMeasurementInput",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationOfFirmCommitmentToPurchaseCRTSecuritiesDetail"
     ],
     "xbrltype": "decimalItemType"
    },
    "pmt_FirmCommitmentToPurchaseCreditRiskTransferSecuritiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Firm commitment to purchase credit risk transfer security.",
        "label": "Firm Commitment To Purchase Credit Risk Transfer Securities [Member]",
        "terseLabel": "Firm commitment to purchase CRT securities [Member]"
       }
      }
     },
     "localname": "FirmCommitmentToPurchaseCreditRiskTransferSecuritiesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationOfFirmCommitmentToPurchaseCRTSecuritiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_FirmCommitmentToPurchaseCreditRiskTransferSecurityAtFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": 10120.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10340.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the fair value of a firm commitment to purchase credit risk securities relating to mortgage loans delivered by the company into FNMA mortgage-backed securities.",
        "label": "Firm Commitment To Purchase Credit Risk Transfer Security At Fair Value",
        "terseLabel": "Firm commitment to purchase credit risk transfer securities at fair value"
       }
      }
     },
     "localname": "FirmCommitmentToPurchaseCreditRiskTransferSecurityAtFairValue",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FirmCommitmentToPurchaseCreditRiskTransferSecurityMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Firm Commitment to Purchase Credit Risk Transfer Security.",
        "label": "Firm Commitment To Purchase Credit Risk Transfer Security [Member]",
        "terseLabel": "Firm Commitment To Purchase Credit Risk Transfer Security"
       }
      }
     },
     "localname": "FirmCommitmentToPurchaseCreditRiskTransferSecurityMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_FixedInterestRateJumboMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fixed interest rate jumbo.",
        "label": "Fixed Interest Rate Jumbo [Member]",
        "terseLabel": "Fixed interest rate jumbo loans held in a VIE [Member]"
       }
      }
     },
     "localname": "FixedInterestRateJumboMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_FixedRateMortgageLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fixed Rate Mortgage Loans [Member]",
        "label": "Fixed Rate Mortgage Loans [Member]",
        "terseLabel": "Fixed-Rate Mortgage Loans [Member]"
       }
      }
     },
     "localname": "FixedRateMortgageLoansMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_ForwardPurchaseContractMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Forward Purchase Contract [Member]",
        "label": "Forward Purchase Contract [Member]",
        "terseLabel": "Forward Purchase Contracts [Member]"
       }
      }
     },
     "localname": "ForwardPurchaseContractMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_ForwardSalesContractsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Forward Sales Contracts [Member]",
        "label": "Forward Sales Contracts [Member]",
        "terseLabel": "Forward Sale Contracts [Member]",
        "verboseLabel": "Forward Sales Contracts [Member]"
       }
      }
     },
     "localname": "ForwardSalesContractsMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_FulfillmentFeesPayable": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_DueToAffiliateCurrentAndNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fulfillment fees payable.",
        "label": "Fulfillment Fees Payable",
        "terseLabel": "Fulfillment fees"
       }
      }
     },
     "localname": "FulfillmentFeesPayable",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_FulfillmentFeesRate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fulfillment fees rate.",
        "label": "Fulfillment Fees Rate",
        "terseLabel": "Basis point for monthly fulfillment fee"
       }
      }
     },
     "localname": "FulfillmentFeesRate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_GainLossOnAssetBackedFinancingOfVariableInterestEntityAtFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Gain loss on asset backed financing.of variable interest entity at fair value.",
        "label": "Gain Loss On Asset Backed Financing Of Variable Interest Entity At Fair Value",
        "terseLabel": "Asset-backed financing of a VIE at fair value"
       }
      }
     },
     "localname": "GainLossOnAssetBackedFinancingOfVariableInterestEntityAtFairValue",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_GainLossOnExcessServicingSpreadAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Gain Loss On Excess Servicing Spread [Abstract]",
        "label": "Gain Loss On Excess Servicing Spread [Abstract]",
        "terseLabel": "Net (loss) gain included in Net gain (loss) on investments:"
       }
      }
     },
     "localname": "GainLossOnExcessServicingSpreadAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_GainLossOnFirmCommitmentToPurchaseCreditRiskTransferSecurities": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Gain (loss) on firm commitment to purchase credit risk transfer securities.",
        "label": "Gain Loss On Firm Commitment To Purchase Credit Risk Transfer Securities",
        "terseLabel": "Firm commitment to purchase CRT securities"
       }
      }
     },
     "localname": "GainLossOnFirmCommitmentToPurchaseCreditRiskTransferSecurities",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_GainLossOnLoansAcquiredForSaleMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Gain loss on loans acquired for sale.",
        "label": "Gain Loss On Loans Acquired For Sale [Member]",
        "terseLabel": "Gain Loss on loans acquired for sale [Member]"
       }
      }
     },
     "localname": "GainLossOnLoansAcquiredForSaleMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_GainLossOnMortgageLoansAcquiredForSaleAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Gain loss on mortgage loans acquired for sale.",
        "label": "Gain Loss On Mortgage Loans Acquired For Sale [Abstract]",
        "terseLabel": "Net gain on loans acquired for sale:"
       }
      }
     },
     "localname": "GainLossOnMortgageLoansAcquiredForSaleAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_GainLossOnNetDerivativeRelatesToCreditRiskTransfer": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Gain (loss) on net derivative relates to credit risk transfer.",
        "label": "Gain Loss On Net Derivative Relates To Credit Risk Transfer",
        "terseLabel": "CRT arrangements"
       }
      }
     },
     "localname": "GainLossOnNetDerivativeRelatesToCreditRiskTransfer",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_GainLossOnSaleOfMortgageLoansAcquiredForSaleCashPortion": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail": {
       "order": 10090.0,
       "parentTag": "pmt_AggregateCashGainLossOnSaleOfMortgageLoansAcquiredForSaleNetOfCashHedgingResults",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Gain Loss On Sale Of Mortgage Loans Acquired For Sale Cash Portion",
        "label": "Gain Loss On Sale Of Mortgage Loans Acquired For Sale Cash Portion",
        "terseLabel": "Loans"
       }
      }
     },
     "localname": "GainLossOnSaleOfMortgageLoansAcquiredForSaleCashPortion",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_GainLossOnSalesOfLoansNetMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Gain (loss) on sales of loans, net.",
        "label": "Gain Loss On Sales Of Loans Net [Member]",
        "terseLabel": "Net Gain on Loans Acquired for Sale [Member]"
       }
      }
     },
     "localname": "GainLossOnSalesOfLoansNetMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_GainOnInvestmentCreditRiskTransferStrips": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail": {
       "order": 10050.0,
       "parentTag": "pmt_GainsLossesRecognizedOnCRTAgreementsIncludedInNetLossGainOnInvestments",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Gain on investments credit risk transfer strips.",
        "label": "Gain On Investment Credit Risk Transfer Strips",
        "negatedLabel": "Credit risk transfer strips"
       }
      }
     },
     "localname": "GainOnInvestmentCreditRiskTransferStrips",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_GainsLossesRecognizedOnCRTAgreementsGross": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail": {
       "order": 10060.0,
       "parentTag": "pmt_GainsLossesRecognizedOnCRTAgreementsIncludedInNetLossGainOnInvestments",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Gains losses recognized on CRT agreements gross.",
        "label": "Gains Losses Recognized On C R T Agreements Gross",
        "totalLabel": "Gains (losses) recognized on gross derivative related to credit risk transactions"
       }
      }
     },
     "localname": "GainsLossesRecognizedOnCRTAgreementsGross",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_GainsLossesRecognizedOnCRTAgreementsIncludedInNetLossGainOnInvestments": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_InterestIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the net cash and valuation gains or losses pursuant to credit risk transfer agreements.",
        "label": "Gains Losses Recognized On C R T Agreements Included In Net Loss Gain On Investments",
        "totalLabel": "Gains (losses) recognized on net derivative related to credit risk transactions"
       }
      }
     },
     "localname": "GainsLossesRecognizedOnCRTAgreementsIncludedInNetLossGainOnInvestments",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_GainsLossesRecognizedOnCreditDefaultSwapsValuationChanges": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail": {
       "order": 10090.0,
       "parentTag": "pmt_GainsLossesRecognizedOnCRTAgreementsGross",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the net unrealized valuation changes pursuant to credit risk transfer agreements.",
        "label": "Gains Losses Recognized On Credit Default Swaps Valuation Changes",
        "terseLabel": "Valuation changes"
       }
      }
     },
     "localname": "GainsLossesRecognizedOnCreditDefaultSwapsValuationChanges",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_GoldmanSachsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Goldman Sachs [Member]",
        "label": "Goldman Sachs [Member]",
        "terseLabel": "Goldman Sachs [Member]"
       }
      }
     },
     "localname": "GoldmanSachsMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_GovernmentGuaranteedSecuritiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Government Guaranteed Securities [Member]",
        "label": "Government Guaranteed Securities [Member]",
        "terseLabel": "Held for Sale to PLS - Government-Insured or Guaranteed [Member]"
       }
      }
     },
     "localname": "GovernmentGuaranteedSecuritiesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_GuaranteeObligationsRecourseProvisionUnpaidPrincipalBalanceOfMortgageLoansSubjectToRepresentationsAndWarranties": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unpaid principal balance of mortgage loans subject to representations and warranties made by the company at period-end.",
        "label": "Guarantee Obligations Recourse Provision Unpaid Principal Balance Of Mortgage Loans Subject To Representations And Warranties",
        "terseLabel": "UPB of loans subject to representations and warranties at end of quarter"
       }
      }
     },
     "localname": "GuaranteeObligationsRecourseProvisionUnpaidPrincipalBalanceOfMortgageLoansSubjectToRepresentationsAndWarranties",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLiabilityForLossesUnderRepresentationsAndWarrantiesSummaryOfCompanySLiabilityForLossesUnderRepresentationsAndWarrantiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_IncomeTaxLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Income tax.",
        "label": "Income Tax [Line Items]",
        "terseLabel": "Income Tax [Line Items]"
       }
      }
     },
     "localname": "IncomeTaxLineItems",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_IncomeTaxTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Income tax.",
        "label": "Income Tax [Table]",
        "terseLabel": "Income Tax [Table]"
       }
      }
     },
     "localname": "IncomeTaxTable",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_IncreaseDecreaseInCommitmentsToFundDepositsSecuringCreditRiskTransferAgreementsResultingFromSaleOfMortgageLoans": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail": {
       "order": 10120.0,
       "parentTag": "pmt_DepositsOfCashSecuringCreditRiskTransferAgreementsNetOfAdjustment",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Increase decrease in commitments to fund Deposits securing credit risk transfer Agreements resulting from sale of mortgage loans.",
        "label": "Increase Decrease In Commitments To Fund Deposits Securing Credit Risk Transfer Agreements Resulting From Sale Of Mortgage Loans",
        "terseLabel": "Increase in commitments to fund Deposits securing CRT arrangements resulting from sale of loans"
       }
      }
     },
     "localname": "IncreaseDecreaseInCommitmentsToFundDepositsSecuringCreditRiskTransferAgreementsResultingFromSaleOfMortgageLoans",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_IncreaseDecreaseInMarginDeposits": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10320.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Increase decrease in margin deposits.",
        "label": "Increase Decrease In Margin Deposits",
        "negatedLabel": "Decrease (increase) in margin deposits"
       }
      }
     },
     "localname": "IncreaseDecreaseInMarginDeposits",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_IncreaseDecreaseInServicingAdvances": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10500.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Increase (Decrease) in Servicing Advances",
        "label": "Increase Decrease In Servicing Advances",
        "negatedLabel": "Decrease in servicing advances"
       }
      }
     },
     "localname": "IncreaseDecreaseInServicingAdvances",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_IncreaseDecreaseOfExcessServicingSpreadRecaptureReceivableFromAffiliates": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Increase Decrease Of Excess Servicing Spread Recapture Receivable From Affiliates",
        "label": "Increase Decrease Of Excess Servicing Spread Recapture Receivable From Affiliates",
        "terseLabel": "Receipt of excess servicing spread pursuant to recapture agreement with PennyMac Financial Services, Inc."
       }
      }
     },
     "localname": "IncreaseDecreaseOfExcessServicingSpreadRecaptureReceivableFromAffiliates",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationSummaryOfSupplementalCashFlowInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_IncreaseInQuarterlyCashDividendInCommonStock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Increase In Quarterly Cash Dividend In Common Stock",
        "label": "Increase In Quarterly Cash Dividend In Common Stock",
        "terseLabel": "Increased in cash dividend"
       }
      }
     },
     "localname": "IncreaseInQuarterlyCashDividendInCommonStock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesAdditionalInformationDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "pmt_IncreaseToMaximumPercentageOfOutstandingUnpaidPrincipalBalance": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Increase to maximum percentage of outstanding unpaid principal balance.",
        "label": "Increase To Maximum Percentage Of Outstanding Unpaid Principal Balance",
        "terseLabel": "Increase to maximum percentage of outstanding unpaid principal balance"
       }
      }
     },
     "localname": "IncreaseToMaximumPercentageOfOutstandingUnpaidPrincipalBalance",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_InitialExchangeableRateMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Initial Exchangeable Rate [Member]",
        "label": "Initial Exchangeable Rate [Member]",
        "terseLabel": "Initial Exchangeable Rate [Member]"
       }
      }
     },
     "localname": "InitialExchangeableRateMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_InsuranceMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Insurance.",
        "label": "Insurance [Member]",
        "terseLabel": "Insurance [Member]"
       }
      }
     },
     "localname": "InsuranceMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOtherExpensesSummaryOfOtherExpensesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_InterestEarnedOnDepositsSecuringCreditRiskTransferAgreements": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail": {
       "order": 10040.0,
       "parentTag": "us-gaap_InterestIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest earned on deposits securing credit risk transfer agreements.",
        "label": "Interest Earned On Deposits Securing Credit Risk Transfer Agreements",
        "terseLabel": "Deposits securing CRT arrangements"
       }
      }
     },
     "localname": "InterestEarnedOnDepositsSecuringCreditRiskTransferAgreements",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_InterestExpenseMortgageLoanParticipationPurchaseAndSaleAgreement": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the interest expense related to mortgage loans participation purchase and sale agreement.",
        "label": "Interest Expense Mortgage Loan Participation Purchase And Sale Agreement",
        "terseLabel": "Mortgage loan participation purchase and sale agreements"
       }
      }
     },
     "localname": "InterestExpenseMortgageLoanParticipationPurchaseAndSaleAgreement",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_InterestExpenseOnMortgageLoanImpoundDeposits": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": 10070.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents interest expense incurred by the company paid to borrowers' impound accounts relating to borrower funds held in escrow to pay hazard insurance and property taxes on the properties securing the mortgage loans.",
        "label": "Interest Expense On Mortgage Loan Impound Deposits",
        "terseLabel": "Interest on mortgage loan impound deposits"
       }
      }
     },
     "localname": "InterestExpenseOnMortgageLoanImpoundDeposits",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_InterestExpenseOnMortgageLoansServicedForAgencySecuritizations": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": 10060.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents interest incurred relating to mortgage-backed securities secured by mortgage loans in the company's loan servicing portfolio whereby the underlying loans prepaid during the period and the company as servicer of the mortgage-backed security is obligated to pass through the interest for the entire month and the borrower is only required to pay interest through the date of payoff during the month.",
        "label": "Interest Expense On Mortgage Loans Serviced For Agency Securitizations",
        "terseLabel": "Interest shortfall on repayments of loans serviced for Agency securitizations"
       }
      }
     },
     "localname": "InterestExpenseOnMortgageLoansServicedForAgencySecuritizations",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_InterestIncomeOnMortgageFinancings": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": 10110.0,
       "parentTag": "us-gaap_InterestIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest Income On mortgage loans at fair value.",
        "label": "Interest Income On Mortgage Financings",
        "terseLabel": "Loans at fair value"
       }
      }
     },
     "localname": "InterestIncomeOnMortgageFinancings",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_InterestIncomeOnMortgageLoansSubjectToDepositsSecuringCreditRiskTransferAgreements": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": 10130.0,
       "parentTag": "us-gaap_InterestIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest income on mortgage loans subject to deposits securing credit risk transfer agreements.",
        "label": "Interest Income On Mortgage Loans Subject To Deposits Securing Credit Risk Transfer Agreements",
        "verboseLabel": "Deposits securing CRT arrangements"
       }
      }
     },
     "localname": "InterestIncomeOnMortgageLoansSubjectToDepositsSecuringCreditRiskTransferAgreements",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_InterestIncomeOnMortgageLoansSubjectToDistressed": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": 10120.0,
       "parentTag": "us-gaap_InterestIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest income on mortgage loans subject to distressed.",
        "label": "Interest Income On Mortgage Loans Subject To Distressed",
        "terseLabel": "Distressed"
       }
      }
     },
     "localname": "InterestIncomeOnMortgageLoansSubjectToDistressed",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_InterestIncomeOnMortgageLoansSubjectToPlacementFeesRelatingToCustodialFunds": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": 10140.0,
       "parentTag": "us-gaap_InterestIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest income on mortgage loans subject to placement fees relating to custodial funds.",
        "label": "Interest Income On Mortgage Loans Subject To Placement Fees Relating To Custodial Funds",
        "terseLabel": "Placement fees relating to custodial funds"
       }
      }
     },
     "localname": "InterestIncomeOnMortgageLoansSubjectToPlacementFeesRelatingToCustodialFunds",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_InterestOnAssetsSoldUnderAgreementToRepurchase": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail": {
       "order": 10070.0,
       "parentTag": "us-gaap_DueToAffiliateCurrentAndNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest on assets sold under agreement to repurchase.",
        "label": "Interest On Assets Sold Under Agreement To Repurchase",
        "terseLabel": "Interest on Assets sold to PFSI under agreement to repurchase"
       }
      }
     },
     "localname": "InterestOnAssetsSoldUnderAgreementToRepurchase",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_InterestOnlySecurityPayableAtFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_FinancialLiabilitiesFairValueDisclosure",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10200.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the fair value of interest-only strip securities classified as a liability.",
        "label": "Interest Only Security Payable At Fair Value",
        "terseLabel": "Interest-only security payable at fair value"
       }
      }
     },
     "localname": "InterestOnlySecurityPayableAtFairValue",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_InterestOnlySecurityPayableMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest Only Security Payable [Member]",
        "label": "Interest Only Security Payable [Member]",
        "terseLabel": "Interest-only security payable [Member]"
       }
      }
     },
     "localname": "InterestOnlySecurityPayableMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_InterestRateLockCommitmentMeasurementInput": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest rate lock commitment measurement input.",
        "label": "Interest Rate Lock Commitment Measurement Input",
        "terseLabel": "Key inputs used in valuation of IRLCs"
       }
      }
     },
     "localname": "InterestRateLockCommitmentMeasurementInput",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInValuationOfInterestRateLockCommitmentsDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_InterestRateLockCommitmentsAndLoansAcquiredForSaleMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest rate lock commitments and loans acquired for sale.",
        "label": "Interest Rate Lock Commitments And Loans Acquired For Sale [Member]",
        "terseLabel": "Interest rate lock commitments and loans acquired for sale at fair value [Member]"
       }
      }
     },
     "localname": "InterestRateLockCommitmentsAndLoansAcquiredForSaleMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_InterestRateSensitiveStrategiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest rate sensitive strategies.",
        "label": "Interest Rate Sensitive Strategies [Member]",
        "terseLabel": "Interest Rate Sensitive Strategies [Member]"
       }
      }
     },
     "localname": "InterestRateSensitiveStrategiesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_JPMorganChaseAndCompanyMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "JP Morgan Chase And Company [Member]",
        "label": "J P Morgan Chase And Company [Member]",
        "terseLabel": "JPMorgan Chase &amp; Co. [Member]"
       }
      }
     },
     "localname": "JPMorganChaseAndCompanyMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_JPMorganChaseBankNAMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "JPMorgan chase bank NA.",
        "label": "J P Morgan Chase Bank N A [Member]",
        "terseLabel": "JPMorgan Chase Bank, N.A. [Member]"
       }
      }
     },
     "localname": "JPMorganChaseBankNAMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_JPMorganSecuritiesLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "J.P. Morgan Securities LLC.",
        "label": "J P Morgan Securities L L C [Member]",
        "terseLabel": "J.P. Morgan Securities LLC [Member]"
       }
      }
     },
     "localname": "JPMorganSecuritiesLLCMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_JumboMortgageLoanFinancingMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Jumbo Mortgage Loan Financing [Member]",
        "label": "Jumbo Mortgage Loan Financing [Member]",
        "terseLabel": "Jumbo Mortgage Loan Financing [Member]"
       }
      }
     },
     "localname": "JumboMortgageLoanFinancingMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_LeaseRenewalFeeForReo": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Lease renewal fee for reo.",
        "label": "Lease Renewal Fee For Reo",
        "terseLabel": "Lease renewal fee for REO"
       }
      }
     },
     "localname": "LeaseRenewalFeeForReo",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_LeasesCommitmentsAndPurchaseObligationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Leases Commitments And Purchase Obligations [Abstract]",
        "label": "Leases Commitments And Purchase Obligations [Abstract]",
        "terseLabel": "Commitments to purchase mortgage loans:"
       }
      }
     },
     "localname": "LeasesCommitmentsAndPurchaseObligationsAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureCommitmentsAndContingenciesCompanySOutstandingContractualCommitmentsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_LiabilityForRepresentationsAndWarrantiesDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure representing the liability of the entity under the representations and warranties made to purchasers of the loans it sells.",
        "label": "Liability For Representations And Warranties Disclosure [Text Block]",
        "terseLabel": "Liability for Losses Under Representations and Warranties"
       }
      }
     },
     "localname": "LiabilityForRepresentationsAndWarrantiesDisclosureTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLiabilityForLossesUnderRepresentationsAndWarranties"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_LiquidAssetRequirementForRegulatoryCompliance": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Liquid asset requirement for \u200bregulatory compliance.",
        "label": "Liquid Asset Requirement For Regulatory Compliance",
        "terseLabel": "Liquidity, Required"
       }
      }
     },
     "localname": "LiquidAssetRequirementForRegulatoryCompliance",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsSummaryOfCapitalAndLiquidityAmountsAndRequirementsByAgenciesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_LiquidAssetsForRegulatoryCompliance": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Liquid\u200b assets for regulatory compliance.",
        "label": "Liquid Assets For Regulatory Compliance",
        "terseLabel": "Liquidity, Actual"
       }
      }
     },
     "localname": "LiquidAssetsForRegulatoryCompliance",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsSummaryOfCapitalAndLiquidityAmountsAndRequirementsByAgenciesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_LoanAndSecurityAgreementWithBarclaysBankPlcMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loan and security agreement with Barclays Bank PLC.",
        "label": "Loan And Security Agreement With Barclays Bank Plc [Member]",
        "terseLabel": "Loan and Security Agreement with Barclays Bank PLC [Member]"
       }
      }
     },
     "localname": "LoanAndSecurityAgreementWithBarclaysBankPlcMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_LoanAndSecurityAgreementWithCreditSuisseFirstBostonMortgageCapitalLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loan and security agreement with Credit Suisse First Boston Mortgage Capital LLC.",
        "label": "Loan And Security Agreement With Credit Suisse First Boston Mortgage Capital L L C [Member]",
        "terseLabel": "Loan and Security Agreement with Credit Suisse First Boston Mortgage Capital LLC [Member]"
       }
      }
     },
     "localname": "LoanAndSecurityAgreementWithCreditSuisseFirstBostonMortgageCapitalLLCMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_LoanFulfillmentFeesPayableToAffiliate": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10070.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The fees paid by the reporting entity to an affiliate for services performed in connection with the acquisition, packaging and sale of the reporting entity's mortgage loans.",
        "label": "Loan Fulfillment Fees Payable To Affiliate",
        "terseLabel": "Loan fulfillment fees",
        "verboseLabel": "Loan fulfillment fees earned by PLS"
       }
      }
     },
     "localname": "LoanFulfillmentFeesPayableToAffiliate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfCorrespondentProductionActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_LoanFulfillmentServicingAndManagementFeesPayableToAffiliate": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loan Fulfillment Servicing And Management Fees Payable To Affiliate",
        "label": "Loan Fulfillment Servicing And Management Fees Payable To Affiliate",
        "terseLabel": "Loan fulfillment and servicing fees payable to PFSI"
       }
      }
     },
     "localname": "LoanFulfillmentServicingAndManagementFeesPayableToAffiliate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_LoanOriginationsFees": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10180.0,
       "parentTag": "us-gaap_RevenuesNetOfInterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fees charged to correspondent lenders and borrowers relating to the purchase or origination of mortgage loans.",
        "label": "Loan Originations Fees",
        "terseLabel": "Loan origination fees"
       }
      }
     },
     "localname": "LoanOriginationsFees",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_LoanServicingFeesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loan Servicing Fees [Member]",
        "label": "Loan Servicing Fees [Member]",
        "terseLabel": "Net loan servicing fees [Member]"
       }
      }
     },
     "localname": "LoanServicingFeesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_LoansAcquiredForSaleAtFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loans acquired for sale at fair value.",
        "label": "Loans Acquired For Sale At Fair Value [Member]",
        "terseLabel": "Loans acquired for sale at fair value [Member]"
       }
      }
     },
     "localname": "LoansAcquiredForSaleAtFairValueMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_LoansAtFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loans at fair value.",
        "label": "Loans At Fair Value [Member]",
        "terseLabel": "Loans at fair value [Member]",
        "verboseLabel": "Loans at Fair Value [Member]"
       }
      }
     },
     "localname": "LoansAtFairValueMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_LoansFulfilledByAffiliateUnpaidPrincipalBalance": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the unpaid principal balance of mortgage loans fulfilled for the company by an affiliate in exchange for fulfillment fees.",
        "label": "Loans Fulfilled By Affiliate Unpaid Principal Balance",
        "terseLabel": "UPB of loans fulfilled by PLS"
       }
      }
     },
     "localname": "LoansFulfilledByAffiliateUnpaidPrincipalBalance",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfCorrespondentProductionActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_LoansManagedAndSecuritizedCustodialFundsManaged": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents custodial funds managed relating to mortgage loans sold and serviced by the company.",
        "label": "Loans Managed And Securitized Custodial Funds Managed",
        "terseLabel": "Custodial funds managed by the Company"
       }
      }
     },
     "localname": "LoansManagedAndSecuritizedCustodialFundsManaged",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCollectionStatusInformationForLoansAccountedForSalesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_LoansREAndMSRsSoldUnderAgreementsToRepurchaseMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loans, REO and MSRs sold under agreements to repurchase,",
        "label": "Loans R E And M S Rs Sold Under Agreements To Repurchase [Member]",
        "terseLabel": "Loans RE and MSRs Sold Under Agreements to Repurchase [Member]"
       }
      }
     },
     "localname": "LoansREAndMSRsSoldUnderAgreementsToRepurchaseMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseTables"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_LongTermDebtAverageBalanceDuringPeriod": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Long term debt average balance during period.",
        "label": "Long Term Debt Average Balance During Period",
        "terseLabel": "Average balance"
       }
      }
     },
     "localname": "LongTermDebtAverageBalanceDuringPeriod",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MSRAtFairValueServiceFeeAnnualRate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "MSR at fair value service fee annual rate.",
        "label": "M S R At Fair Value Service Fee Annual Rate",
        "positiveLabel": "Weighted-average annual servicing fee rate (in basis points), Fair value input"
       }
      }
     },
     "localname": "MSRAtFairValueServiceFeeAnnualRate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_MSRAtFairValueServiceFeeAnnualRateAtInitialRecognition": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "MSR at fair value service fee annual rate at initial recognition.",
        "label": "M S R At Fair Value Service Fee Annual Rate At Initial Recognition",
        "terseLabel": "Fair value, Weighted-average annual servicing fee rate (in basis points)"
       }
      }
     },
     "localname": "MSRAtFairValueServiceFeeAnnualRateAtInitialRecognition",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueKeyAssumptionsUsedInDeterminingFairValueOfMsrsAtTimeOfInitialRecognitionDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_MarginDepositAssetsLiabilities": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Margin deposit assets liabilities.",
        "label": "Margin Deposit Assets Liabilities",
        "terseLabel": "Margin deposits (received from) placed with derivatives counterparties, net"
       }
      }
     },
     "localname": "MarginDepositAssetsLiabilities",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MasterRepurchaseAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Master repurchase agreement.",
        "label": "Master Repurchase Agreement [Member]",
        "terseLabel": "Master Repurchase Agreement [Member]"
       }
      }
     },
     "localname": "MasterRepurchaseAgreementMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MaturityNineZeroToOneEightZeroDaysMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Maturity of repurchase agreement over 90 days to 180 days.",
        "label": "Maturity Nine Zero To One Eight Zero Days [Member]",
        "terseLabel": "Over 90 days to 180 days [Member]"
       }
      }
     },
     "localname": "MaturityNineZeroToOneEightZeroDaysMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfMaturitiesOfOutstandingAssetsSoldUnderAgreementsToRepurchaseByFacilityMaturityDateDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MaturityOneEightZeroDaysToOneYearMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Maturity of repurchase agreement over 180 days to 1 year.",
        "label": "Maturity One Eight Zero Days To One Year [Member]",
        "terseLabel": "Over 180 days to one year [Member]"
       }
      }
     },
     "localname": "MaturityOneEightZeroDaysToOneYearMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfMaturitiesOfOutstandingAssetsSoldUnderAgreementsToRepurchaseByFacilityMaturityDateDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MaximumAggregateOfferingPrice": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Maximum Aggregate Offering Price",
        "label": "Maximum Aggregate Offering Price",
        "terseLabel": "Maximum aggregate offering price"
       }
      }
     },
     "localname": "MaximumAggregateOfferingPrice",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MeasurementInputInvoluntaryPrepaymentSpeedMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measurement input involuntary prepayment speed.",
        "label": "Measurement Input Involuntary Prepayment Speed [Member]",
        "terseLabel": "Involuntary Prepayment Speed [Member]"
       }
      }
     },
     "localname": "MeasurementInputInvoluntaryPrepaymentSpeedMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationCreditRiskTransferStripsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationOfFirmCommitmentToPurchaseCRTSecuritiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MeasurementInputPullThroughRateMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measurement input pull through rate.",
        "label": "Measurement Input Pull Through Rate [Member]",
        "terseLabel": "Pull-Through Rate [Member]"
       }
      }
     },
     "localname": "MeasurementInputPullThroughRateMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInValuationOfInterestRateLockCommitmentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MeasurementInputRemainingLossExpectationMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measurement input remaining loss expectation.",
        "label": "Measurement Input Remaining Loss Expectation [Member]",
        "terseLabel": "Remaining Loss Expectation [Member]"
       }
      }
     },
     "localname": "MeasurementInputRemainingLossExpectationMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationCreditRiskTransferStripsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationOfFirmCommitmentToPurchaseCRTSecuritiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MeasurementInputServicingFeeMultipleMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measurement input servicing fee multiple.",
        "label": "Measurement Input Servicing Fee Multiple [Member]",
        "terseLabel": "Servicing Fee Multiple [Member]"
       }
      }
     },
     "localname": "MeasurementInputServicingFeeMultipleMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInValuationOfInterestRateLockCommitmentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MeasurementInputUnpaidPrincipalBalanceMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measurement input unpaid principal balance.",
        "label": "Measurement Input Unpaid Principal Balance [Member]",
        "terseLabel": "Percentage of UPB [Member]"
       }
      }
     },
     "localname": "MeasurementInputUnpaidPrincipalBalanceMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInValuationOfInterestRateLockCommitmentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MeasurementInputVoluntaryPrepaymentRateMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measurement input voluntary prepayment rate.",
        "label": "Measurement Input Voluntary Prepayment Rate [Member]",
        "terseLabel": "Voluntary Prepayment Speed [Member]"
       }
      }
     },
     "localname": "MeasurementInputVoluntaryPrepaymentRateMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MeasurementInputVoluntaryPrepaymentSpeedMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measurement input voluntary prepayment speed.",
        "label": "Measurement Input Voluntary Prepayment Speed [Member]",
        "terseLabel": "Voluntary Prepayment Speed [Member]"
       }
      }
     },
     "localname": "MeasurementInputVoluntaryPrepaymentSpeedMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationCreditRiskTransferStripsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationOfFirmCommitmentToPurchaseCRTSecuritiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MizuhoSecuritiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mizuho securities.",
        "label": "Mizuho Securities [Member]",
        "terseLabel": "Mizuho Securities [Member]"
       }
      }
     },
     "localname": "MizuhoSecuritiesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MorganStanleyAndCompanyLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Morgan Stanley And Company. LLC.",
        "label": "Morgan Stanley And Company L L C [Member]",
        "terseLabel": "Morgan Stanley &amp; Co. LLC [Member]"
       }
      }
     },
     "localname": "MorganStanleyAndCompanyLLCMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MorganStanleyMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Morgan Stanley [Member]",
        "label": "Morgan Stanley [Member]",
        "terseLabel": "Morgan Stanley [Member]"
       }
      }
     },
     "localname": "MorganStanleyMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageBackedSecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage backed securities.",
        "label": "Mortgage Backed Securities [Abstract]"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "xbrltype": "stringItemType"
    },
    "pmt_MortgageBackedSecuritiesAtFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage-backed securities at fair value.",
        "label": "Mortgage Backed Securities At Fair Value [Member]",
        "terseLabel": "Mortgage-backed securities at fair value [Member]"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesAtFairValueMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageBackedSecuritiesCallOptionsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage Backed Securities Call Options [Member]",
        "label": "Mortgage Backed Securities Call Options [Member]",
        "terseLabel": "MBS Call Options [Member]"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesCallOptionsMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageBackedSecuritiesDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage backed securities.",
        "label": "Mortgage Backed Securities Disclosure [Text Block]",
        "terseLabel": "Mortgage-Backed Securities"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesDisclosureTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecurities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_MortgageBackedSecuritiesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage backed securities.",
        "label": "Mortgage Backed Securities [Line Items]",
        "terseLabel": "Mortgage Backed Securities [Line Items]"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesLineItems",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_MortgageBackedSecuritiesMaturityPeriod": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage backed securities maturity period.",
        "label": "Mortgage Backed Securities Maturity Period",
        "terseLabel": "Mortgage backed securities, maturity period"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesMaturityPeriod",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesParentheticalDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "pmt_MortgageBackedSecuritiesPutOptionsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage Backed Securities Put Options [Member]",
        "label": "Mortgage Backed Securities Put Options [Member]",
        "terseLabel": "MBS Put Options [Member]"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesPutOptionsMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageBackedSecuritiesTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage backed securities.",
        "label": "Mortgage Backed Securities [Table]",
        "terseLabel": "Mortgage Backed Securities [Table]"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesTable",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_MortgageBackedSecurityYieldAverageNumberOfYear": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage-backed security yield average number of year.",
        "label": "Mortgage Backed Security Yield Average Number Of Year",
        "terseLabel": "MBS yield, average number of year"
       }
      }
     },
     "localname": "MortgageBackedSecurityYieldAverageNumberOfYear",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "pmt_MortgageBankingServicesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage Banking Services [Member]",
        "label": "Mortgage Banking Services [Member]",
        "terseLabel": "Mortgage banking services [Member]"
       }
      }
     },
     "localname": "MortgageBankingServicesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageLoanClassificationByCreditQualityAndTypeTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage Loan Classification By Credit Quality And Type [Table Text Block]",
        "label": "Mortgage Loan Classification By Credit Quality And Type Table [Text Block]",
        "terseLabel": "Summary of Distribution of Company's Loans at Fair Value"
       }
      }
     },
     "localname": "MortgageLoanClassificationByCreditQualityAndTypeTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_MortgageLoanCollectionAndLiquidationExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10130.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of expenses for mortgage loan collection and liquidation costs on distressed mortgage loans.",
        "label": "Mortgage Loan Collection And Liquidation Expenses",
        "terseLabel": "Loan collection and liquidation"
       }
      }
     },
     "localname": "MortgageLoanCollectionAndLiquidationExpenses",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoanHedgingActivitiesCashGainLoss": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail": {
       "order": 10100.0,
       "parentTag": "pmt_AggregateCashGainLossOnSaleOfMortgageLoansAcquiredForSaleNetOfCashHedgingResults",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Cash gains (losses) realized pursuant to mortgage loan hedging activities.",
        "label": "Mortgage Loan Hedging Activities Cash Gain Loss",
        "terseLabel": "Hedging activities"
       }
      }
     },
     "localname": "MortgageLoanHedgingActivitiesCashGainLoss",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoanMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loan.",
        "label": "Mortgage Loan [Member]",
        "terseLabel": "Distressed mortgage loans [Member]",
        "verboseLabel": "Distressed loans [Member]"
       }
      }
     },
     "localname": "MortgageLoanMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfLoanServicingFeesEarnedAndMortgageServicingRightsRecapturedIncomeEarnedDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageLoanOtherServicingFees": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loan other servicing fees.",
        "label": "Mortgage Loan Other Servicing Fees",
        "terseLabel": "Other fees"
       }
      }
     },
     "localname": "MortgageLoanOtherServicingFees",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoanParticipationAndSaleAgreementInterestExpense": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loan participation and sale agreement interest expense.",
        "label": "Mortgage Loan Participation And Sale Agreement Interest Expense",
        "terseLabel": "Total interest expense"
       }
      }
     },
     "localname": "MortgageLoanParticipationAndSaleAgreementInterestExpense",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoanParticipationAndSaleAgreementMaximumDailyOutstanding": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loan participation and sale agreement maximum daily outstanding.",
        "label": "Mortgage Loan Participation And Sale Agreement Maximum Daily Outstanding",
        "terseLabel": "Maximum daily amount outstanding"
       }
      }
     },
     "localname": "MortgageLoanParticipationAndSaleAgreementMaximumDailyOutstanding",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoanParticipationPurchaseAndSaleAgreement": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10160.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Borrowings secured by mortgage loans held for sale in the form of a mortgage loan participation purchase and sale agreement.",
        "label": "Mortgage Loan Participation Purchase And Sale Agreement",
        "terseLabel": "Mortgage loan participation purchase and sale agreements",
        "totalLabel": "Mortgage loan participation purchase and sale agreements, At year end"
       }
      }
     },
     "localname": "MortgageLoanParticipationPurchaseAndSaleAgreement",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoanParticipationPurchaseAndSaleAgreementAverageBalance": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loan participation purchase and sale agreement average balance.",
        "label": "Mortgage Loan Participation Purchase And Sale Agreement Average Balance",
        "terseLabel": "Average balance"
       }
      }
     },
     "localname": "MortgageLoanParticipationPurchaseAndSaleAgreementAverageBalance",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoanParticipationPurchaseAndSaleAgreementLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loan participation purchase and sale agreement.",
        "label": "Mortgage Loan Participation Purchase And Sale Agreement [Line Items]",
        "terseLabel": "Mortgage Loan Participation Purchase And Sale Agreement [Line Items]"
       }
      }
     },
     "localname": "MortgageLoanParticipationPurchaseAndSaleAgreementLineItems",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_MortgageLoanParticipationPurchaseAndSaleAgreementObligationsAmount": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail": {
       "order": 10650.0,
       "parentTag": "pmt_MortgageLoanParticipationPurchaseAndSaleAgreement",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loan participation purchase and sale agreement obligations amount.",
        "label": "Mortgage Loan Participation Purchase And Sale Agreement Obligations Amount",
        "terseLabel": "Amount outstanding"
       }
      }
     },
     "localname": "MortgageLoanParticipationPurchaseAndSaleAgreementObligationsAmount",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoanParticipationPurchaseAndSaleAgreementTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loan participation purchase and sale agreement.",
        "label": "Mortgage Loan Participation Purchase And Sale Agreement [Table]",
        "terseLabel": "Mortgage Loan Participation Purchase And Sale Agreement [Table]"
       }
      }
     },
     "localname": "MortgageLoanParticipationPurchaseAndSaleAgreementTable",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_MortgageLoanParticipationPurchaseAndSaleAgreementTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loan participation purchase and sale agreement.",
        "label": "Mortgage Loan Participation Purchase And Sale Agreement [Text Block]",
        "terseLabel": "Mortgage Loan Participation Purchase and Sale Agreements"
       }
      }
     },
     "localname": "MortgageLoanParticipationPurchaseAndSaleAgreementTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreements"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_MortgageLoanParticipationPurchaseAndSalesAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loan participation purchase and sales agreement.",
        "label": "Mortgage Loan Participation Purchase And Sales Agreement [Member]",
        "terseLabel": "Mortgage Loan Participation Purchase and Sale Agreement [Member]"
       }
      }
     },
     "localname": "MortgageLoanParticipationPurchaseAndSalesAgreementMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageLoanServicingFeesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loan servicing fees.",
        "label": "Mortgage Loan Servicing Fees [Abstract]"
       }
      }
     },
     "localname": "MortgageLoanServicingFeesAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "xbrltype": "stringItemType"
    },
    "pmt_MortgageLoanServicingFeesEarnedByAffiliateAndMortgageServicingRightsRecapturedIncomeEarnedTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loan servicing fees earned by affiliate and mortgage servicing rights recaptured income earned [Table Text Block]",
        "label": "Mortgage Loan Servicing Fees Earned By Affiliate And Mortgage Servicing Rights Recaptured Income Earned Table [Text Block]",
        "terseLabel": "Summary of Loan Servicing Fees Earned and Mortgage Servicing Rights Recaptured Income Earned"
       }
      }
     },
     "localname": "MortgageLoanServicingFeesEarnedByAffiliateAndMortgageServicingRightsRecapturedIncomeEarnedTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_MortgageLoanServicingFeesPayable": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail": {
       "order": 10040.0,
       "parentTag": "us-gaap_DueToAffiliateCurrentAndNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loan servicing fees payable.",
        "label": "Mortgage Loan Servicing Fees Payable",
        "terseLabel": "Loan servicing fees"
       }
      }
     },
     "localname": "MortgageLoanServicingFeesPayable",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoanSourcingFeesFromAffiliate": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents fees received by the company from an affiliate for mortgage loans that it purchases from correspondent lenders to but is not licensed as a seller/servicer to sell such loans into the secondary market.",
        "label": "Mortgage Loan Sourcing Fees From Affiliate",
        "terseLabel": "Sourcing fees received from PLS included in Net gain on loans acquired for sale"
       }
      }
     },
     "localname": "MortgageLoanSourcingFeesFromAffiliate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfCorrespondentProductionActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoansAcquiredForSaleAtFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total Aggregate difference between fair value and unpaid principal balance mortgage loans carried at fair value under the fair value option.",
        "label": "Mortgage Loans Acquired For Sale At Fair Value [Member]",
        "terseLabel": "Loans acquired for sale at fair value [Member]"
       }
      }
     },
     "localname": "MortgageLoansAcquiredForSaleAtFairValueMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfLoanServicingFeesEarnedAndMortgageServicingRightsRecapturedIncomeEarnedDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageLoansAcquiredForSaleMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loans acquired for sale.",
        "label": "Mortgage Loans Acquired For Sale [Member]",
        "terseLabel": "Mortgage Loans Acquired for Sale [Member]"
       }
      }
     },
     "localname": "MortgageLoansAcquiredForSaleMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageLoansAcquiredForSaleOutstandingContractualPurchaseCommitments": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents disclosure of amount of the company's contractual commitments to purchase recently originated mortgage loans.",
        "label": "Mortgage Loans Acquired For Sale Outstanding Contractual Purchase Commitments",
        "terseLabel": "Commitments to purchase loans acquired for sale"
       }
      }
     },
     "localname": "MortgageLoansAcquiredForSaleOutstandingContractualPurchaseCommitments",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureCommitmentsAndContingenciesCompanySOutstandingContractualCommitmentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoansAtFairValueDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This element represents the fair value disclosures of non-correspondent lending loans, their further classification by types and the geographical segregation of loans considering their origination.",
        "label": "Mortgage Loans At Fair Value Disclosure [Text Block]",
        "terseLabel": "Loans at Fair Value"
       }
      }
     },
     "localname": "MortgageLoansAtFairValueDisclosureTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValue"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_MortgageLoansAtFairValueHeldByVariableInterestEntity": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of the consolidated Variable Interest Entity's mortgage loans included in the reporting entity's statement of financial position.",
        "label": "Mortgage Loans At Fair Value Held By Variable Interest Entity",
        "terseLabel": "Asset-backed financing of a VIE at fair value"
       }
      }
     },
     "localname": "MortgageLoansAtFairValueHeldByVariableInterestEntity",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoansAtFairValueHeldByVariableInterestEntityMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loans at fair value held by variable interest entity.",
        "label": "Mortgage Loans At Fair Value Held By Variable Interest Entity [Member]",
        "terseLabel": "Loans at Fair Value Held in Consolidated VIE [Member]"
       }
      }
     },
     "localname": "MortgageLoansAtFairValueHeldByVariableInterestEntityMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageLoansAtFairValueMeasurementInput": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loans at fair value measurement inoput.",
        "label": "Mortgage Loans At Fair Value Measurement Input",
        "terseLabel": "Key inputs used in valuation"
       }
      }
     },
     "localname": "MortgageLoansAtFairValueMeasurementInput",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail"
     ],
     "xbrltype": "decimalItemType"
    },
    "pmt_MortgageLoansAtFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loans at fair value.",
        "label": "Mortgage Loans At Fair Value [Member]",
        "terseLabel": "Loans at fair value [Member]"
       }
      }
     },
     "localname": "MortgageLoansAtFairValueMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfLoanServicingFeesEarnedAndMortgageServicingRightsRecapturedIncomeEarnedDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageLoansAtFairValueSoldUnderAgreementsMaturity": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loans at fair value sold under agreements maturity.",
        "label": "Mortgage Loans At Fair Value Sold Under Agreements Maturity",
        "terseLabel": "Facility maturity"
       }
      }
     },
     "localname": "MortgageLoansAtFairValueSoldUnderAgreementsMaturity",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "pmt_MortgageLoansAtFairValueSoldUnderAgreementsWeightedAverageMaturity": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loans at fair value sold under agreements weighted average maturity.",
        "label": "Mortgage Loans At Fair Value Sold Under Agreements Weighted Average Maturity",
        "terseLabel": "Weighted average maturity"
       }
      }
     },
     "localname": "MortgageLoansAtFairValueSoldUnderAgreementsWeightedAverageMaturity",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "pmt_MortgageLoansFairValueDisclosure": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": 10090.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loans fair value disclosure.",
        "label": "Mortgage Loans Fair Value Disclosure",
        "terseLabel": "Loans at fair value",
        "totalLabel": "Fair value"
       }
      }
     },
     "localname": "MortgageLoansFairValueDisclosure",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoansHeldByVariableInterestEntityMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage Loans Held By Variable Interest Entity.",
        "label": "Mortgage Loans Held By Variable Interest Entity [Member]",
        "terseLabel": "Held in a VIE [Member]"
       }
      }
     },
     "localname": "MortgageLoansHeldByVariableInterestEntityMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfLoanServicingFeesEarnedAndMortgageServicingRightsRecapturedIncomeEarnedDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageLoansInDistressedMortgageLoanPortfolioAtFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage Loans In Distressed Mortgage Loan Portfolio At Fair Value [Member]",
        "label": "Mortgage Loans In Distressed Mortgage Loan Portfolio At Fair Value [Member]",
        "terseLabel": "Loans and Mortgage Loans under Forward Purchase Agreements at Fair Value [Member]"
       }
      }
     },
     "localname": "MortgageLoansInDistressedMortgageLoanPortfolioAtFairValueMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageLoansOnRealEstateInForeclosurePrincipalAmountOfDelinquentLoans": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail": {
       "order": 10090.0,
       "parentTag": "srt_MortgageLoansOnRealEstatePrincipalAmountOfDelinquentLoans",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total unpaid principal balance of mortgage loans carried at fair value under the fair value option.",
        "label": "Mortgage Loans On Real Estate In Foreclosure Principal Amount Of Delinquent Loans",
        "terseLabel": "90 or more days delinquent, in foreclosure"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateInForeclosurePrincipalAmountOfDelinquentLoans",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoansOnRealEstateNotInForeclosurePrincipalAmountOfDelinquentLoans": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail": {
       "order": 10080.0,
       "parentTag": "srt_MortgageLoansOnRealEstatePrincipalAmountOfDelinquentLoans",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unpaid principal balance of mortgage loans carried at fair value under the fair value option, more than 90 days past due and in foreclosure.",
        "label": "Mortgage Loans On Real Estate Not In Foreclosure Principal Amount Of Delinquent Loans",
        "terseLabel": "90 or more days delinquent, not in foreclosure"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateNotInForeclosurePrincipalAmountOfDelinquentLoans",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoansOnRealEstatePrincipalAmountOfDelinquentLoansLessThanNinetyDays": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail": {
       "order": 10070.0,
       "parentTag": "srt_MortgageLoansOnRealEstatePrincipalAmountOfDelinquentLoans",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unpaid principal balance of mortgage loans carried at fair value under the fair value option and less than 90 days past due.",
        "label": "Mortgage Loans On Real Estate Principal Amount Of Delinquent Loans Less Than Ninety Days",
        "terseLabel": "Current through 89 days delinquent:"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstatePrincipalAmountOfDelinquentLoansLessThanNinetyDays",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoansOnRealEstateUnpaidBalance": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unpaid principal balance of mortgage loans carried at fair value as of balance sheet date.",
        "label": "Mortgage Loans On Real Estate Unpaid Balance",
        "terseLabel": "Unpaid principal balance",
        "totalLabel": "Principal amount due upon maturity"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateUnpaidBalance",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoansSoldAndSecuritizedMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loans sold and securitized.",
        "label": "Mortgage Loans Sold And Securitized [Member]",
        "terseLabel": "Mortgage Loans Sold And Securitized"
       }
      }
     },
     "localname": "MortgageLoansSoldAndSecuritizedMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageLoansSoldToAffiliatesUnpaidPrincipalBalance": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unpaid principal balance of mortgage loans sold to affiliates during the period.",
        "label": "Mortgage Loans Sold To Affiliates Unpaid Principal Balance",
        "terseLabel": "UPB of loans sold to PLS"
       }
      }
     },
     "localname": "MortgageLoansSoldToAffiliatesUnpaidPrincipalBalance",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfCorrespondentProductionActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageLoansSubjectToDepositsSecuringCreditRiskTransfers": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loans subject to deposits securing credit risk transfers.",
        "label": "Mortgage Loans Subject To Deposits Securing Credit Risk Transfers",
        "terseLabel": "Deposits securing CRT Agreements"
       }
      }
     },
     "localname": "MortgageLoansSubjectToDepositsSecuringCreditRiskTransfers",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageServiceRightsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage Service Rights.",
        "label": "Mortgage Service Rights [Member]",
        "terseLabel": "Mortgage service rights [Member]"
       }
      }
     },
     "localname": "MortgageServiceRightsMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsTables",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageServicingRightsAtFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage servicing rights at fair value.",
        "label": "Mortgage Servicing Rights At Fair Value [Member]",
        "terseLabel": "MSRs at fair value [Member]"
       }
      }
     },
     "localname": "MortgageServicingRightsAtFairValueMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageServicingRightsAtFairValuePledgedToSecureAssetsSoldUnderAgreementsToRepurchaseAndNotesPayable": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage servicing rights at fair value pledged to secure assets sold under agreements to repurchase and notes payable.",
        "label": "Mortgage Servicing Rights At Fair Value Pledged To Secure Assets Sold Under Agreements To Repurchase And Notes Payable",
        "terseLabel": "Fair value of mortgage servicing rights pledged to secure Assets sold under agreements to repurchase and Notes payable"
       }
      }
     },
     "localname": "MortgageServicingRightsAtFairValuePledgedToSecureAssetsSoldUnderAgreementsToRepurchaseAndNotesPayable",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfMsrsCarriedAtFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageServicingRightsDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of the activity in the balance of servicing assets at both fair value and subsequently measured at amortized value.",
        "label": "Mortgage Servicing Rights Disclosure [Text Block]",
        "terseLabel": "Mortgage Servicing Rights"
       }
      }
     },
     "localname": "MortgageServicingRightsDisclosureTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRights"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_MortgageServicingRightsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage servicing rights.",
        "label": "Mortgage Servicing Rights [Member]",
        "terseLabel": "Mortgage servicing rights [Member]"
       }
      }
     },
     "localname": "MortgageServicingRightsMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfLoanServicingFeesEarnedAndMortgageServicingRightsRecapturedIncomeEarnedDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_MortgageServicingRightsRecaptureFromAffiliate": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents MSR recapture earned from an affiliate under a recapture agreement during the period. Recapture amounts represent fees earned relating to mortgage loans subject to existing excess servicing spread that are refinanced by the affiliate.",
        "label": "Mortgage Servicing Rights Recapture From Affiliate",
        "terseLabel": "MSR recapture income recognized included in Net loan servicing fees\u2014from PennyMac Financial Services, Inc.",
        "verboseLabel": "From PFSI\u2014MSR recapture income"
       }
      }
     },
     "localname": "MortgageServicingRightsRecaptureFromAffiliate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfLoanServicingFeesEarnedAndMortgageServicingRightsRecapturedIncomeEarnedDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageServicingRightsRecaptureReceivable": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail": {
       "order": 10080.0,
       "parentTag": "us-gaap_DueFromAffiliates",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage servicing rights recapture receivable.",
        "label": "Mortgage Servicing Rights Recapture Receivable",
        "terseLabel": "MSR recapture"
       }
      }
     },
     "localname": "MortgageServicingRightsRecaptureReceivable",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_MortgageServicingRightsSecuredNotesPayable": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage servicing rights, secured notes payable.",
        "label": "Mortgage Servicing Rights Secured Notes Payable",
        "terseLabel": "MSRs (1)"
       }
      }
     },
     "localname": "MortgageServicingRightsSecuredNotesPayable",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_NetDerivativeRelatedToCreditRiskTransferTransactionsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Net Derivative Related To Credit Risk Transfer Transactions [Member]",
        "label": "Net Derivative Related To Credit Risk Transfer Transactions [Member]",
        "terseLabel": "CRT Agreements [Member]",
        "verboseLabel": "CRT Agreement Derivatives [Member]"
       }
      }
     },
     "localname": "NetDerivativeRelatedToCreditRiskTransferTransactionsMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_NetGainOnMortgageLoansAcquiredForSaleDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of key components of gain (loss) on mortgage loans acquired for sale.",
        "label": "Net Gain On Mortgage Loans Acquired For Sale Disclosure [Text Block]",
        "terseLabel": "Net Gain on Loans Acquired for Sale"
       }
      }
     },
     "localname": "NetGainOnMortgageLoansAcquiredForSaleDisclosureTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSale"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_NetIncomeExceedsFifteenPercentageMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents a threshold percentage for calculating the performance incentive portion of the Company's management fee.",
        "label": "Net Income Exceeds Fifteen Percentage [Member]",
        "terseLabel": "Net income exceeds 15% [Member]"
       }
      }
     },
     "localname": "NetIncomeExceedsFifteenPercentageMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_NetIncomeExceedsTenPercentageMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents a threshold percentage for calculating the performance incentive portion of the Company's management fee.",
        "label": "Net Income Exceeds Ten Percentage [Member]",
        "terseLabel": "Net income exceeds 10% [Member]"
       }
      }
     },
     "localname": "NetIncomeExceedsTenPercentageMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_NetIncomeExceedsTwentyPercentageMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents a threshold percentage for calculating the performance incentive portion of the Company's management fee.",
        "label": "Net Income Exceeds Twenty Percentage [Member]",
        "terseLabel": "Net income exceeds 20% [Member]"
       }
      }
     },
     "localname": "NetIncomeExceedsTwentyPercentageMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_NetIncomeLossAttributableToCommonStockholders": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Net income after adjustments for dividends on preferred stock",
        "label": "Net Income Loss Attributable To Common Stockholders",
        "totalLabel": "Net income attributable to common shareholders"
       }
      }
     },
     "localname": "NetIncomeLossAttributableToCommonStockholders",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_NetMortgageLoanServicingFeesDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The summary of key elements of net mortgage loan servicing fees for the periods presented.",
        "label": "Net Mortgage Loan Servicing Fees Disclosure [Text Block]",
        "terseLabel": "Net Loan Servicing Fees"
       }
      }
     },
     "localname": "NetMortgageLoanServicingFeesDisclosureTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFees"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_NettingMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Netting [Member]",
        "label": "Netting [Member]",
        "terseLabel": "Netting [Member]"
       }
      }
     },
     "localname": "NettingMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_NonAffiliatesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Non affiliates.",
        "label": "Non Affiliates [Member]",
        "terseLabel": "Nonaffiliates [Member]"
       }
      }
     },
     "localname": "NonAffiliatesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_NonCashGainFromReductionInLiabilityDueToChangeInEstimate": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Non cash gain from reduction in liability due to change in estimate.",
        "label": "Non Cash Gain From Reduction In Liability Due To Change In Estimate",
        "negatedLabel": "Reduction in liability due to change in estimate"
       }
      }
     },
     "localname": "NonCashGainFromReductionInLiabilityDueToChangeInEstimate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLiabilityForLossesUnderRepresentationsAndWarrantiesSummaryOfCompanySLiabilityForLossesUnderRepresentationsAndWarrantiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_NonCashPortionOfGainOnMortgageLoansAcquiredForSaleAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Non cash portion of gain on mortgage loans acquired for sale.",
        "label": "Non Cash Portion Of Gain On Mortgage Loans Acquired For Sale [Abstract]",
        "terseLabel": "Non-cash gain:"
       }
      }
     },
     "localname": "NonCashPortionOfGainOnMortgageLoansAcquiredForSaleAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_NonDistressedMortgageLoanMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Non distressed mortgage loan.",
        "label": "Non Distressed Mortgage Loan [Member]",
        "terseLabel": "Non-Distressed Mortgage Loans [Member]"
       }
      }
     },
     "localname": "NonDistressedMortgageLoanMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_NotePayableInterestExpenseDuringPeriod": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": 10040.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Note payable interest expense during period.",
        "label": "Note Payable Interest Expense During Period",
        "verboseLabel": "Notes payable"
       }
      }
     },
     "localname": "NotePayableInterestExpenseDuringPeriod",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_NotesPayableGross": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail": {
       "order": 10590.0,
       "parentTag": "us-gaap_NotesPayable",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Notes payable gross.",
        "label": "Notes Payable Gross",
        "terseLabel": "Amount outstanding"
       }
      }
     },
     "localname": "NotesPayableGross",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_NotesPayableMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Notes Payable.",
        "label": "Notes Payable [Member]",
        "terseLabel": "Notes payable [Member]",
        "verboseLabel": "Notes Payable [Member]"
       }
      }
     },
     "localname": "NotesPayableMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValueOfOtherBorrowingsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_NumberOfCommonSharesHeldByAffiliate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of common shares held by affiliate.",
        "label": "Number Of Common Shares Held By Affiliate",
        "terseLabel": "Number of common shares held by affiliate"
       }
      }
     },
     "localname": "NumberOfCommonSharesHeldByAffiliate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "pmt_OnePointFivePercentOfStockholdersEquityMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the annualized rate at which the base portion of the management fee is calculated for shareholders' equity amounts below $2 billion.",
        "label": "One Point Five Percent Of Stockholders Equity [Member]",
        "terseLabel": "1.5% per annum of stockholders equity [Member]"
       }
      }
     },
     "localname": "OnePointFivePercentOfStockholdersEquityMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_OnePointThreeSevenFivePercentOfStockholdersEquityMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the annualized rate at which the base portion of the management fee is calculated for shareholders' equity amounts between $2 billion and $5 billion.",
        "label": "One Point Three Seven Five Percent Of Stockholders Equity [Member]",
        "terseLabel": "1.375% per annum of stockholders equity [Member]"
       }
      }
     },
     "localname": "OnePointThreeSevenFivePercentOfStockholdersEquityMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_OnePointTwoFivePercentOfStockholdersEquityMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the annualized rate at which the base portion of the management fee is calculated for shareholders' equity amounts in excess of $5 billion.",
        "label": "One Point Two Five Percent Of Stockholders Equity [Member]",
        "terseLabel": "1.25% per annum of stockholders equity [Member]"
       }
      }
     },
     "localname": "OnePointTwoFivePercentOfStockholdersEquityMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_OtherCounterpartiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Other Counterparties [Member]",
        "label": "Other Counterparties [Member]",
        "terseLabel": "Other [Member]"
       }
      }
     },
     "localname": "OtherCounterpartiesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_OtherOperatingIncomeExpenseLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Other operating income expense",
        "label": "Other Operating Income Expense [Line Items]",
        "terseLabel": "Other Operating Income Expense [Line Items]"
       }
      }
     },
     "localname": "OtherOperatingIncomeExpenseLineItems",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOtherExpensesSummaryOfOtherExpensesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_OtherOperatingIncomeLossNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail": {
       "order": 10080.0,
       "parentTag": "us-gaap_RevenuesNetOfInterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Other operating income (loss) net.",
        "label": "Other Operating Income Loss Net",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "OtherOperatingIncomeLossNet",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_OtherRiskMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Other risk.",
        "label": "Other Risk [Member]",
        "terseLabel": "Other Factors [Member]"
       }
      }
     },
     "localname": "OtherRiskMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_OverheadMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Overhead.",
        "label": "Overhead [Member]",
        "terseLabel": "Common Overhead Allocation from PFSI [Member]"
       }
      }
     },
     "localname": "OverheadMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOtherExpensesSummaryOfOtherExpensesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_PNMACCapitalManagementLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "PNMAC Capital Management LLC.",
        "label": "P N M A C Capital Management L L C [Member]",
        "terseLabel": "PNMAC Capital Management LLC [Member]"
       }
      }
     },
     "localname": "PNMACCapitalManagementLLCMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfBaseManagementAndPerformanceIncentiveFeesPayableDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfExpensesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfFinancingActivitiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_ParticipatingMortgageLoansWeightedAverageInterestRate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Participating mortgage loans weighted average interest rate.",
        "label": "Participating Mortgage Loans Weighted Average Interest Rate",
        "terseLabel": "Weighted average interest rate"
       }
      }
     },
     "localname": "ParticipatingMortgageLoansWeightedAverageInterestRate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_PaymentOfContingentUnderwritingFees": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10190.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents payments of underwriting fees provided for in the Company's initial public offering payable contingent on the company satisfying certain performance measures over a specified period.",
        "label": "Payment Of Contingent Underwriting Fees",
        "negatedLabel": "Payment of contingent underwriting fees payable",
        "terseLabel": "Payment of contingent underwriting fees"
       }
      }
     },
     "localname": "PaymentOfContingentUnderwritingFees",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_PaymentsForRepurchaseOfMortgageLoansAtFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10240.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Payments for repurchase of mortgage loans at fair value.",
        "label": "Payments For Repurchase Of Mortgage Loans At Fair Value",
        "negatedLabel": "Repurchase of loans at fair value"
       }
      }
     },
     "localname": "PaymentsForRepurchaseOfMortgageLoansAtFairValue",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_PaymentsToCreditRiskTransferLosses": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the cash payments from the contractually restricted cash account collateralizing credit event losses to the net derivative counterparty pursuant to credit risk transfer transactions.",
        "label": "Payments To Credit Risk Transfer Losses",
        "terseLabel": "Payments made to settle losses on CRT arrangements"
       }
      }
     },
     "localname": "PaymentsToCreditRiskTransferLosses",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_PaymentsToPurchaseMortgageLoansHeldForSaleAffiliates": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10450.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents payments to purchase mortgage loans held for sale from an affiliate.",
        "label": "Payments To Purchase Mortgage Loans Held For Sale Affiliates",
        "negatedLabel": "Purchase of loans acquired for sale at fair value from PennyMac Financial Services, Inc.",
        "terseLabel": "Purchases of loans acquired for sale from PLS"
       }
      }
     },
     "localname": "PaymentsToPurchaseMortgageLoansHeldForSaleAffiliates",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfCorrespondentProductionActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_PaymentsToPurchaseMortgageLoansHeldForSaleNonaffiliates": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10440.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Payments to purchase mortgage loans held for sale non-affiliates.",
        "label": "Payments To Purchase Mortgage Loans Held For Sale Nonaffiliates",
        "negatedLabel": "Purchase of loans acquired for sale at fair value from nonaffiliates"
       }
      }
     },
     "localname": "PaymentsToPurchaseMortgageLoansHeldForSaleNonaffiliates",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_PennyMacFinancialServicesAffiliatedEntityMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "PennyMac Financial Services Inc. Affiliated Entity.",
        "label": "Penny Mac Financial Services Affiliated Entity [Member]",
        "terseLabel": "PennyMac Financial Services, Inc. [Member]"
       }
      }
     },
     "localname": "PennyMacFinancialServicesAffiliatedEntityMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfFinancingActivitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_PennyMacLoanServicesLlcMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Penny Mac Loan Services LLC.",
        "label": "Penny Mac Loan Services Llc [Member]",
        "terseLabel": "PennyMac Loan Services, LLC [Member]",
        "verboseLabel": "PennyMac Loan Services, LLC [Member]"
       }
      }
     },
     "localname": "PennyMacLoanServicesLlcMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfCorrespondentProductionActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfLoanServicingFeesEarnedAndMortgageServicingRightsRecapturedIncomeEarnedDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_PennymacFinancialServicesIncMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "PennyMac Financial Services Inc.",
        "label": "Pennymac Financial Services Inc [Member]",
        "terseLabel": "PennyMac Financial Services, Inc. [Member]"
       }
      }
     },
     "localname": "PennymacFinancialServicesIncMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_PercentageOfChangeInNetIncomeLoss": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents a threshold return on shareholders' equity as defined before performance incentive fees are chargeable to the Company.",
        "label": "Percentage Of Change In Net Income Loss",
        "terseLabel": "Percentage of change in net income due to quarterly adjustments"
       }
      }
     },
     "localname": "PercentageOfChangeInNetIncomeLoss",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_PercentageOfConsolidatedNetIncome": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the net income expressed as a percentage of shareholders' equity upon which performance incentive fees are based.",
        "label": "Percentage Of Consolidated Net Income",
        "terseLabel": "Percentage of net income for calculation of performance incentive fees"
       }
      }
     },
     "localname": "PercentageOfConsolidatedNetIncome",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_PercentageOfDeductionFromTaxableIncomeForOrdinaryREITDividends": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Percentage of deduction from taxable income for ordinary REIT dividends.",
        "label": "Percentage Of Deduction From Taxable Income For Ordinary R E I T Dividends",
        "terseLabel": "Percentage of deduction from taxable income"
       }
      }
     },
     "localname": "PercentageOfDeductionFromTaxableIncomeForOrdinaryREITDividends",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_PercentageOfPerformanceIncentiveFeePaidInCommonShares": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the maximum percentage of performance incentive fee payable in shares of the Company's common stock.",
        "label": "Percentage Of Performance Incentive Fee Paid In Common Shares",
        "terseLabel": "Percentage of performance incentive fee paid in Company's common shares"
       }
      }
     },
     "localname": "PercentageOfPerformanceIncentiveFeePaidInCommonShares",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_PercentageOfReturnOnEquity": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the net income expressed as a percentage of shareholders' equity upon which performance incentive fees are based.",
        "label": "Percentage Of Return On Equity",
        "terseLabel": "Percentage of return on equity"
       }
      }
     },
     "localname": "PercentageOfReturnOnEquity",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_PerformanceIncentiveFeesEarned": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Performance incentive fees earned.",
        "label": "Performance Incentive Fees Earned",
        "terseLabel": "Performance incentive fees earned"
       }
      }
     },
     "localname": "PerformanceIncentiveFeesEarned",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_PerformanceIncentiveMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Performance Incentive [Member]",
        "label": "Performance Incentive [Member]",
        "terseLabel": "Performance incentive [Member]"
       }
      }
     },
     "localname": "PerformanceIncentiveMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfBaseManagementAndPerformanceIncentiveFeesPayableDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_PeriodEndAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Period end.",
        "label": "Period End [Abstract]",
        "verboseLabel": "At period end:"
       }
      }
     },
     "localname": "PeriodEndAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_PledgedAssetsSeparatelyReportedLoansAcquiredForSalePledgedAsCollateralAtFairValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage loans at fair value acquired For sale pledged As Collateral to secure related financing amounts.",
        "label": "Pledged Assets Separately Reported Loans Acquired For Sale Pledged As Collateral At Fair Value",
        "terseLabel": "Loans acquired for sale at fair value, pledged to creditors"
       }
      }
     },
     "localname": "PledgedAssetsSeparatelyReportedLoansAcquiredForSalePledgedAsCollateralAtFairValue",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_PledgedFinancialInstrumentsNotSeparatelyReportedAndAssetsSeparatelyReportedOnStatementAtFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Pledged financial instruments not separately reported and assets separately reported on statement at fair value.",
        "label": "Pledged Financial Instruments Not Separately Reported And Assets Separately Reported On Statement At Fair Value",
        "totalLabel": "Loans pledged to secure total"
       }
      }
     },
     "localname": "PledgedFinancialInstrumentsNotSeparatelyReportedAndAssetsSeparatelyReportedOnStatementAtFairValue",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ProceedsFromIssuanceOfCommonStockGross": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Proceeds from issuance of common stock gross.",
        "label": "Proceeds From Issuance Of Common Stock Gross",
        "terseLabel": "Gross proceeds"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfCommonStockGross",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfActivitiesUnderATMEquityOfferingProgramDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfUnderwrittenOfferingsOfCommonSharesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ProceedsFromIssuanceOfMortgageLoanParticipationPurchaseAndSaleAgreements": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10060.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Proceeds from issuance of mortgage loan participation purchase and sale agreements.",
        "label": "Proceeds From Issuance Of Mortgage Loan Participation Purchase And Sale Agreements",
        "terseLabel": "Issuance of mortgage loan participation purchase and sale agreements"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfMortgageLoanParticipationPurchaseAndSaleAgreements",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ProceedsFromRepaymentsAndSalesOfExcessServicingSpreadInvestment": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Proceeds from repayments and sales of excess servicing spread investment.",
        "label": "Proceeds From Repayments And Sales Of Excess Servicing Spread Investment",
        "terseLabel": "Repayments and sales"
       }
      }
     },
     "localname": "ProceedsFromRepaymentsAndSalesOfExcessServicingSpreadInvestment",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ProceedsFromRepaymentsOfMortgageBackedSecuritiesMbsAtFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10230.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Proceeds from repayments of mortgage backed securities MBS at fair value.",
        "label": "Proceeds From Repayments Of Mortgage Backed Securities Mbs At Fair Value",
        "terseLabel": "Repayment of mortgage-backed securities at fair value"
       }
      }
     },
     "localname": "ProceedsFromRepaymentsOfMortgageBackedSecuritiesMbsAtFairValue",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ProceedsFromRepurchaseOfMortgageLoansSubjectToRepresentationAndWarranties": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10460.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Cash outflow and inflow to repurchase mortgage loans previously sold and which are being repurchased due to a breach of the Company's breach of a representation or warranty under which the loan was sold.",
        "label": "Proceeds From Repurchase Of Mortgage Loans Subject To Representation And Warranties",
        "terseLabel": "Repurchase of loans subject to representation and warranties"
       }
      }
     },
     "localname": "ProceedsFromRepurchaseOfMortgageLoansSubjectToRepresentationAndWarranties",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ProceedsFromSaleOfAssetsUnderAgreementsToRepurchase": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10040.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Proceeds from sale of assets under agreements to repurchase.",
        "label": "Proceeds From Sale Of Assets Under Agreements To Repurchase",
        "terseLabel": "Sale of assets under agreements to repurchase"
       }
      }
     },
     "localname": "ProceedsFromSaleOfAssetsUnderAgreementsToRepurchase",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfFinancingActivitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ProceedsFromSaleOfMortgageLoansHeldForSaleToAffiliates": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10480.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unpaid principal balance of mortgage loans acquired for sale sold to an affiliate.",
        "label": "Proceeds From Sale Of Mortgage Loans Held For Sale To Affiliates",
        "terseLabel": "Sale of loans acquired for sale to PennyMac Financial Services, Inc."
       }
      }
     },
     "localname": "ProceedsFromSaleOfMortgageLoansHeldForSaleToAffiliates",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ProceedsFromSaleOfRealEstateAcquiredInSettlementOfLoans": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10290.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount represents the cash inflows from the sale of real estate acquired in settlement of mortgage loans.",
        "label": "Proceeds From Sale Of Real Estate Acquired In Settlement Of Loans",
        "terseLabel": "Sale of real estate acquired in settlement of loans"
       }
      }
     },
     "localname": "ProceedsFromSaleOfRealEstateAcquiredInSettlementOfLoans",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ProceedsFromSettlementOfRepurchaseAgreementDerivatives": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10490.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Proceeds from settlement of repurchase agreement derivatives.",
        "label": "Proceeds From Settlement Of Repurchase Agreement Derivatives",
        "terseLabel": "Settlement of repurchase agreement derivatives"
       }
      }
     },
     "localname": "ProceedsFromSettlementOfRepurchaseAgreementDerivatives",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ProvisionForLossesUnderRepresentationAndWarranties": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail": {
       "order": 10030.0,
       "parentTag": "us-gaap_GainLossOnSaleOfMortgageLoans",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Provision for losses under representation and warranties.",
        "label": "Provision For Losses Under Representation And Warranties",
        "totalLabel": "Provision for losses relating to representations and warranties"
       }
      }
     },
     "localname": "ProvisionForLossesUnderRepresentationAndWarranties",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ProvisionForLossesUnderRepresentationAndWarrantiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Provision for losses under representation and warranties.",
        "label": "Provision For Losses Under Representation And Warranties [Abstract]",
        "terseLabel": "Provision for losses:",
        "verboseLabel": "Provision for losses relating to representations and warranties provided in mortgage loan sales:"
       }
      }
     },
     "localname": "ProvisionForLossesUnderRepresentationAndWarrantiesAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLiabilityForLossesUnderRepresentationsAndWarrantiesSummaryOfCompanySLiabilityForLossesUnderRepresentationsAndWarrantiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_ProvisionsForRepresentationsAndWarrantiesLosses": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail": {
       "order": 10070.0,
       "parentTag": "pmt_ProvisionForLossesUnderRepresentationAndWarranties",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Provisions for representations and warranties losses recognized during the period.",
        "label": "Provisions For Representations And Warranties Losses",
        "negatedLabel": "Pursuant to loans sales",
        "terseLabel": "Pursuant to mortgage loan sales"
       }
      }
     },
     "localname": "ProvisionsForRepresentationsAndWarrantiesLosses",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLiabilityForLossesUnderRepresentationsAndWarrantiesSummaryOfCompanySLiabilityForLossesUnderRepresentationsAndWarrantiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_PurchaseAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Purchase agreement.",
        "label": "Purchase Agreement [Member]",
        "terseLabel": "Purchase Agreement [Member]"
       }
      }
     },
     "localname": "PurchaseAgreementMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfUnderwrittenOfferingsOfCommonSharesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_PutOptionsOnInterestRateFuturesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Put Options On Interest Rate Futures [Member]",
        "label": "Put Options On Interest Rate Futures [Member]",
        "terseLabel": "Put Options on Interest Rate Futures [Member]"
       }
      }
     },
     "localname": "PutOptionsOnInterestRateFuturesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_RealEstateAcquiredInSettlementOfLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Real Estate Acquired In Settlement Of Loans [Member]",
        "label": "Real Estate Acquired In Settlement Of Loans [Member]",
        "terseLabel": "Real estate acquired in settlement of loans [Member]"
       }
      }
     },
     "localname": "RealEstateAcquiredInSettlementOfLoansMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_RealEstateAcquiredThroughForeclosureGainsLossesRecognized": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Changes in fair value recognized in income during the period relating to real estate acquired in settlement of loans re-measured at fair value less estimate costs to sell.",
        "label": "Real Estate Acquired Through Foreclosure Gains Losses Recognized",
        "terseLabel": "Real estate asset acquired in settlement of loans"
       }
      }
     },
     "localname": "RealEstateAcquiredThroughForeclosureGainsLossesRecognized",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueRecognizedInREOThatRemeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_RealEstateAcquiredThroughForeclosurePledgedToSecureBorrowings": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_PledgedAssetsSeparatelyReportedRealEstatePledgedAsCollateralAtFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Real estate acquired through foreclosure pledged to secure borrowings.",
        "label": "Real Estate Acquired Through Foreclosure Pledged To Secure Borrowings",
        "terseLabel": "REO pledged to secure assets sold under agreements to repurchase"
       }
      }
     },
     "localname": "RealEstateAcquiredThroughForeclosurePledgedToSecureBorrowings",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_RealEstateAcquiredThroughForeclosureRemeasuredDuringPeriod": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Period-end carrying value of real estate acquired in settlement of loans re-measured during the period.",
        "label": "Real Estate Acquired Through Foreclosure Remeasured During Period",
        "terseLabel": "Real estate acquired in settlement of loans"
       }
      }
     },
     "localname": "RealEstateAcquiredThroughForeclosureRemeasuredDuringPeriod",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfCarryingValueOfREOReMeasuredBasedOnFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_RealEstateHeldForInvestmentExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10140.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Real estate held for investment expenses.",
        "label": "Real Estate Held For Investment Expenses",
        "terseLabel": "Real estate held for investment"
       }
      }
     },
     "localname": "RealEstateHeldForInvestmentExpenses",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_RealEstateOwnedHeldInSubsidiaryForFinancingPurposes": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_PledgedAssetsSeparatelyReportedRealEstatePledgedAsCollateralAtFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the fair value REO held in a consolidated subsidiary whose stock is pledged to the secure financings of such properties.",
        "label": "Real Estate Owned Held In Subsidiary For Financing Purposes",
        "terseLabel": "REO held in a consolidated subsidiary whose stock is pledged to secure financings of such properties"
       }
      }
     },
     "localname": "RealEstateOwnedHeldInSubsidiaryForFinancingPurposes",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_RealEstateOwnedRollForwardTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Real estate owned roll forward.",
        "label": "Real Estate Owned Roll Forward Table [Text Block]",
        "terseLabel": "Summary of Financial Information Relating to REO"
       }
      }
     },
     "localname": "RealEstateOwnedRollForwardTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_RealizedGainsLossesRecognizedOnCreditDefaultSwaps": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail": {
       "order": 10080.0,
       "parentTag": "pmt_GainsLossesRecognizedOnCRTAgreementsGross",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the net gains or losses realized pursuant to credit risk transfer agreements.",
        "label": "Realized Gains Losses Recognized On Credit Default Swaps",
        "terseLabel": "Realized"
       }
      }
     },
     "localname": "RealizedGainsLossesRecognizedOnCreditDefaultSwaps",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ReceiptOfMortgageServicingRightsAsProceedsFromSalesOfLoanAtFairValues": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Receipt of mortgage servicing rights as proceeds from sales of mortgage loans at fair value.",
        "label": "Receipt Of Mortgage Servicing Rights As Proceeds From Sales Of Loan At Fair Values",
        "terseLabel": "Receipt of mortgage servicing rights as proceeds from sales of loans at fair value"
       }
      }
     },
     "localname": "ReceiptOfMortgageServicingRightsAsProceedsFromSalesOfLoanAtFairValues",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationSummaryOfSupplementalCashFlowInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ReceiptOfMortgageServicingRightsAsProceedsFromSalesOfLoans": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_GainLossOnSaleOfMortgageLoans",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Receipt of MSRs as proceeds from sales of loans.",
        "label": "Receipt Of Mortgage Servicing Rights As Proceeds From Sales Of Loans",
        "terseLabel": "Receipt of MSRs in mortgage loan sale transactions"
       }
      }
     },
     "localname": "ReceiptOfMortgageServicingRightsAsProceedsFromSalesOfLoans",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_RecognitionOfFairValueOfFirmCommitmentToPurchaseCreditRiskTransferSecurity": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_GainLossOnSaleOfMortgageLoans",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Recognition of fair value of firm commitment to purchase credit risk transfer security.",
        "label": "Recognition Of Fair Value Of Firm Commitment To Purchase Credit Risk Transfer Security",
        "terseLabel": "Recognition of fair value of firm commitment to purchase credit risk transfer securities"
       }
      }
     },
     "localname": "RecognitionOfFairValueOfFirmCommitmentToPurchaseCreditRiskTransferSecurity",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ReductionInLiabilityDueToChangeInEstimate": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail": {
       "order": 10080.0,
       "parentTag": "pmt_ProvisionForLossesUnderRepresentationAndWarranties",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Reduction in liability due to change in estimate.",
        "label": "Reduction In Liability Due To Change In Estimate",
        "terseLabel": "Reduction in liability due to change in estimate"
       }
      }
     },
     "localname": "ReductionInLiabilityDueToChangeInEstimate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_RegulatoryAssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Regulatory Assets [Abstract]",
        "label": "Regulatory Assets [Abstract]"
       }
      }
     },
     "localname": "RegulatoryAssetsAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "xbrltype": "stringItemType"
    },
    "pmt_RegulatoryCapitalRatioAmount": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Regulatory capital ratio amount.",
        "label": "Regulatory Capital Ratio Amount",
        "terseLabel": "Basis point"
       }
      }
     },
     "localname": "RegulatoryCapitalRatioAmount",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_ReimbursementOfCommonOverheadIncurredByAffiliates": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfExpensesDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_AffiliateCosts",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Reimbursement of common overhead incurred by affiliates.",
        "label": "Reimbursement Of Common Overhead Incurred By Affiliates",
        "terseLabel": "Common overhead incurred by PCM and its affiliates"
       }
      }
     },
     "localname": "ReimbursementOfCommonOverheadIncurredByAffiliates",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfExpensesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ReimbursementOfCompensationToAffiliates": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfExpensesDetail": {
       "order": 10030.0,
       "parentTag": "us-gaap_AffiliateCosts",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Reimbursement of compensation to affiliates.",
        "label": "Reimbursement Of Compensation To Affiliates",
        "terseLabel": "Compensation"
       }
      }
     },
     "localname": "ReimbursementOfCompensationToAffiliates",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfExpensesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ReimbursementOfExpensesToAffiliateNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfExpensesDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_AffiliateCosts",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Reimbursement of expenses to affiliate net.",
        "label": "Reimbursement Of Expenses To Affiliate Net",
        "terseLabel": "Expenses incurred on the Company\u2019s behalf, net"
       }
      }
     },
     "localname": "ReimbursementOfExpensesToAffiliateNet",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfExpensesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ReitQualificationThresholdPercentageOfTaxableIncomeForDistribution": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the portion of the Company's taxable income that is required to distribute at in the form of qualifying distributions to shareholders to retain its REIT status.",
        "label": "Reit Qualification Threshold Percentage Of Taxable Income For Distribution",
        "terseLabel": "Percentage of taxable income for distributions"
       }
      }
     },
     "localname": "ReitQualificationThresholdPercentageOfTaxableIncomeForDistribution",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOrganizationAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_RelatedPartyBaseManagementFeeAsPercentageOfStockHoldersEquity": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the base management fee rate based on shareholders' equity as defined that existed before February 1, 2013.",
        "label": "Related Party Base Management Fee As Percentage Of Stock Holders Equity",
        "terseLabel": "Base management fee annual rate"
       }
      }
     },
     "localname": "RelatedPartyBaseManagementFeeAsPercentageOfStockHoldersEquity",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_RentalIncomePercentageGross": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Rental income percentage gross.",
        "label": "Rental Income Percentage Gross",
        "terseLabel": "Rental income percentage gross"
       }
      }
     },
     "localname": "RentalIncomePercentageGross",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_ReoRentalFee": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Reo rental fee.",
        "label": "Reo Rental Fee",
        "terseLabel": "REO rental fee"
       }
      }
     },
     "localname": "ReoRentalFee",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_RepaymentOfMortgageLoanParticipationPurchaseAndSaleAgreements": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10070.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Repayment of mortgage loan participation purchase and sale agreements.",
        "label": "Repayment Of Mortgage Loan Participation Purchase And Sale Agreements",
        "negatedLabel": "Repayment of mortgage loan participation purchase and sale agreements"
       }
      }
     },
     "localname": "RepaymentOfMortgageLoanParticipationPurchaseAndSaleAgreements",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_RepaymentsOfAssetsSoldUnderAgreementsToRepurchase": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10050.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Repayments of Assets Sold Under Agreements to Repurchase",
        "label": "Repayments Of Assets Sold Under Agreements To Repurchase",
        "negatedLabel": "Repurchase of assets sold under agreements to repurchase",
        "terseLabel": "Repurchase of assets sold under agreements to repurchase"
       }
      }
     },
     "localname": "RepaymentsOfAssetsSoldUnderAgreementsToRepurchase",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfFinancingActivitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_RepaymentsOfExcessServicingSpreadInvestment": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10260.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents cash inflows from repayments of excess servicing spread Investment.",
        "label": "Repayments Of Excess Servicing Spread Investment",
        "terseLabel": "Repayment of excess servicing spread by PennyMac Financial Services, Inc."
       }
      }
     },
     "localname": "RepaymentsOfExcessServicingSpreadInvestment",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_RepresentationsAndWarrantiesLiability": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10260.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the company's estimate of the losses it expects to incur in the future as a result of claims against it in connection with the representations and warranties it provide to the purchasers and insurers of the mortgage loans it sells.",
        "label": "Representations And Warranties Liability",
        "periodEndLabel": "Balance, end of period",
        "periodStartLabel": "Balance, beginning of period",
        "terseLabel": "Liability for losses under representations and warranties"
       }
      }
     },
     "localname": "RepresentationsAndWarrantiesLiability",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLiabilityForLossesUnderRepresentationsAndWarrantiesSummaryOfCompanySLiabilityForLossesUnderRepresentationsAndWarrantiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_RepresentationsAndWarrantiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Representations And Warranties Member",
        "label": "Representations And Warranties [Member]",
        "terseLabel": "Repurchased Pursuant to Representations and Warranties [Member]"
       }
      }
     },
     "localname": "RepresentationsAndWarrantiesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_RepresentationsAndWarrantiesRecoveriesLossesNet": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Representations and warranties recoveries (losses),net.",
        "label": "Representations And Warranties Recoveries Losses Net",
        "terseLabel": "(Losses incurred) recoveries, net"
       }
      }
     },
     "localname": "RepresentationsAndWarrantiesRecoveriesLossesNet",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLiabilityForLossesUnderRepresentationsAndWarrantiesSummaryOfCompanySLiabilityForLossesUnderRepresentationsAndWarrantiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_RepurchaseAgreementsMaturityDate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Repurchase agreements, maturity date.",
        "label": "Repurchase Agreements Maturity Date",
        "terseLabel": "Repurchase agreement expiration date"
       }
      }
     },
     "localname": "RepurchaseAgreementsMaturityDate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeParentheticalDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "pmt_RepurchaseAgreementsReductionInInterestExpenseAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Repurchase agreements reduction in interest expense amount.",
        "label": "Repurchase Agreements Reduction In Interest Expense Amount",
        "terseLabel": "Incentives as a reductions to finance mortgage loans included in interest expense"
       }
      }
     },
     "localname": "RepurchaseAgreementsReductionInInterestExpenseAmount",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeParentheticalDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_RepurchaseAgreementsWeightedAverageMaturityPeriod": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Repurchase Agreements Weighted Average Maturity Period",
        "label": "Repurchase Agreements Weighted Average Maturity Period",
        "terseLabel": "Weighted average maturity (in months)"
       }
      }
     },
     "localname": "RepurchaseAgreementsWeightedAverageMaturityPeriod",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfMaturitiesOfOutstandingAssetsSoldUnderAgreementsToRepurchaseByFacilityMaturityDateDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "pmt_ResultsOfReoAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Results of REO.",
        "label": "Results Of Reo [Abstract]",
        "terseLabel": "Results of REO:"
       }
      }
     },
     "localname": "ResultsOfReoAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_ReversalOfContingentUnderwritingFees": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10430.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Reversal of contingent underwriting fees.",
        "label": "Reversal Of Contingent Underwriting Fees",
        "negatedLabel": "Reversal of contingent underwriting fees"
       }
      }
     },
     "localname": "ReversalOfContingentUnderwritingFees",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_RjBrienAssociatesLlcMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "RJ O'Brien &amp; Associates, LLC [Member]",
        "label": "Rj Brien Associates Llc [Member]",
        "terseLabel": "RJ O'Brien &amp; Associates, LLC [Member]"
       }
      }
     },
     "localname": "RjBrienAssociatesLlcMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_RoyalBankOfCanadaCapitalMarketsLPMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Royal Bank of Canada Capital Markets, L.P.",
        "label": "Royal Bank Of Canada Capital Markets L P [Member]",
        "terseLabel": "RBC Capital Markets, L.P. [Member]"
       }
      }
     },
     "localname": "RoyalBankOfCanadaCapitalMarketsLPMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_RoyalBankOfCanadaMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Royal Bank Of Canada [Member]",
        "label": "Royal Bank Of Canada [Member]",
        "terseLabel": "Royal Bank of Canada [Member]"
       }
      }
     },
     "localname": "RoyalBankOfCanadaMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_SafekeepingMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Safekeeping",
        "label": "Safekeeping [Member]",
        "terseLabel": "Safekeeping [Member]"
       }
      }
     },
     "localname": "SafekeepingMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOtherExpensesSummaryOfOtherExpensesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_ScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule Of Assets Measured At Fair Value On Non Recurring Basis [Table Text Block]",
        "label": "Schedule Of Assets Measured At Fair Value On Non Recurring Basis Table [Text Block]",
        "terseLabel": "Summary of Changes in Fair Value Recognized in Assets that Remeasured at Fair Value on a Nonrecurring Basis"
       }
      }
     },
     "localname": "ScheduleOfAssetsMeasuredAtFairValueOnNonRecurringBasisTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule Of Assets Sold Under Agreements To Repurchase [Table Text Block]",
        "label": "Schedule Of Assets Sold Under Agreements To Repurchase Table [Text Block]",
        "terseLabel": "Summary of Financial Information Relating to Assets Sold under Agreements to Repurchase"
       }
      }
     },
     "localname": "ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfAtTheMarketEquityOfferingProgramTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of at-the-market equity offering program.",
        "label": "Schedule Of At The Market Equity Offering Program Table [Text Block]",
        "terseLabel": "Summary of Activities under ATM Equity Offering Program"
       }
      }
     },
     "localname": "ScheduleOfAtTheMarketEquityOfferingProgramTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfChangesInFairValueChangesIncludedInCurrentPeriodIncomeTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of financial statement items accounted for under the fair value option changes in fair value included in current period income.",
        "label": "Schedule Of Changes In Fair Value Changes Included In Current Period Income Table [Text Block]",
        "terseLabel": "Summary of Changes in Fair Value Included in Current Period Income"
       }
      }
     },
     "localname": "ScheduleOfChangesInFairValueChangesIncludedInCurrentPeriodIncomeTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfContractuallySpecifiedServicingFeesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule Of Contractually Specified Servicing Fees [Table Text Block]",
        "label": "Schedule Of Contractually Specified Servicing Fees Table [Text Block]",
        "terseLabel": "Summary of Net Loan Servicing Fees Relating to MSRs"
       }
      }
     },
     "localname": "ScheduleOfContractuallySpecifiedServicingFeesTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfCorrespondentProductionActivityAffiliateTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule Of Correspondent Production Activity Affiliate [Table Text Block]",
        "label": "Schedule Of Correspondent Production Activity Affiliate Table [Text Block]",
        "terseLabel": "Summary of Correspondent Production Activity"
       }
      }
     },
     "localname": "ScheduleOfCorrespondentProductionActivityAffiliateTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfCreditRiskTransferAgreementsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of Credit Risk Transfer Agreements [Table Text Block]",
        "label": "Schedule Of Credit Risk Transfer Agreements Table [Text Block]",
        "terseLabel": "Summary of Credit Risk Transfer Agreements"
       }
      }
     },
     "localname": "ScheduleOfCreditRiskTransferAgreementsTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfDerivativeAndFinancialAssetsBySignificantCounterpartyNotOffsetTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents summary by counterparty of derivative asset positions.",
        "label": "Schedule Of Derivative And Financial Assets By Significant Counterparty Not Offset Table [Text Block]",
        "terseLabel": "Summary of Derivative Assets, Financial Instruments and Collateral Held by Counterparty"
       }
      }
     },
     "localname": "ScheduleOfDerivativeAndFinancialAssetsBySignificantCounterpartyNotOffsetTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfDerivativeAndFinancialLiabilitiesBySignificantCounterpartyNotOffsetTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule Of Derivative And Financial Liabilities By Significant Counterparty Not Offset [Table Text Block]",
        "label": "Schedule Of Derivative And Financial Liabilities By Significant Counterparty Not Offset Table [Text Block]",
        "terseLabel": "Summary of Derivative Liabilities, Financial Liabilities and Collateral Pledged by Counterparty"
       }
      }
     },
     "localname": "ScheduleOfDerivativeAndFinancialLiabilitiesBySignificantCounterpartyNotOffsetTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfExpensesRelatedToTransactionWithAffiliateTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of expenses related to transaction with affiliate.",
        "label": "Schedule Of Expenses Related To Transaction With Affiliate Table [Text Block]",
        "terseLabel": "Summary of Expenses"
       }
      }
     },
     "localname": "ScheduleOfExpensesRelatedToTransactionWithAffiliateTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfFairValueInputsDateOfSaleMortgageServicingRightTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of key inputs used to estimate the fair value of mortgage servicing rights at initial recognition.",
        "label": "Schedule Of Fair Value Inputs Date Of Sale Mortgage Servicing Right Table [Text Block]",
        "terseLabel": "Key Assumptions Used in Determining Fair Value of MSRs at Time of Initial Recognition"
       }
      }
     },
     "localname": "ScheduleOfFairValueInputsDateOfSaleMortgageServicingRightTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfInvestmentInMortgageBackedSecuritiesActivityTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of investment in mortgage backed securities activity.",
        "label": "Schedule Of Investment In Mortgage Backed Securities Activity Table [Text Block]",
        "terseLabel": "Schedule of Investment in Mortgage Backed Securities Activity"
       }
      }
     },
     "localname": "ScheduleOfInvestmentInMortgageBackedSecuritiesActivityTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfInvestmentInMortgageBackedSecuritiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of investment in mortgage backed securities.",
        "label": "Schedule Of Investment In Mortgage Backed Securities Table [Text Block]",
        "terseLabel": "Schedule of Investment in Mortgage Backed Securities"
       }
      }
     },
     "localname": "ScheduleOfInvestmentInMortgageBackedSecuritiesTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfKeyInputsUsedInValuationOfExcessServicingSpreadAtFairValueTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule Of Key Inputs Used In Valuation Of Excess Servicing Spread At Fair Value [Table Text Block]",
        "label": "Schedule Of Key Inputs Used In Valuation Of Excess Servicing Spread At Fair Value Table [Text Block]",
        "terseLabel": "Summary of Key Inputs Used in Determining Fair Value of ESS"
       }
      }
     },
     "localname": "ScheduleOfKeyInputsUsedInValuationOfExcessServicingSpreadAtFairValueTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfKeyInputsUsedInValuationOfInterestRateLockCommitmentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule Of Key Inputs Used In Valuation Of Interest Rate Lock Commitments Table [Text Block]",
        "label": "Schedule Of Key Inputs Used In Valuation Of Interest Rate Lock Commitments Table [Text Block]",
        "terseLabel": "Quantitative Summary of Key Unobservable Inputs Used in Valuation of Interest Rate Lock Commitments"
       }
      }
     },
     "localname": "ScheduleOfKeyInputsUsedInValuationOfInterestRateLockCommitmentsTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfKeyInputsUsedInValuationOfMortgageLoansAtFairValueTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of key inputs used in valuation of mortgage loans at fair value.",
        "label": "Schedule Of Key Inputs Used In Valuation Of Mortgage Loans At Fair Value Table [Text Block]",
        "terseLabel": "Quantitative Summary of Key Inputs Used in Valuation of Loans at Fair Value (Excluding Loans Held in a VIE)"
       }
      }
     },
     "localname": "ScheduleOfKeyInputsUsedInValuationOfMortgageLoansAtFairValueTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfKeyUnobservableInputsUsedInValuationOfCreditRiskTransfersTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of key unobservable inputs used In valuation of credit risk transfers.",
        "label": "Schedule Of Key Unobservable Inputs Used In Valuation Of Credit Risk Transfers Table [Text Block]",
        "terseLabel": "Quantitative Summary of Key Unobservable Inputs Used in Valuation of CRT Agreements"
       }
      }
     },
     "localname": "ScheduleOfKeyUnobservableInputsUsedInValuationOfCreditRiskTransfersTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfKeyUnobservableInputsUsedInValuationOfFirmCommitmentToPurchaseCreditRiskTransferSecuritiesAtFairValueTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of key unobservable inputs used in valuation of firm commitment to purchase credit risk transfer securities at fair value.",
        "label": "Schedule Of Key Unobservable Inputs Used In Valuation Of Firm Commitment To Purchase Credit Risk Transfer Securities At Fair Value Table [Text Block]",
        "terseLabel": "Summary of Key Unobservable Inputs Used in Valuation of Firm Commitment to Purchase CRT Securities"
       }
      }
     },
     "localname": "ScheduleOfKeyUnobservableInputsUsedInValuationOfFirmCommitmentToPurchaseCreditRiskTransferSecuritiesAtFairValueTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfKeyUnobservableInputsUsedInValuationOfInterestOnlyStrippedCreditRiskTransferSecuritiesAtFairValueTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of key unobservable inputs used in valuation of interest only stripped credit risk transfer securities at fair value.",
        "label": "Schedule Of Key Unobservable Inputs Used In Valuation Of Interest Only Stripped Credit Risk Transfer Securities At Fair Value Table [Text Block]",
        "terseLabel": "Summary of Key Unobservable Inputs Used in Valuation of Credit Risk Transfer Strips"
       }
      }
     },
     "localname": "ScheduleOfKeyUnobservableInputsUsedInValuationOfInterestOnlyStrippedCreditRiskTransferSecuritiesAtFairValueTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfMortgageLoanAcquiredForSaleTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of mortgage loan acquired for sale.",
        "label": "Schedule Of Mortgage Loan Acquired For Sale Table [Text Block]",
        "terseLabel": "Summary of Distribution of Company's Loans Acquired for Sale at Fair Value"
       }
      }
     },
     "localname": "ScheduleOfMortgageLoanAcquiredForSaleTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfMortgageLoanParticipationAgreementsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents disclosure of participation agreements with commercial banks whereby the Company sells its interest in pooled mortgage loans subject to forward sale agreements to the bank before receipt of the mortgage backed security from the pool's guaranteeing agency.",
        "label": "Schedule Of Mortgage Loan Participation Agreements Table [Text Block]",
        "terseLabel": "Summary of Mortgage Loan Participation Purchase and Sale Agreements"
       }
      }
     },
     "localname": "ScheduleOfMortgageLoanParticipationAgreementsTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfNetGainLossOnMortgageLoansAcquiredForSaleTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents key components of the gain on mortgage loans acquired for sale recognized during the period.",
        "label": "Schedule Of Net Gain Loss On Mortgage Loans Acquired For Sale Table [Text Block]",
        "terseLabel": "Schedule of Net Gain on Loans Acquired for Sale"
       }
      }
     },
     "localname": "ScheduleOfNetGainLossOnMortgageLoansAcquiredForSaleTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfNetMortgageLoanServicingFeesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Summary of the components of net mortgage loan servicing fees recorded during the period.",
        "label": "Schedule Of Net Mortgage Loan Servicing Fees Table [Text Block]",
        "terseLabel": "Summary of Net Loan Servicing Fees"
       }
      }
     },
     "localname": "ScheduleOfNetMortgageLoanServicingFeesTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfOtherNonOperatingIncomeExpenseTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule Of Other Non operating Income Expense [Table]",
        "label": "Schedule Of Other Non Operating Income Expense [Table]",
        "terseLabel": "Schedule Of Other Non Operating Income Expense [Table]"
       }
      }
     },
     "localname": "ScheduleOfOtherNonOperatingIncomeExpenseTable",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOtherExpensesSummaryOfOtherExpensesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_ScheduleOfRelatedPartyTransactionsBaseManagementAndPerformanceIncentiveFeesEarnedTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents amounts and disclosures relating to transactions between the company and its affiliates relating to management fees payable to the affiliate during the period and at period end.",
        "label": "Schedule Of Related Party Transactions Base Management And Performance Incentive Fees Earned Table [Text Block]",
        "terseLabel": "Summary of Base Management and Performance Incentive Fees Payable"
       }
      }
     },
     "localname": "ScheduleOfRelatedPartyTransactionsBaseManagementAndPerformanceIncentiveFeesEarnedTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfSecuredNotePayableOfMortgageServicingRightsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of secured note payable of mortgage servicing rights.",
        "label": "Schedule Of Secured Note Payable Of Mortgage Servicing Rights Table [Text Block]",
        "terseLabel": "Summary of Financial Information Relating to Note Payable"
       }
      }
     },
     "localname": "ScheduleOfSecuredNotePayableOfMortgageServicingRightsTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_ScheduleOfSharesRepurchaseTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of shares repurchase.",
        "label": "Schedule Of Shares Repurchase Table [Text Block]",
        "terseLabel": "Summary of Share Repurchase Activity"
       }
      }
     },
     "localname": "ScheduleOfSharesRepurchaseTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_SecuredTermNotesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Secured term notes.",
        "label": "Secured Term Notes [Member]",
        "terseLabel": "Secured Term Notes [Member]"
       }
      }
     },
     "localname": "SecuredTermNotesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_SecuritiesSoldUnderAgreementsAvailableBorrowingCapacity": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Securities Sold Under Agreements Available Borrowing Capacity",
        "label": "Securities Sold Under Agreements Available Borrowing Capacity",
        "totalLabel": "Available borrowing capacity",
        "verboseLabel": "Maximum aggregate purchase price provided"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsAvailableBorrowingCapacity",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_SecuritiesSoldUnderAgreementsAvailableBorrowingCapacityUncommitted": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail": {
       "order": 10740.0,
       "parentTag": "pmt_SecuritiesSoldUnderAgreementsAvailableBorrowingCapacity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Securities Sold Under Agreements Available Borrowing Capacity Uncommitted",
        "label": "Securities Sold Under Agreements Available Borrowing Capacity Uncommitted",
        "terseLabel": "Available borrowing capacity, Uncommitted",
        "verboseLabel": "Uncommitted amount of aggregate purchase price"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsAvailableBorrowingCapacityUncommitted",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_SecuritiesSoldUnderAgreementsToRepurchaseMaturityDate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Securities Sold under Agreements to Repurchase Maturity Date",
        "label": "Securities Sold Under Agreements To Repurchase Maturity Date",
        "terseLabel": "Mortgage acquired for sale Weighted-average repurchase agreement maturity"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseMaturityDate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "pmt_SecuritiesSoldUnderAgreementsToRepurchaseScheduleOfRepurchaseAgreementCounterPartiesWithWhomRepurchaseAgreementsExceedTenPercentOfStockholdersEquityTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents amount at risk by repurchase counter party for securities sold under agreements to repurchase.",
        "label": "Securities Sold Under Agreements To Repurchase Schedule Of Repurchase Agreement Counter Parties With Whom Repurchase Agreements Exceed Ten Percent Of Stockholders Equity Table [Text Block]",
        "terseLabel": "Summary of Assets Sold under Agreements to Repurchase by Counterparty"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseScheduleOfRepurchaseAgreementCounterPartiesWithWhomRepurchaseAgreementsExceedTenPercentOfStockholdersEquityTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_SecuritiesSoldUnderAgreementsToRepurchaseWeightedAverageInterestRateAtPeriodEnd": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Securities sold under agreements to repurchase weighted average interest rate at period end.",
        "label": "Securities Sold Under Agreements To Repurchase Weighted Average Interest Rate At Period End",
        "terseLabel": "Weighted average interest rate"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseWeightedAverageInterestRateAtPeriodEnd",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_SecuritiesSoldUnderAgreementsToRepurchaseWeightedAverageInterestRateDuringPeriod": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Securities sold under agreements to repurchase weighted average interest rate during period.",
        "label": "Securities Sold Under Agreements To Repurchase Weighted Average Interest Rate During Period",
        "terseLabel": "Weighted average interest rate"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseWeightedAverageInterestRateDuringPeriod",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_SecurititesInterestOnlyStrippedMeasurementInput": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Securitites interest only stripped measurement input.",
        "label": "Securitites Interest Only Stripped Measurement Input",
        "terseLabel": "Key inputs used in valuation"
       }
      }
     },
     "localname": "SecurititesInterestOnlyStrippedMeasurementInput",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationCreditRiskTransferStripsDetail"
     ],
     "xbrltype": "decimalItemType"
    },
    "pmt_SeriesAAndBPreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "SeriesA and B preferred stock.",
        "label": "Series A And B Preferred Stock [Member]",
        "terseLabel": "8.125% Series A And 8.00% Series B Preferred Stock [Member]"
       }
      }
     },
     "localname": "SeriesAAndBPreferredStockMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_ServiceAgreementMaturityRenewalTerm": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Service Agreement Maturity Renewal Term",
        "label": "Service Agreement Maturity Renewal Term",
        "terseLabel": "Renewal period of servicing agreement"
       }
      }
     },
     "localname": "ServiceAgreementMaturityRenewalTerm",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "pmt_ServicesAgreementExpirationDate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Services Agreement Expiration Date",
        "label": "Services Agreement Expiration Date",
        "terseLabel": "Servicing agreement expiration date"
       }
      }
     },
     "localname": "ServicesAgreementExpirationDate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "pmt_ServicesAgreementFeesCollectionPeriod": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Services agreement fees collection period.",
        "label": "Services Agreement Fees Collection Period",
        "terseLabel": "Services agreement fees collection period"
       }
      }
     },
     "localname": "ServicesAgreementFeesCollectionPeriod",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "pmt_ServicesFeeAnnualRate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Average servicing fee rate in basis points applicable to MSRs underlying ESS carried at fair value.",
        "label": "Services Fee Annual Rate",
        "terseLabel": "Average servicing fee rate (in basis points)"
       }
      }
     },
     "localname": "ServicesFeeAnnualRate",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_ServicingAdvances": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10390.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Advances made by a mortgage loan servicer to to meet contractual principal and interest remittance requirements for investors, pay property taxes and insurance premiums, legal expenses and other protective advances to maintain, repair and market real estate properties on behalf of investors.",
        "label": "Servicing Advances",
        "terseLabel": "Servicing advances"
       }
      }
     },
     "localname": "ServicingAdvances",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ServicingAssetAtFairValueAdditionsFromLoanSales": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The value of new servicing assets, subsequently measured at fair value, acquired or created during the current period from transfers of financial assets.",
        "label": "Servicing Asset At Fair Value Additions From Loan Sales",
        "terseLabel": "Amounts received as proceeds from sales of loans",
        "verboseLabel": "Fair value, MSR recognized"
       }
      }
     },
     "localname": "ServicingAssetAtFairValueAdditionsFromLoanSales",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueKeyAssumptionsUsedInDeterminingFairValueOfMsrsAtTimeOfInitialRecognitionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfMsrsCarriedAtFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ServicingAssetAtFairValueAfterReclassificationAdjustedAmount": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfMsrsCarriedAtFairValueDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Servicing asset at fair value after reclassification, adjusted amount.",
        "label": "Servicing Asset At Fair Value After Reclassification Adjusted Amount",
        "totalLabel": "Balance after reclassification"
       }
      }
     },
     "localname": "ServicingAssetAtFairValueAfterReclassificationAdjustedAmount",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfMsrsCarriedAtFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ServicingAssetAtFairValueChangesInFairValueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Servicing Asset At Fair Value Changes In Fair Value [Abstract]",
        "label": "Servicing Asset At Fair Value Changes In Fair Value [Abstract]"
       }
      }
     },
     "localname": "ServicingAssetAtFairValueChangesInFairValueAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "xbrltype": "stringItemType"
    },
    "pmt_ServicingAssetAtFairValueTransferOfMortgageServicingRightsFromMortgageServicingRightsCarriedAtLowerOfAmortizedCostOrFairValuePursuantToChangeInAccountingPrinciple": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfMsrsCarriedAtFairValueDetail": {
       "order": 10040.0,
       "parentTag": "pmt_ServicingAssetAtFairValueAfterReclassificationAdjustedAmount",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Servicing asset at fair value transfer of mortgage servicing rights from mortgage servicing rights carried at lower of amortized cost or fair value pursuant to change in accounting principle.",
        "label": "Servicing Asset At Fair Value Transfer Of Mortgage Servicing Rights From Mortgage Servicing Rights Carried At Lower Of Amortized Cost Or Fair Value Pursuant To Change In Accounting Principle",
        "terseLabel": "Transfer of mortgage servicing rights from mortgage servicing rights carried at lower of amortized cost or fair value pursuant to a change in accounting principle"
       }
      }
     },
     "localname": "ServicingAssetAtFairValueTransferOfMortgageServicingRightsFromMortgageServicingRightsCarriedAtLowerOfAmortizedCostOrFairValuePursuantToChangeInAccountingPrinciple",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfMsrsCarriedAtFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ServicingAssetPledgedToCreditors": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Servicing asset pledged to creditors.",
        "label": "Servicing Asset Pledged To Creditors",
        "terseLabel": "Mortgage servicing rights pledged to creditors"
       }
      }
     },
     "localname": "ServicingAssetPledgedToCreditors",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ServicingIncomeLossNetOfValuationAdjustments": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail": {
       "order": 10060.0,
       "parentTag": "us-gaap_RevenuesNetOfInterestExpense",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10190.0,
       "parentTag": "us-gaap_RevenuesNetOfInterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Servicing income (loss) net of valuation adjustments and fair value impairment for MSRs.",
        "label": "Servicing Income Loss Net Of Valuation Adjustments",
        "terseLabel": "Net loan servicing fees"
       }
      }
     },
     "localname": "ServicingIncomeLossNetOfValuationAdjustments",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ServicingPortfolioPercentageOfCashInAmountEqualToFairMarketValueOfMsrRelatedToAllLoans": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Servicing portfolio percentage of cash in amount equal to fair market value of MSR related to all loans.",
        "label": "Servicing Portfolio Percentage Of Cash In Amount Equal To Fair Market Value Of Msr Related To All Loans",
        "terseLabel": "Percentage of cash in amount equal to fair market value of MSRs related to all loans"
       }
      }
     },
     "localname": "ServicingPortfolioPercentageOfCashInAmountEqualToFairMarketValueOfMsrRelatedToAllLoans",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_SettlementOfFirmCommitmentToPurchaseCreditRiskTransferSecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10270.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Settlement of firm commitment to purchase credit risk transfer securities.",
        "label": "Settlement Of Firm Commitment To Purchase Credit Risk Transfer Securities",
        "terseLabel": "Settlement of firm commitment to purchase credit risk transfer securities"
       }
      }
     },
     "localname": "SettlementOfFirmCommitmentToPurchaseCreditRiskTransferSecurities",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodGrantDateFairValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The weighted average fair value at grant date for nonvested restricted share units issued during the period.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Grants In Period Grant Date Fair Value",
        "terseLabel": "Total grant date value of share units granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodGrantDateFairValue",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlansSummaryOfShareBasedCompensationActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_SourcingFeeOnAverageDaysHeldMortgageLoans": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Sourcing fee on average days held mortgage loans.",
        "label": "Sourcing Fee On Average Days Held Mortgage Loans",
        "terseLabel": "Sourcing fee on average number of calendar days loans are held prior to purchase by PLS"
       }
      }
     },
     "localname": "SourcingFeeOnAverageDaysHeldMortgageLoans",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_SourcingFeeOnUnpaidPrincipalBalance": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fee expressed in basis points of the unpaid principal balance earned by the Company relating to transfers of government-insured or guaranteed mortgage loans that it purchases from correspondent lenders to an affiliate.",
        "label": "Sourcing Fee On Unpaid Principal Balance",
        "terseLabel": "Interest income and sourcing fee"
       }
      }
     },
     "localname": "SourcingFeeOnUnpaidPrincipalBalance",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_StockRepurchaseProgramCostOfCumulativeSharesRepurchased": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Stock repurchase program cost of cumulative shares repurchased.",
        "label": "Stock Repurchase Program Cost Of Cumulative Shares Repurchased",
        "terseLabel": "Cumulative cost of shares repurchased"
       }
      }
     },
     "localname": "StockRepurchaseProgramCostOfCumulativeSharesRepurchased",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfShareRepurchaseActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_StockRepurchaseProgramCumulativeNumberOfSharesRepurchased": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Stock repurchase program cumulative number of shares repurchased.",
        "label": "Stock Repurchase Program Cumulative Number Of Shares Repurchased",
        "terseLabel": "Cumulative shares repurchased"
       }
      }
     },
     "localname": "StockRepurchaseProgramCumulativeNumberOfSharesRepurchased",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfShareRepurchaseActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "pmt_StockholdersEquityAdjustedBalance": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Stockholders equity adjusted balance.",
        "label": "Stockholders Equity Adjusted Balance",
        "periodStartLabel": "Balance, Amount"
       }
      }
     },
     "localname": "StockholdersEquityAdjustedBalance",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_SubServicingLoanMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Sub Servicing Loan [Member]",
        "label": "Sub Servicing Loan [Member]",
        "terseLabel": "Subserviced loan [Member]"
       }
      }
     },
     "localname": "SubServicingLoanMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_SummarizesCashFlowsBetweenCompanyAndTransfereesUponSaleOfLoansInTransactionsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Summarizes cash flows between the Company and transferees upon sale of loans in transactions.",
        "label": "Summarizes Cash Flows Between Company And Transferees Upon Sale Of Loans In Transactions Table [Text Block]",
        "terseLabel": "Summary of Cash Flows between Company and Transferees in Transfers Accounted for Sales"
       }
      }
     },
     "localname": "SummarizesCashFlowsBetweenCompanyAndTransfereesUponSaleOfLoansInTransactionsTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_SummarizesUnpaidBalanceInformationForMortgageLoansUponSaleOfLoansInTransactionsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Summarizes unpaid balance information for mortgage loans upon sale of loans in transactions.",
        "label": "Summarizes Unpaid Balance Information For Mortgage Loans Upon Sale Of Loans In Transactions Table [Text Block]",
        "terseLabel": "Summary of Collection Status Information for Loans Accounted for Sales"
       }
      }
     },
     "localname": "SummarizesUnpaidBalanceInformationForMortgageLoansUponSaleOfLoansInTransactionsTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_SummaryOfFinancingTransactionsWithAffiliateTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Summary Of Financing Transactions With Affiliate [Table Text Block]",
        "label": "Summary Of Financing Transactions With Affiliate Table [Text Block]",
        "terseLabel": "Summary Of Financing Transactions"
       }
      }
     },
     "localname": "SummaryOfFinancingTransactionsWithAffiliateTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_SummaryOfInvestmentInCreditRiskTransferStripsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Summary of investment in credit risk transfer strips.",
        "label": "Summary Of Investment In Credit Risk Transfer Strips Table [Text Block]",
        "terseLabel": "Summary of Investment In CRT Strips"
       }
      }
     },
     "localname": "SummaryOfInvestmentInCreditRiskTransferStripsTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_SummaryOfInvestmentTransactionsWithAffiliateTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Summary Of Investment Transactions With Affiliate [Table Text Block]",
        "label": "Summary Of Investment Transactions With Affiliate Table [Text Block]",
        "terseLabel": "Summary of Investing Activity"
       }
      }
     },
     "localname": "SummaryOfInvestmentTransactionsWithAffiliateTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_SummaryOfRecourseLiabilityTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents summaries of activity in the recourse liability during the period.",
        "label": "Summary Of Recourse Liability Table [Text Block]",
        "terseLabel": "Summary of Company's Liability for Losses under Representations and Warranties"
       }
      }
     },
     "localname": "SummaryOfRecourseLiabilityTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLiabilityForLossesUnderRepresentationsAndWarrantiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_SummaryOfUnderwrittenOfferingsOfCommonSharesOfBeneficialInterestTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Summary of underwritten offerings of common shares of beneficial interest.",
        "label": "Summary Of Underwritten Offerings Of Common Shares Of Beneficial Interest Table [Text Block]",
        "terseLabel": "Summary of Underwritten Offerings of Common Shares"
       }
      }
     },
     "localname": "SummaryOfUnderwrittenOfferingsOfCommonSharesOfBeneficialInterestTableTextBlock",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "pmt_SupplementalFeesReceived": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Supplemental Fees Received",
        "label": "Supplemental Fees Received",
        "terseLabel": "Supplemental fee received per month"
       }
      }
     },
     "localname": "SupplementalFeesReceived",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_SupplementalNonCashFinancingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Supplemental Non Cash Financing Activities [Abstract]",
        "label": "Supplemental Non Cash Financing Activities [Abstract]",
        "terseLabel": "Non-cash financing activities:"
       }
      }
     },
     "localname": "SupplementalNonCashFinancingActivitiesAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationSummaryOfSupplementalCashFlowInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_SupplementalNoncashInvestingActivityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Supplemental Noncash Investing Activity [Abstract]",
        "label": "Supplemental Noncash Investing Activity [Abstract]",
        "terseLabel": "Non-cash investing activities:"
       }
      }
     },
     "localname": "SupplementalNoncashInvestingActivityAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationSummaryOfSupplementalCashFlowInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_SwapFuturesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Swap Futures [Member]",
        "label": "Swap Futures [Member]",
        "terseLabel": "Swap Futures [Member]"
       }
      }
     },
     "localname": "SwapFuturesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_TaxServiceFeesPaid": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents tax service fees paid to an affiliate relating to mortgage loans fulfilled for the company by the affiliate.",
        "label": "Tax Service Fees Paid",
        "terseLabel": "Tax service fee paid to PLS included in Other expense"
       }
      }
     },
     "localname": "TaxServiceFeesPaid",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfCorrespondentProductionActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_TaxableREITSubsidiaryMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Taxable REIT Subsidiary [Member]",
        "label": "Taxable R E I T Subsidiary [Member]",
        "terseLabel": "Taxable REIT Subsidiary [Member]"
       }
      }
     },
     "localname": "TaxableREITSubsidiaryMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_TechnologyExpensesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Technology expenses.",
        "label": "Technology Expenses [Member]",
        "terseLabel": "Technology [Member]"
       }
      }
     },
     "localname": "TechnologyExpensesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOtherExpensesSummaryOfOtherExpensesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_TerminationFeesDescription": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Description of the fee payable by the company in the event of termination of the management agreement.",
        "label": "Termination Fees Description",
        "terseLabel": "Termination fees, description"
       }
      }
     },
     "localname": "TerminationFeesDescription",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_TransferFromRealEstateHeldForInvestment": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Transfer from real estate held for investment.",
        "label": "Transfer From Real Estate Held For Investment",
        "terseLabel": "Transfer from real estate held for investment"
       }
      }
     },
     "localname": "TransferFromRealEstateHeldForInvestment",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_TransferFromRealEstateHeldForInvestmentToRealEstateAcquiredInSettlementOfLoans": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Transfer from real estate held for investment to real estate acquired in settlement of loans.",
        "label": "Transfer From Real Estate Held For Investment To Real Estate Acquired In Settlement Of Loans",
        "terseLabel": "Transfer from real estate held for investment to real estate acquired in settlement of loans"
       }
      }
     },
     "localname": "TransferFromRealEstateHeldForInvestmentToRealEstateAcquiredInSettlementOfLoans",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationSummaryOfSupplementalCashFlowInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_TransferOfFirmCommitmentsToPurchaseCreditRiskTransferSecuritiesToInvestmentSecurities": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Transfer of firm commitments to purchase credit risk transfer securities to investment securities",
        "label": "Transfer Of Firm Commitments To Purchase Credit Risk Transfer Securities To Investment Securities",
        "terseLabel": "Firm commitment to purchase CRT securities to Investment securities"
       }
      }
     },
     "localname": "TransferOfFirmCommitmentsToPurchaseCreditRiskTransferSecuritiesToInvestmentSecurities",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationSummaryOfSupplementalCashFlowInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_TransferOfInterestRateLockCommitmentsToLoansAcquiredForSale": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Transfer Of Interest Rate Lock Commitments To Loans Acquired For Sale",
        "label": "Transfer Of Interest Rate Lock Commitments To Loans Acquired For Sale",
        "terseLabel": "Interest rate lock commitments to loans acquired for sale"
       }
      }
     },
     "localname": "TransferOfInterestRateLockCommitmentsToLoansAcquiredForSale",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_TransferOfOtherRealEstateToRealEstateHeldForInvestment": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Transfer of other real estate to real estate held for investment.",
        "label": "Transfer Of Other Real Estate To Real Estate Held For Investment",
        "verboseLabel": "Transfer of real estate acquired in settlement of mortgage loans to real estate held for investment"
       }
      }
     },
     "localname": "TransferOfOtherRealEstateToRealEstateHeldForInvestment",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationSummaryOfSupplementalCashFlowInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_TransfersAstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Transfers.",
        "label": "Transfers Astract",
        "terseLabel": "Transfers:"
       }
      }
     },
     "localname": "TransfersAstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_TreasuryFutureBuyContractsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Treasury Future Buy Contracts [Member].",
        "label": "Treasury Future Buy Contracts [Member]",
        "terseLabel": "Treasury Future Buy Contracts [Member]"
       }
      }
     },
     "localname": "TreasuryFutureBuyContractsMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_TreasuryFutureSaleContractsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Treasury future sale contracts.",
        "label": "Treasury Future Sale Contracts [Member]",
        "terseLabel": "Treasury Future Sale Contracts [Member]"
       }
      }
     },
     "localname": "TreasuryFutureSaleContractsMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_UnamortizedDebtIssuanceCostsAdjustmentMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unamortized Debt Issuance Costs Adjustment [Member]",
        "label": "Unamortized Debt Issuance Costs Adjustment [Member]",
        "terseLabel": "Unamortized Debt Issuance Costs [Member]"
       }
      }
     },
     "localname": "UnamortizedDebtIssuanceCostsAdjustmentMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_UnderwritingFeesWaived": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Underwriting fees waived.",
        "label": "Underwriting Fees Waived",
        "terseLabel": "Underwriting fees waived"
       }
      }
     },
     "localname": "UnderwritingFeesWaived",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_UnpaidBalanceMortgageLoansSoldWithContinuingInvolvementDelinquentNinetyDaysOrMoreAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unpaid Balance Mortgage Loans Sold With Continuing Involvement Delinquent Ninety Days Or More [Abstract]",
        "label": "Unpaid Balance Mortgage Loans Sold With Continuing Involvement Delinquent Ninety Days Or More [Abstract]",
        "terseLabel": "90 or more days delinquent:"
       }
      }
     },
     "localname": "UnpaidBalanceMortgageLoansSoldWithContinuingInvolvementDelinquentNinetyDaysOrMoreAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCollectionStatusInformationForLoansAccountedForSalesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_UnpaidBalanceOfMortgageLoansSold": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the unpaid principal balance at the date of transfer of mortgage loans sold subject to credit risk transfer agreements with the Agencies.",
        "label": "Unpaid Balance Of Mortgage Loans Sold",
        "terseLabel": "UPB of loans sold under CRT arrangements"
       }
      }
     },
     "localname": "UnpaidBalanceOfMortgageLoansSold",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_UnpaidBalanceOfMortgageLoansSoldSubjectToFirmCommitmentToPurchaseCreditRiskTransferSecuritiesRelatedToMortgageLoans": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unpaid balance of mortgage loans sold subject to firm commitment to purchase credit risk transfer securities related to mortgage loans.",
        "label": "Unpaid Balance Of Mortgage Loans Sold Subject To Firm Commitment To Purchase Credit Risk Transfer Securities Related To Mortgage Loans",
        "terseLabel": "UPB of loans sold subject to firm commitment to purchase CRT securities"
       }
      }
     },
     "localname": "UnpaidBalanceOfMortgageLoansSoldSubjectToFirmCommitmentToPurchaseCreditRiskTransferSecuritiesRelatedToMortgageLoans",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_UnpaidBalanceOfMortgageLoansSubjectToCreditGuaranteeOnCreditRiskTransferAgreementsCurrent": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unpaid balance of mortgage loans subject to credit guarantee on credit risk transfer agreements current.",
        "label": "Unpaid Balance Of Mortgage Loans Subject To Credit Guarantee On Credit Risk Transfer Agreements Current",
        "terseLabel": "Current"
       }
      }
     },
     "localname": "UnpaidBalanceOfMortgageLoansSubjectToCreditGuaranteeOnCreditRiskTransferAgreementsCurrent",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_UnpaidBalanceOfMortgageLoansSubjectToCreditGuaranteeOnCreditRiskTransferAgreementsDelinquentBankruptcy": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unpaid balance of mortgage loans subject to credit guarantee on credit risk transfer agreements delinquent bankruptcy.",
        "label": "Unpaid Balance Of Mortgage Loans Subject To Credit Guarantee On Credit Risk Transfer Agreements Delinquent Bankruptcy",
        "terseLabel": "Bankruptcy"
       }
      }
     },
     "localname": "UnpaidBalanceOfMortgageLoansSubjectToCreditGuaranteeOnCreditRiskTransferAgreementsDelinquentBankruptcy",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_UnpaidBalanceOfMortgageLoansSubjectToCreditGuaranteeOnCreditRiskTransferAgreementsDelinquentForeclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unpaid balance of mortgage loans subject to credit guarantee on credit risk transfer agreements delinquent foreclosure.",
        "label": "Unpaid Balance Of Mortgage Loans Subject To Credit Guarantee On Credit Risk Transfer Agreements Delinquent Foreclosure",
        "terseLabel": "Foreclosure"
       }
      }
     },
     "localname": "UnpaidBalanceOfMortgageLoansSubjectToCreditGuaranteeOnCreditRiskTransferAgreementsDelinquentForeclosure",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_UnpaidBalanceOfMortgageLoansSubjectToCreditGuaranteesOnCreditRiskTransferAgreements": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unpaid balance of mortgage loans subject to credit guarantees on credit risk transfer agreements.",
        "label": "Unpaid Balance Of Mortgage Loans Subject To Credit Guarantees On Credit Risk Transfer Agreements",
        "terseLabel": "UPB of loans subject to funded CRT arrangements"
       }
      }
     },
     "localname": "UnpaidBalanceOfMortgageLoansSubjectToCreditGuaranteesOnCreditRiskTransferAgreements",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_UnpaidPrincipalBalanceBeforeUnamortizedDebtIssuanceCostsAdjustmentMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unpaid principal balance before unamortized debt issuance costs adjustment.",
        "label": "Unpaid Principal Balance Before Unamortized Debt Issuance Costs Adjustment [Member]",
        "terseLabel": "Unpaid Principal Balance Before Unamortized Debt Issuance Costs Adjustment [Member]"
       }
      }
     },
     "localname": "UnpaidPrincipalBalanceBeforeUnamortizedDebtIssuanceCostsAdjustmentMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_UnpaidPrincipalBalanceMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unpaid Principal Balance [Member]",
        "label": "Unpaid Principal Balance [Member]",
        "terseLabel": "Unpaid Principal Balance [Member]"
       }
      }
     },
     "localname": "UnpaidPrincipalBalanceMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_UnpaidPrincipalBalanceOfDelinquentMortgageLoansAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unpaid principal balance of delinquent mortgage loans.",
        "label": "Unpaid Principal Balance Of Delinquent Mortgage Loans [Abstract]",
        "terseLabel": "UPB of delinquent loans:"
       }
      }
     },
     "localname": "UnpaidPrincipalBalanceOfDelinquentMortgageLoansAbstract",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCollectionStatusInformationForLoansAccountedForSalesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "pmt_UnpaidPrincipalBalanceOfMortgageLoansInBankruptcy": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents unpaid principal balance of mortgage loans in bankruptcy.",
        "label": "Unpaid Principal Balance Of Mortgage Loans In Bankruptcy",
        "terseLabel": "UPB of loans in bankruptcy"
       }
      }
     },
     "localname": "UnpaidPrincipalBalanceOfMortgageLoansInBankruptcy",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCollectionStatusInformationForLoansAccountedForSalesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_ValuationChangesInExcessServicingSpread": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_GainLossOnInvestments",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Valuation adjustment changes in excess servicing spread.",
        "label": "Valuation Changes In Excess Servicing Spread",
        "negatedLabel": "Valuation changes"
       }
      }
     },
     "localname": "ValuationChangesInExcessServicingSpread",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "pmt_VariableFundingNoteMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Variable funding note.",
        "label": "Variable Funding Note [Member]",
        "terseLabel": "VFN [Member]"
       }
      }
     },
     "localname": "VariableFundingNoteMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_WarehouseServicesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Warehouse Services [Member]",
        "label": "Warehouse Services [Member]",
        "terseLabel": "Warehouse services [Member]"
       }
      }
     },
     "localname": "WarehouseServicesMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_WeightedAverageYield": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted Average Yield of securities issued by variable interest entity.",
        "label": "Weighted Average Yield",
        "terseLabel": "Weighted yield"
       }
      }
     },
     "localname": "WeightedAverageYield",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "pmt_WellsFargoSecuritiesLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Wells Fargo Securities, LLC.",
        "label": "Wells Fargo Securities L L C [Member]",
        "terseLabel": "Wells Fargo Securities, LLC [Member]"
       }
      }
     },
     "localname": "WellsFargoSecuritiesLLCMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "pmt_WholeLoanMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Whole Loan.",
        "label": "Whole Loan [Member]",
        "terseLabel": "Whole loans [Member]"
       }
      }
     },
     "localname": "WholeLoanMember",
     "nsuri": "http://www.pennymacmortgageinvestmenttrust.com/20190630",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_CounterpartyNameAxis": {
     "auth_ref": [
      "r45",
      "r98",
      "r443"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by name of counterparty. A counterparty is the other party that participates in a financial transaction. Examples include, but not limited to, the name of the financial institution.",
        "label": "Counterparty Name [Axis]",
        "terseLabel": "Counterparty Name"
       }
      }
     },
     "localname": "CounterpartyNameAxis",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsSummaryOfCapitalAndLiquidityAmountsAndRequirementsByAgenciesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MaximumMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Upper limit of the provided range.",
        "label": "Maximum [Member]",
        "terseLabel": "Maximum [Member]"
       }
      }
     },
     "localname": "MaximumMember",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueKeyAssumptionsUsedInDeterminingFairValueOfMsrsAtTimeOfInitialRecognitionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInValuationOfInterestRateLockCommitmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MinimumMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Lower limit of the provided range.",
        "label": "Minimum [Member]",
        "terseLabel": "Minimum [Member]"
       }
      }
     },
     "localname": "MinimumMember",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueKeyAssumptionsUsedInDeterminingFairValueOfMsrsAtTimeOfInitialRecognitionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInValuationOfInterestRateLockCommitmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MortgageLoansOnRealEstateAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Mortgage Loans On Real Estate [Abstract]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateAbstract",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstateByLoanDisclosureTextBlock": {
     "auth_ref": [
      "r434",
      "r442"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate. Includes, but is not limited to, information for each mortgage loan receivable equaling or exceeding three percent of carrying amount of mortgage.",
        "label": "Mortgage Loans On Real Estate By Loan Disclosure [Text Block]",
        "terseLabel": "Loans Acquired for Sale at Fair Value"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateByLoanDisclosureTextBlock",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValue"
     ],
     "xbrltype": "textBlockItemType"
    },
    "srt_MortgageLoansOnRealEstateDescriptionLoanCategoryAxis": {
     "auth_ref": [
      "r433",
      "r439"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by loan category for investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "Mortgage Loans On Real Estate Description Loan Category [Axis]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Loan Category"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateDescriptionLoanCategoryAxis",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstateInterestRate": {
     "auth_ref": [
      "r429",
      "r440"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest rate of mortgage loan within investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "Mortgage Loans On Real Estate Interest Rate",
        "terseLabel": "Weighted-average interest rate"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateInterestRate",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "srt_MortgageLoansOnRealEstateLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Mortgage Loans On Real Estate [Line Items]",
        "terseLabel": "Mortgage Loans On Real Estate [Line Items]",
        "verboseLabel": "Mortgage Loans on Real Estate [Line Items]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateLineItems",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCashFlowsBetweenCompanyAndTransfereesInTransfersAccountedForSalesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCollectionStatusInformationForLoansAccountedForSalesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstateLoanCategoryDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loan category for investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "Mortgage Loans On Real Estate Loan Category [Domain]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Loan Category"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateLoanCategoryDomain",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MortgageLoansOnRealEstateLoanTypeAxis": {
     "auth_ref": [
      "r432",
      "r438"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of loan for investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "Mortgage Loans On Real Estate Loan Type [Axis]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Loan Type"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateLoanTypeAxis",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfBaseManagementAndPerformanceIncentiveFeesPayableDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstateLoanTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Type of loan within investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "Mortgage Loans On Real Estate Loan Type [Domain]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Loan Type"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateLoanTypeDomain",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfBaseManagementAndPerformanceIncentiveFeesPayableDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MortgageLoansOnRealEstateOtherRequiredDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Mortgage Loans On Real Estate Other Required Disclosures [Abstract]",
        "terseLabel": "Loans, principal amount due upon maturity [Abstract]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateOtherRequiredDisclosuresAbstract",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstatePrincipalAmountOfDelinquentLoans": {
     "auth_ref": [
      "r431",
      "r441"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of principal due on delinquent mortgage loan within investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "Mortgage Loans On Real Estate Principal Amount Of Delinquent Loans",
        "totalLabel": "Principal amount due upon maturity, Total"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstatePrincipalAmountOfDelinquentLoans",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "srt_MortgageLoansOnRealEstateScheduleTable": {
     "auth_ref": [
      "r434",
      "r442"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "Mortgage Loans On Real Estate Schedule [Table]",
        "terseLabel": "Mortgage Loans On Real Estate Schedule [Table]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateScheduleTable",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCashFlowsBetweenCompanyAndTransfereesInTransfersAccountedForSalesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCollectionStatusInformationForLoansAccountedForSalesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ProductOrServiceAxis": {
     "auth_ref": [
      "r142",
      "r188",
      "r189",
      "r410"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by product and service, or group of similar products and similar services.",
        "label": "Product Or Service [Axis]",
        "terseLabel": "Product and Service"
       }
      }
     },
     "localname": "ProductOrServiceAxis",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ProductsAndServicesDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Product or service, or a group of similar products or similar services.",
        "label": "Products And Services [Domain]",
        "terseLabel": "Product and Service"
       }
      }
     },
     "localname": "ProductsAndServicesDomain",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RangeAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by range, including, but not limited to, upper and lower bounds.",
        "label": "Range [Axis]",
        "terseLabel": "Range"
       }
      }
     },
     "localname": "RangeAxis",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueKeyAssumptionsUsedInDeterminingFairValueOfMsrsAtTimeOfInitialRecognitionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInValuationOfInterestRateLockCommitmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RangeMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Extent of variation, for example, but not limited to, upper and lower bounds.",
        "label": "Range [Member]",
        "terseLabel": "Range"
       }
      }
     },
     "localname": "RangeMember",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueKeyAssumptionsUsedInDeterminingFairValueOfMsrsAtTimeOfInitialRecognitionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInValuationOfInterestRateLockCommitmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RepurchaseAgreementCounterpartyNameDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Named other party that participates in a financial transaction. Examples include, but not limited to, the name of the financial institution.",
        "label": "Repurchase Agreement Counterparty Name [Domain]",
        "terseLabel": "Counterparty Name"
       }
      }
     },
     "localname": "RepurchaseAgreementCounterpartyNameDomain",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsSummaryOfCapitalAndLiquidityAmountsAndRequirementsByAgenciesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RestatementAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by revision of previously issued financial statements.",
        "label": "Restatement [Axis]",
        "terseLabel": "Restatement"
       }
      }
     },
     "localname": "RestatementAxis",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RestatementDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Revision of previously issued financial statements.",
        "label": "Restatement [Domain]",
        "terseLabel": "Restatement"
       }
      }
     },
     "localname": "RestatementDomain",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScenarioPreviouslyReportedMember": {
     "auth_ref": [
      "r115",
      "r116",
      "r117"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the amount as previously reported before the correction of an error or other adjustment.",
        "label": "Scenario Previously Reported [Member]",
        "terseLabel": "Previously Reported [Member]"
       }
      }
     },
     "localname": "ScenarioPreviouslyReportedMember",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_WeightedAverageMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Average of a range of values, calculated with consideration of proportional relevance.",
        "label": "Weighted Average [Member]",
        "terseLabel": "Weighted Average [Member]"
       }
      }
     },
     "localname": "WeightedAverageMember",
     "nsuri": "http://fasb.org/srt/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueKeyAssumptionsUsedInDeterminingFairValueOfMsrsAtTimeOfInitialRecognitionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInValuationOfInterestRateLockCommitmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingChangesAndErrorCorrectionsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Accounting Changes And Error Corrections [Abstract]"
       }
      }
     },
     "localname": "AccountingChangesAndErrorCorrectionsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountingChangesTextBlock": {
     "auth_ref": [
      "r118"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for reporting accounting changes, excludes error corrections information.",
        "label": "Accounting Changes [Text Block]",
        "terseLabel": "Accounting Development"
       }
      }
     },
     "localname": "AccountingChangesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAccountingDevelopment"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Accounting Policies [Abstract]"
       }
      }
     },
     "localname": "AccountingPoliciesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountingStandardsUpdate201411Member": {
     "auth_ref": [
      "r300"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accounting Standards Update 2014-11 Transfers and Servicing (Topic 860): Repurchase-to-Maturity Transactions, Repurchase Financings, and Disclosures.",
        "label": "Accounting Standards Update201411 [Member]",
        "terseLabel": "Accounting Standards Update 2014-11 Transfers and Servicing [Member]"
       }
      }
     },
     "localname": "AccountingStandardsUpdate201411Member",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis": {
     "auth_ref": [
      "r33"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of receivable.",
        "label": "Accounts Notes Loans And Financing Receivable By Receivable Type [Axis]",
        "terseLabel": "Receivable Type"
       }
      }
     },
     "localname": "AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountsPayableAndAccruedLiabilitiesCurrentAndNoncurrent": {
     "auth_ref": [
      "r358",
      "r400"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10230.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Sum of the carrying values as of the balance sheet date of obligations incurred through that date, including liabilities incurred and payable to vendors for goods and services received, taxes, interest, rent and utilities, compensation costs, payroll taxes and fringe benefits (other than pension and postretirement obligations), contractual rights and obligations, and statutory obligations.",
        "label": "Accounts Payable And Accrued Liabilities Current And Noncurrent",
        "terseLabel": "Accounts payable and accrued liabilities"
       }
      }
     },
     "localname": "AccountsPayableAndAccruedLiabilitiesCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments": {
     "auth_ref": [
      "r84"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10400.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The sum of the periodic adjustments of the differences between securities' face values and purchase prices that are charged against earnings. This is called accretion if the security was purchased at a discount and amortization if it was purchased at premium. As a noncash item, this element is an adjustment to net income when calculating cash provided by or used in operations using the indirect method.",
        "label": "Accretion Amortization Of Discounts And Premiums Investments",
        "negatedLabel": "Accrual of unearned discounts and amortization of premiums on mortgage-backed securities, loans at fair value, and asset-backed financing of a VIE"
       }
      }
     },
     "localname": "AccretionAmortizationOfDiscountsAndPremiumsInvestments",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedIncomeTaxes": {
     "auth_ref": [
      "r7",
      "r9",
      "r210",
      "r346",
      "r390"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10250.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of the unpaid sum of the known and estimated amounts payable to satisfy all domestic and foreign income tax obligations due.  This amount is the total of current and noncurrent accrued income taxes.",
        "label": "Accrued Income Taxes",
        "terseLabel": "Income taxes payable"
       }
      }
     },
     "localname": "AccruedIncomeTaxes",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdditionalCashFlowElementsAndSupplementalCashFlowInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Additional Cash Flow Elements And Supplemental Cash Flow Information [Abstract]"
       }
      }
     },
     "localname": "AdditionalCashFlowElementsAndSupplementalCashFlowInformationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdditionalPaidInCapitalCommonStock": {
     "auth_ref": [
      "r14"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10130.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Value received from shareholders in common stock-related transactions that are in excess of par value or stated value and amounts received from other stock-related transactions. Includes only common stock transactions (excludes preferred stock transactions). May be called contributed capital, capital in excess of par, capital surplus, or paid-in capital.",
        "label": "Additional Paid In Capital Common Stock",
        "terseLabel": "Additional paid-in capital"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Excess of issue price over par or stated value of the entity's capital stock and amounts received from other transactions involving the entity's stock or stockholders.",
        "label": "Additional Paid In Capital [Member]",
        "terseLabel": "Additional Paid-in Capital [Member]"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdjustmentsForNewAccountingPronouncementsAxis": {
     "auth_ref": [
      "r113"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by new accounting pronouncement.",
        "label": "Adjustments For New Accounting Pronouncements [Axis]",
        "terseLabel": "Adjustments for New Accounting Pronouncements"
       }
      }
     },
     "localname": "AdjustmentsForNewAccountingPronouncementsAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalStockIssuedIssuanceCosts": {
     "auth_ref": [
      "r175",
      "r184"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of decrease in additional paid in capital (APIC) resulting from direct costs associated with issuing stock. Includes, but is not limited to, legal and accounting fees and direct costs associated with stock issues under a shelf registration.",
        "label": "Adjustments To Additional Paid In Capital Stock Issued Issuance Costs",
        "negatedLabel": "Issuance costs relating to common shares"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalStockIssuedIssuanceCosts",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Adjustments To Reconcile Net Income Loss To Cash Provided By Used In Operating Activities [Abstract]",
        "terseLabel": "Adjustments to reconcile net income to net cash provided by operating activities:"
       }
      }
     },
     "localname": "AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AffiliateCosts": {
     "auth_ref": [
      "r59",
      "r103"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfExpensesDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Costs associated with revenues arising from an entity that is an affiliate of the reporting entity by means of direct or indirect ownership.",
        "label": "Affiliate Costs",
        "totalLabel": "Total expenses incurred in transaction with affiliates"
       }
      }
     },
     "localname": "AffiliateCosts",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfExpensesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AmortizationOfDebtDiscountPremium": {
     "auth_ref": [
      "r63",
      "r83",
      "r283"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of noncash expense included in interest expense to amortize debt discount and premium associated with the related debt instruments. Excludes amortization of financing costs. Alternate captions include noncash interest expense.",
        "label": "Amortization Of Debt Discount Premium",
        "negatedLabel": "Amortization of debt issuance premiums"
       }
      }
     },
     "localname": "AmortizationOfDebtDiscountPremium",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseParentheticalDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AmortizationOfFinancingCostsAndDiscounts": {
     "auth_ref": [
      "r83",
      "r285"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10390.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of amortization expense attributable to debt discount (premium) and debt issuance costs.",
        "label": "Amortization Of Financing Costs And Discounts",
        "terseLabel": "Amortization of debt issuance costs",
        "verboseLabel": "Amortization of debt issuance (premiums) and costs, net"
       }
      }
     },
     "localname": "AmortizationOfFinancingCostsAndDiscounts",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AncillaryFeeIncomeGeneratedByServicingFinancialAssetsAmount": {
     "auth_ref": [
      "r317"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfNetLoanServicingFeesRelatingToMsrsDetail": {
       "order": 10030.0,
       "parentTag": "us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "All amounts that are due to the servicer of a financial asset, excluding contractually specified servicing fees and late fees.",
        "label": "Ancillary Fee Income Generated By Servicing Financial Assets Amount",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "AncillaryFeeIncomeGeneratedByServicingFinancialAssetsAmount",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfNetLoanServicingFeesRelatingToMsrsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount": {
     "auth_ref": [
      "r128"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) or earnings per unit (EPU) in the future that were not included in the computation of diluted EPS or EPU because to do so would increase EPS or EPU amounts or decrease loss per share or unit amounts for the period presented.",
        "label": "Antidilutive Securities Excluded From Computation Of Earnings Per Share Amount",
        "terseLabel": "Potentially dilutive stock excluded from the diluted earnings per share"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfPotentiallyDilutiveSharesExcludedFromComputationOfDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items]",
        "terseLabel": "Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items]"
       }
      }
     },
     "localname": "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfPotentiallyDilutiveSharesExcludedFromComputationOfDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ArrangementsAndNonarrangementTransactionsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item is to be populated with the collective of (i) types (categories) of arrangements of the entity applicable to its revenue-generating activities or operations and non-arrangement transactions, including but not limited to, for instance, sales of product manufactured by the entity, if such comparison of arrangements as a component of all transactions is provided by the entity.",
        "label": "Arrangements And Nonarrangement Transactions [Member]",
        "terseLabel": "Arrangements and Non-arrangement Transactions"
       }
      }
     },
     "localname": "ArrangementsAndNonarrangementTransactionsMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfActivitiesUnderATMEquityOfferingProgramDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfUnderwrittenOfferingsOfCommonSharesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AssetBackedSecuritiesMember": {
     "auth_ref": [
      "r153",
      "r191"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Securities that are primarily serviced by the cash flows of a discrete pool of receivables or other financial assets for example, but not limited to, credit card receivables, car loans, recreational vehicle loans, and mobile home loans.",
        "label": "Asset Backed Securities [Member]",
        "terseLabel": "Asset-Backed Financing of the VIE at Fair Value [Member]"
       }
      }
     },
     "localname": "AssetBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Assets": {
     "auth_ref": [
      "r139",
      "r344",
      "r388"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are recognized. Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets",
        "terseLabel": "Total assets at quarter end",
        "totalLabel": "Total assets"
       }
      }
     },
     "localname": "Assets",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Assets [Abstract]",
        "terseLabel": "ASSETS"
       }
      }
     },
     "localname": "AssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "auth_ref": [
      "r254"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets Fair Value Disclosure",
        "totalLabel": "Total Assets"
       }
      }
     },
     "localname": "AssetsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsFairValueDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Assets Fair Value Disclosure [Abstract]",
        "terseLabel": "Assets:"
       }
      }
     },
     "localname": "AssetsFairValueDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Assets Sold Under Agreements To Repurchase [Line Items]",
        "terseLabel": "Assets Sold under Agreements to Repurchase [Line Items]"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfMaturitiesOfOutstandingAssetsSoldUnderAgreementsToRepurchaseByFacilityMaturityDateDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseMarketValue": {
     "auth_ref": [
      "r105"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail": {
       "order": 10010.0,
       "parentTag": "pmt_PledgedFinancialInstrumentsNotSeparatelyReportedAndAssetsSeparatelyReportedOnStatementAtFairValue",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Market value of assets sold under agreements to repurchase when the carrying amount (or market value, if higher than the carrying amount) of securities or other assets sold under repurchase agreements exceeds 10 percent of total assets.",
        "label": "Assets Sold Under Agreements To Repurchase Market Value",
        "positiveLabel": "Assets securing agreements to repurchase",
        "terseLabel": "Assets sold under agreements to repurchase",
        "verboseLabel": "Loans pledged to secure: Assets sold under agreements to repurchase"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMarketValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodDomain": {
     "auth_ref": [
      "r107",
      "r314"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Maturity period remaining for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements. Element name and standard label in Maturity [numeric lower end] to [numeric higher end] [date measure] [Member] or Maturity Greater Than [low end numeric value] [date measure] [Member] or Maturity Less Than [high end numeric value] [date measure] [Member] formats.",
        "label": "Assets Sold Under Agreements To Repurchase Maturity Period [Domain]",
        "terseLabel": "Repurchase Agreements and Similar Transactions, Maturity Periods"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfMaturitiesOfOutstandingAssetsSoldUnderAgreementsToRepurchaseByFacilityMaturityDateDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodsAxis": {
     "auth_ref": [
      "r107",
      "r314"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by maturity period remaining for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements. Element name and standard label in Maturity [numeric lower end] to [numeric higher end] [date measure] [Member] or Maturity Greater Than [low end numeric value] [date measure] [Member] or Maturity Less Than [high end numeric value] [date measure] [Member] formats.",
        "label": "Assets Sold Under Agreements To Repurchase Maturity Periods [Axis]",
        "terseLabel": "Repurchase Agreements and Similar Transactions, Maturity Periods"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodsAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfMaturitiesOfOutstandingAssetsSoldUnderAgreementsToRepurchaseByFacilityMaturityDateDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability": {
     "auth_ref": [
      "r106"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10150.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount to be repaid to the counterparty to the repurchase agreement when the carrying amount (or market value, if higher than the carrying amount) of securities or other assets sold under the repurchase agreement exceeds 10 percent of total assets.",
        "label": "Assets Sold Under Agreements To Repurchase Repurchase Liability",
        "terseLabel": "Assets sold under agreements to repurchase",
        "totalLabel": "Assets sold under agreements to repurchase, At year end"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AwardTypeAxis": {
     "auth_ref": [
      "r197",
      "r205"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by award type pertaining to equity-based compensation.",
        "label": "Award Type [Axis]",
        "terseLabel": "Award Type"
       }
      }
     },
     "localname": "AwardTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfPotentiallyDilutiveSharesExcludedFromComputationOfDilutedEarningsPerShareDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlansSummaryOfShareBasedCompensationActivityDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by location on balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Axis]",
        "terseLabel": "Balance Sheet Location"
       }
      }
     },
     "localname": "BalanceSheetLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "auth_ref": [
      "r230",
      "r235"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Location in the balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Domain]",
        "terseLabel": "Balance Sheet Location"
       }
      }
     },
     "localname": "BalanceSheetLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BankingAndThriftAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Banking And Thrift [Abstract]"
       }
      }
     },
     "localname": "BankingAndThriftAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_BankingAndThriftInterestAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Banking And Thrift Interest [Abstract]"
       }
      }
     },
     "localname": "BankingAndThriftInterestAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_BasisOfAccounting": {
     "auth_ref": [
      "r112"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for the basis of accounting, or basis of presentation, used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS).",
        "label": "Basis Of Accounting",
        "terseLabel": "Basis of Presentation"
       }
      }
     },
     "localname": "BasisOfAccounting",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureBasisOfPresentation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of accounting policy for basis of accounting, or basis of presentation, used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS).",
        "label": "Basis Of Accounting Policy Policy [Text Block]",
        "terseLabel": "Basis of Presentation"
       }
      }
     },
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOrganizationAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_BrokersAndDealersAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Brokers And Dealers [Abstract]",
        "terseLabel": "Brokers and Dealers [Abstract]"
       }
      }
     },
     "localname": "BrokersAndDealersAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_Cash": {
     "auth_ref": [
      "r19"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10270.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Excludes cash and cash equivalents within disposal group and discontinued operation.",
        "label": "Cash",
        "terseLabel": "Cash"
       }
      }
     },
     "localname": "Cash",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations": {
     "auth_ref": [
      "r78",
      "r85",
      "r91"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including, but not limited to, disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash Cash Equivalents Restricted Cash And Restricted Cash Equivalents Including Disposal Group And Discontinued Operations",
        "periodEndLabel": "Cash at end of period",
        "periodStartLabel": "Cash at beginning of period"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "auth_ref": [
      "r78",
      "r281"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in cash, cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including effect from exchange rate change. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash Cash Equivalents Restricted Cash And Restricted Cash Equivalents Period Increase Decrease Including Exchange Rate Effect",
        "totalLabel": "Net increase (decrease) in cash"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCollateralForBorrowedSecurities": {
     "auth_ref": [
      "r355",
      "r398"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_DerivativeAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of cash collateral held for borrowed securities, for which the cash is restricted as to withdrawal or usage.",
        "label": "Cash Collateral For Borrowed Securities",
        "terseLabel": "Cash collateral received"
       }
      }
     },
     "localname": "CashCollateralForBorrowedSecurities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashFlowSupplementalDisclosuresTextBlock": {
     "auth_ref": [
      "r92"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for supplemental cash flow activities, including cash, noncash, and part noncash transactions, for the period. Noncash is defined as information about all investing and financing activities of an enterprise during a period that affect recognized assets or liabilities but that do not result in cash receipts or cash payments in the period. \"Part noncash\" refers to that portion of the transaction not resulting in cash receipts or cash payments in the period.",
        "label": "Cash Flow Supplemental Disclosures [Text Block]",
        "terseLabel": "Supplemental Cash Flow Information"
       }
      }
     },
     "localname": "CashFlowSupplementalDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CashFlowsBetweenTransfereeAndTransferorProceedsFromNewTransfers": {
     "auth_ref": [
      "r305"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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).",
        "label": "Cash Flows Between Transferee And Transferor Proceeds From New Transfers",
        "terseLabel": "Proceeds from sales"
       }
      }
     },
     "localname": "CashFlowsBetweenTransfereeAndTransferorProceedsFromNewTransfers",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCashFlowsBetweenCompanyAndTransfereesInTransfersAccountedForSalesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashFlowsBetweenTransfereeAndTransferorServicingFees": {
     "auth_ref": [
      "r306"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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).",
        "label": "Cash Flows Between Transferee And Transferor Servicing Fees",
        "terseLabel": "Loan servicing fees received net of guarantee fees"
       }
      }
     },
     "localname": "CashFlowsBetweenTransfereeAndTransferorServicingFees",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCashFlowsBetweenCompanyAndTransfereesInTransfersAccountedForSalesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ClassOfStockDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Share of stock differentiated by the voting rights the holder receives. Examples include, but are not limited to, common stock, redeemable preferred stock, nonredeemable preferred stock, and convertible stock.",
        "label": "Class Of Stock [Domain]",
        "terseLabel": "Class of Stock"
       }
      }
     },
     "localname": "ClassOfStockDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ClassOfStockLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Class Of Stock [Line Items]",
        "terseLabel": "Class Of Stock [Line Items]"
       }
      }
     },
     "localname": "ClassOfStockLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfActivitiesUnderATMEquityOfferingProgramDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfUnderwrittenOfferingsOfCommonSharesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ClassificationOfVariableInterestEntityDomain": {
     "auth_ref": [
      "r215",
      "r216",
      "r217",
      "r218"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Categorization of Variable Interest Entities (VIE) for consolidation and (or) disclosure purposes, whether individually or in aggregate, by: (1) VIEs consolidated because the entity is the primary beneficiary, (2) VIEs not consolidated because the entity is not the primary beneficiary, and (3) VIEs or potential VIEs that are not consolidated because necessary information is not available. In general, a VIE is a corporation, partnership, trust, or any other legal structure used for business purposes that either (a) does not have equity investors with voting rights or (b) has equity investors that do not provide sufficient financial resources for the entity to support its activities. A VIE often holds financial assets, including loans or receivables, real estate or other property. A VIE may be essentially passive or it may engage in research and development or other activities on behalf of another company.",
        "label": "Classification Of Variable Interest Entity [Domain]",
        "terseLabel": "Variable Interest Entity, Classification"
       }
      }
     },
     "localname": "ClassificationOfVariableInterestEntityDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCashFlowsBetweenCompanyAndTransfereesInTransfersAccountedForSalesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCollectionStatusInformationForLoansAccountedForSalesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommitmentsAndContingencies": {
     "auth_ref": [
      "r30",
      "r163",
      "r361",
      "r397"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10090.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the caption on the face of the balance sheet to indicate that the entity has entered into (1) purchase or supply arrangements that will require expending a portion of its resources to meet the terms thereof, and (2) is exposed to potential losses or, less frequently, gains, arising from (a) possible claims against a company's resources due to future performance under contract terms, and (b) possible losses or likely gains from uncertainties that will ultimately be resolved when one or more future events that are deemed likely to occur do occur or fail to occur.",
        "label": "Commitments And Contingencies",
        "terseLabel": "Commitments and contingencies \u2500 Note 20"
       }
      }
     },
     "localname": "CommitmentsAndContingencies",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Commitments And Contingencies Disclosure [Abstract]"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureTextBlock": {
     "auth_ref": [
      "r162",
      "r164"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for commitments and contingencies.",
        "label": "Commitments And Contingencies Disclosure [Text Block]",
        "terseLabel": "Commitments and Contingencies"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureCommitmentsAndContingencies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CommonStockDividendsPerShareDeclared": {
     "auth_ref": [
      "r184"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate dividends declared during the period for each share of common stock outstanding.",
        "label": "Common Stock Dividends Per Share Declared",
        "terseLabel": "Dividends declared per common share",
        "verboseLabel": "Common share dividends declared per share"
       }
      }
     },
     "localname": "CommonStockDividendsPerShareDeclared",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnauditedParenthetical",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Stock that is subordinate to all other stock of the issuer.",
        "label": "Common Stock [Member]",
        "terseLabel": "Common Shares [Member]"
       }
      }
     },
     "localname": "CommonStockMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfActivitiesUnderATMEquityOfferingProgramDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r13"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Face amount or stated value per share of common stock.",
        "label": "Common Stock Par Or Stated Value Per Share",
        "terseLabel": "Common shares, par value"
       }
      }
     },
     "localname": "CommonStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "auth_ref": [
      "r13"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws.",
        "label": "Common Stock Shares Authorized",
        "terseLabel": "Common shares, authorized"
       }
      }
     },
     "localname": "CommonStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesIssued": {
     "auth_ref": [
      "r13"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total number of common shares of an entity that have been sold or granted to shareholders (includes common shares that were issued, repurchased and remain in the treasury). These shares represent capital invested by the firm's shareholders and owners, and may be all or only a portion of the number of shares authorized. Shares issued include shares outstanding and shares held in the treasury.",
        "label": "Common Stock Shares Issued",
        "terseLabel": "Common shares, issued"
       }
      }
     },
     "localname": "CommonStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfUnderwrittenOfferingsOfCommonSharesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfUnderwrittenOfferingsOfCommonSharesParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "auth_ref": [
      "r13",
      "r175"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation.",
        "label": "Common Stock Shares Outstanding",
        "terseLabel": "Common shares, outstanding"
       }
      }
     },
     "localname": "CommonStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockValue": {
     "auth_ref": [
      "r13"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10120.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate par or stated value of issued nonredeemable common stock (or common stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable common shares, par value and other disclosure concepts are in another section within stockholders' equity.",
        "label": "Common Stock Value",
        "terseLabel": "Common shares of beneficial interest\u2014authorized, 500,000,000 common shares of $0.01 par value; issued and outstanding, 78,607,436 and 60,951,444 common shares, respectively"
       }
      }
     },
     "localname": "CommonStockValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ComplianceWithRegulatoryCapitalRequirementsForMortgageCompaniesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Compliance With Regulatory Capital Requirements For Mortgage Companies [Line Items]",
        "terseLabel": "Compliance with Regulatory Capital Requirements for Mortgage Companies [Line Items]"
       }
      }
     },
     "localname": "ComplianceWithRegulatoryCapitalRequirementsForMortgageCompaniesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskDisclosureTextBlock": {
     "auth_ref": [
      "r134"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for any concentrations existing at the date of the financial statements that make an entity vulnerable to a reasonably possible, near-term, severe impact. This disclosure informs financial statement users about the general nature of the risk associated with the concentration, and may indicate the percentage of concentration risk as of the balance sheet date.",
        "label": "Concentration Risk Disclosure [Text Block]",
        "terseLabel": "Concentration of Risks"
       }
      }
     },
     "localname": "ConcentrationRiskDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureConcentrationOfRisks"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ContinuingInvolvementWithTransferredFinancialAssetsPrincipalAmountOutstanding": {
     "auth_ref": [
      "r308"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Principal amount of transferred financial assets in which the transferor has continuing involvement with the assets underlying the transaction. Continuing involvement includes, but is not limited to, servicing, recourse, and restrictions on transferor's interests in transferred financial assets.",
        "label": "Continuing Involvement With Transferred Financial Assets Principal Amount Outstanding",
        "terseLabel": "UPB of loans outstanding"
       }
      }
     },
     "localname": "ContinuingInvolvementWithTransferredFinancialAssetsPrincipalAmountOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCollectionStatusInformationForLoansAccountedForSalesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ContractuallySpecifiedServicingFeesAmount": {
     "auth_ref": [
      "r317"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfNetLoanServicingFeesRelatingToMsrsDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "All amounts that, per contract, are due to the servicer in exchange for servicing the financial asset and would no longer be received by a servicer if the beneficial owners of the serviced assets (or their trustees or agents) were to exercise their actual or potential authority under the contract to shift the servicing to another servicer. Depending on the servicing contract, those fees may include some or all of the difference between the interest rate collected on the asset being serviced and the rate to be paid to the beneficial owners of the asset.",
        "label": "Contractually Specified Servicing Fees Amount",
        "terseLabel": "Contractually-specified servicing fees"
       }
      }
     },
     "localname": "ContractuallySpecifiedServicingFeesAmount",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfNetLoanServicingFeesRelatingToMsrsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets": {
     "auth_ref": [
      "r317"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfNetLoanServicingFeesRelatingToMsrsDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of contractually specified servicing fee, late fee, and ancillary fee recognized as income for servicing asset and servicing liability.",
        "label": "Contractually Specified Servicing Fees Late Fees And Ancillary Fees Earned In Exchange For Servicing Financial Assets",
        "terseLabel": "Servicing fees",
        "totalLabel": "Net mortgage loan servicing fees"
       }
      }
     },
     "localname": "ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfNetLoanServicingFeesRelatingToMsrsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ConvertibleDebt": {
     "auth_ref": [
      "r8",
      "r348",
      "r392"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesSummaryOfFinancialInformationRelatingToExchangeableSeniorNotesDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10170.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Including the current and noncurrent portions, carrying amount of debt identified as being convertible into another form of financial instrument (typically the entity's common stock) as of the balance sheet date, which originally required full repayment more than twelve months after issuance or greater than the normal operating cycle of the company.",
        "label": "Convertible Debt",
        "terseLabel": "Exchangeable senior notes",
        "totalLabel": "Exchangeable senior notes"
       }
      }
     },
     "localname": "ConvertibleDebt",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesSummaryOfFinancialInformationRelatingToExchangeableSeniorNotesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ConvertibleDebtMember": {
     "auth_ref": [
      "r166"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Borrowing which can be exchanged for a specified number of another security at the option of the issuer or the holder, for example, but not limited to, the entity's common stock.",
        "label": "Convertible Debt [Member]",
        "terseLabel": "Convertible Debt [Member]",
        "verboseLabel": "Exchangeable Notes [Member]"
       }
      }
     },
     "localname": "ConvertibleDebtMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesSummaryOfFinancialInformationRelatingToExchangeableSeniorNotesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValueOfOtherBorrowingsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConvertibleDebtTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of borrowings which can be exchanged for a specified number of another security at the option of the issuer or the holder. Disclosures include, but are not limited to, principal amount, amortized premium or discount, and amount of liability and equity components.",
        "label": "Convertible Debt Table [Text Block]",
        "terseLabel": "Summary of Financial Information Relating to Exchangeable Notes"
       }
      }
     },
     "localname": "ConvertibleDebtTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ConvertibleNotesPayable": {
     "auth_ref": [
      "r8",
      "r348",
      "r391",
      "r413"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesSummaryOfFinancialInformationRelatingToExchangeableSeniorNotesDetail": {
       "order": 10350.0,
       "parentTag": "us-gaap_ConvertibleDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Including the current and noncurrent portions, carrying value as of the balance sheet date of a written promise to pay a note, initially due after one year or beyond the operating cycle if longer, which can be exchanged for a specified amount of one or more securities (typically common stock), at the option of the issuer or the holder.",
        "label": "Convertible Notes Payable",
        "terseLabel": "UPB"
       }
      }
     },
     "localname": "ConvertibleNotesPayable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesSummaryOfFinancialInformationRelatingToExchangeableSeniorNotesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CorporateMember": {
     "auth_ref": [
      "r135"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Component of an entity that usually provides financial, operational and administrative support and is considered an operating segment. Excludes intersegment elimination and reconciling items.",
        "label": "Corporate [Member]",
        "terseLabel": "Corporate [Member]"
       }
      }
     },
     "localname": "CorporateMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CreditDerivativesByContractTypeAxis": {
     "auth_ref": [
      "r243"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by major type of contract of credit derivatives.",
        "label": "Credit Derivatives By Contract Type [Axis]",
        "terseLabel": "Credit Derivatives Contract Type"
       }
      }
     },
     "localname": "CreditDerivativesByContractTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CreditDerivativesContractTypeDomain": {
     "auth_ref": [
      "r243"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents major types of credit derivative contracts.",
        "label": "Credit Derivatives Contract Type [Domain]",
        "terseLabel": "Credit Derivatives Contract Type"
       }
      }
     },
     "localname": "CreditDerivativesContractTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CreditRiskDerivativeAssetsAtFairValue": {
     "auth_ref": [
      "r244"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAndCreditRiskTransferAssetsDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of credit risk derivative asset.",
        "label": "Credit Risk Derivative Assets At Fair Value",
        "totalLabel": "Total derivative and credit risk transfer assets"
       }
      }
     },
     "localname": "CreditRiskDerivativeAssetsAtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAndCreditRiskTransferAssetsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CreditRiskMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The risk that a borrower will fail to pay interest or principal on a loan or debt security when due.",
        "label": "Credit Risk [Member]",
        "terseLabel": "Credit Risk [Member]"
       }
      }
     },
     "localname": "CreditRiskMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax of increase (decrease) to equity or (increase) decrease to net assets, resulting from the cumulative effect adjustment of a new accounting principle applied in the period of adoption.",
        "label": "Cumulative Effect Of New Accounting Principle In Period Of Adoption",
        "periodStartLabel": "Balance, Amount"
       }
      }
     },
     "localname": "CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Debt Disclosure [Abstract]"
       }
      }
     },
     "localname": "DebtDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtDisclosureTextBlock": {
     "auth_ref": [
      "r169"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for information about short-term and long-term debt arrangements, which includes amounts of borrowings under each line of credit, note payable, commercial paper issue, bonds indenture, debenture issue, own-share lending arrangements and any other contractual agreement to repay funds, and about the underlying arrangements, rationale for a classification as long-term, including repayment terms, interest rates, collateral provided, restrictions on use of assets and activities, whether or not in compliance with debt covenants, and other matters important to users of the financial statements, such as the effects of refinancing and noncompliance with debt covenants.",
        "label": "Debt Disclosure [Text Block]",
        "terseLabel": "Notes Payable"
       }
      }
     },
     "localname": "DebtDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayable"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DebtInstrumentAxis": {
     "auth_ref": [
      "r5",
      "r7",
      "r8",
      "r345",
      "r348",
      "r384"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities.",
        "label": "Debt Instrument [Axis]",
        "terseLabel": "Debt Instrument"
       }
      }
     },
     "localname": "DebtInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentBasisSpreadOnVariableRate1": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Percentage points added to the reference rate to compute the variable rate on the debt instrument.",
        "label": "Debt Instrument Basis Spread On Variable Rate1",
        "terseLabel": "Debt instrument interest rate spread"
       }
      }
     },
     "localname": "DebtInstrumentBasisSpreadOnVariableRate1",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentConvertibleConversionRatio1": {
     "auth_ref": [
      "r28",
      "r176",
      "r180",
      "r182"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Ratio applied to the conversion of debt instrument into equity with equity shares divided by debt principal amount.",
        "label": "Debt Instrument Convertible Conversion Ratio1",
        "terseLabel": "Number of shares exchanged per exchangeable notes"
       }
      }
     },
     "localname": "DebtInstrumentConvertibleConversionRatio1",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesAdditionalInformationDetail"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_DebtInstrumentDateOfFirstRequiredPayment1": {
     "auth_ref": [
      "r29",
      "r378"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Date the debt agreement requires the first payment to be made, in CCYY-MM-DD format.",
        "label": "Debt Instrument Date Of First Required Payment1",
        "terseLabel": "Debt instrument initial payemt date"
       }
      }
     },
     "localname": "DebtInstrumentDateOfFirstRequiredPayment1",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "us-gaap_DebtInstrumentDescriptionOfVariableRateBasis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The reference rate for the variable rate of the debt instrument, such as LIBOR or the US Treasury rate and the maturity of the reference rate used, such as three months or six months LIBOR.",
        "label": "Debt Instrument Description Of Variable Rate Basis",
        "terseLabel": "Debt Instrument, Description of Variable Rate Basis"
       }
      }
     },
     "localname": "DebtInstrumentDescriptionOfVariableRateBasis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentFaceAmount": {
     "auth_ref": [
      "r284",
      "r286"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Face (par) amount of debt instrument at time of issuance.",
        "label": "Debt Instrument Face Amount",
        "terseLabel": "Aggregate loan amount"
       }
      }
     },
     "localname": "DebtInstrumentFaceAmount",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentInterestRateStatedPercentage": {
     "auth_ref": [
      "r26"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Contractual interest rate for funds borrowed, under the debt agreement.",
        "label": "Debt Instrument Interest Rate Stated Percentage",
        "terseLabel": "Percentage of interest on debt"
       }
      }
     },
     "localname": "DebtInstrumentInterestRateStatedPercentage",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Debt Instrument [Line Items]",
        "terseLabel": "Debt Instrument [Line Items]"
       }
      }
     },
     "localname": "DebtInstrumentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesSummaryOfFinancialInformationRelatingToExchangeableSeniorNotesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentMaturityDate": {
     "auth_ref": [
      "r27",
      "r259"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Date when the debt instrument is scheduled to be fully repaid, in CCYY-MM-DD format.",
        "label": "Debt Instrument Maturity Date",
        "terseLabel": "Maturity date of debt instrument"
       }
      }
     },
     "localname": "DebtInstrumentMaturityDate",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "auth_ref": [
      "r29"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The name for the particular debt instrument or borrowing that distinguishes it from other debt instruments or borrowings, including draws against credit facilities.",
        "label": "Debt Instrument Name [Domain]",
        "terseLabel": "Debt Instrument, Name"
       }
      }
     },
     "localname": "DebtInstrumentNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentTable": {
     "auth_ref": [
      "r29",
      "r101",
      "r176",
      "r181",
      "r182",
      "r183",
      "r283",
      "r284",
      "r286",
      "r379"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A table or schedule providing information pertaining to long-term debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer.",
        "label": "Debt Instrument [Table]",
        "terseLabel": "Debt Instrument [Table]"
       }
      }
     },
     "localname": "DebtInstrumentTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesSummaryOfFinancialInformationRelatingToExchangeableSeniorNotesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet": {
     "auth_ref": [
      "r167",
      "r285"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail": {
       "order": 10760.0,
       "parentTag": "us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of unamortized debt discount (premium) and debt issuance costs.",
        "label": "Debt Instrument Unamortized Discount Premium And Debt Issuance Costs Net",
        "terseLabel": "Unamortized debt issuance costs, net"
       }
      }
     },
     "localname": "DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentValuationTechniqueExtensibleList": {
     "auth_ref": [
      "r258",
      "r279"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicates valuation technique for measuring debt instrument, including, but not limited to, convertible and non-convertible debt.",
        "label": "Debt Instrument Valuation Technique Extensible List",
        "terseLabel": "Borrowings, source of fair value"
       }
      }
     },
     "localname": "DebtInstrumentValuationTechniqueExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValueOfOtherBorrowingsDetail"
     ],
     "xbrltype": "extensibleListItemType"
    },
    "us-gaap_DerivativeAssetCollateralObligationToReturnCashOffset": {
     "auth_ref": [
      "r37",
      "r223"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": 10150.0,
       "parentTag": "us-gaap_DerivativeAssets",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of obligation to return cash collateral under master netting arrangements offset against derivative assets.",
        "label": "Derivative Asset Collateral Obligation To Return Cash Offset",
        "negatedLabel": "Derivative assets, Netting",
        "negatedTerseLabel": "Gross amounts offset in the consolidated balance sheet"
       }
      }
     },
     "localname": "DerivativeAssetCollateralObligationToReturnCashOffset",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability": {
     "auth_ref": [
      "r37",
      "r47"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_DerivativeAssets",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of liability associated with derivative assets, securities purchased under agreements to resell and securities borrowed.",
        "label": "Derivative Asset Securities Purchased Under Agreements To Resell Securities Borrowed Liability",
        "negatedLabel": "Financial instruments"
       }
      }
     },
     "localname": "DerivativeAssetSecuritiesPurchasedUnderAgreementsToResellSecuritiesBorrowedLiability",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssets": {
     "auth_ref": [
      "r38",
      "r43",
      "r268"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAndCreditRiskTransferAssetsDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_CreditRiskDerivativeAssetsAtFairValue",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": 10110.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets not subject to a master netting arrangement and not elected to be offset.",
        "label": "Derivative Assets",
        "positiveLabel": "Derivative assets",
        "totalLabel": "Total derivative and credit risk transfer strip assets after netting"
       }
      }
     },
     "localname": "DerivativeAssets",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAndCreditRiskTransferAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Derivative Assets [Abstract]",
        "verboseLabel": "Derivative assets \u2014 CRT Agreements"
       }
      }
     },
     "localname": "DerivativeAssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeContractTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial instrument or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset.",
        "label": "Derivative Contract Type [Domain]",
        "terseLabel": "Derivative Contract"
       }
      }
     },
     "localname": "DerivativeContractTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeAsset": {
     "auth_ref": [
      "r36",
      "r46",
      "r233",
      "r309"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": 10140.0,
       "parentTag": "us-gaap_DerivativeAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value, before effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets elected not to be offset. Excludes assets not subject to a master netting arrangement.",
        "label": "Derivative Fair Value Of Derivative Asset",
        "positiveLabel": "Total derivative assets instruments before netting",
        "positiveVerboseLabel": "Gross amounts of recognized assets",
        "verboseLabel": "Derivative assets"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeAsset",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral": {
     "auth_ref": [
      "r38",
      "r43",
      "r48",
      "r248"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail": {
       "order": 10030.0,
       "parentTag": "us-gaap_DerivativeAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value, after offset of derivative liability, of financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, before offset against an obligation to return collateral under a master netting arrangement. Includes assets elected not to be offset. Excludes assets not subject to a master netting arrangement.",
        "label": "Derivative Fair Value Of Derivative Asset Amount Not Offset Against Collateral",
        "terseLabel": "Net amount"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeLiability": {
     "auth_ref": [
      "r36",
      "r46",
      "r233",
      "r309"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": 10040.0,
       "parentTag": "us-gaap_DerivativeLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value, before effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities elected not to be offset. Excludes liabilities not subject to a master netting arrangement.",
        "label": "Derivative Fair Value Of Derivative Liability",
        "terseLabel": "Total derivative liabilities",
        "verboseLabel": "Derivative liabilities"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeLiability",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeGainLossOnDerivativeNet": {
     "auth_ref": [
      "r232"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_MortgageServicingRightsMSRImpairmentRecovery",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in the fair value of derivatives recognized in the income statement.",
        "label": "Derivative Gain Loss On Derivative Net",
        "negatedLabel": "Gains (losses) on hedging derivatives",
        "terseLabel": "Net gains on derivative financial instruments used as economic hedges"
       }
      }
     },
     "localname": "DerivativeGainLossOnDerivativeNet",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "auth_ref": [
      "r231",
      "r234",
      "r237",
      "r239"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of derivative contract.",
        "label": "Derivative Instrument Risk [Axis]",
        "terseLabel": "Derivative Instrument"
       }
      }
     },
     "localname": "DerivativeInstrumentRiskAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Derivative Instruments And Hedging Activities Disclosure [Abstract]"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock": {
     "auth_ref": [
      "r252"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for derivative instruments and hedging activities including, but not limited to, risk management strategies, non-hedging derivative instruments, assets, liabilities, revenue and expenses, and methodologies and assumptions used in determining the amounts.",
        "label": "Derivative Instruments And Hedging Activities Disclosure [Text Block]",
        "terseLabel": "Derivative Activities and Credit Risk Transfer Strips"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStrips"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable": {
     "auth_ref": [
      "r228",
      "r231",
      "r237",
      "r239",
      "r240",
      "r250",
      "r251"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about the location and amount of derivative instruments and nonderivative instruments designated as hedging instruments reported before netting adjustments, and the amount of gain (loss) on derivative instruments and nonderivative instruments designated and qualified as hedging instruments.",
        "label": "Derivative Instruments Gain Loss By Hedging Relationship By Income Statement Location By Derivative Instrument Risk [Table]",
        "terseLabel": "Derivative Instruments Gain Loss By Hedging Relationship By Income Statement Location By Derivative Instrument Risk [Table]"
       }
      }
     },
     "localname": "DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsGainLossLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Derivative Instruments Gain Loss [Line Items]",
        "terseLabel": "Derivative Instruments, Gain (Loss) [Line Items]"
       }
      }
     },
     "localname": "DerivativeInstrumentsGainLossLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeLiabilities": {
     "auth_ref": [
      "r38",
      "r43",
      "r268"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": 10030.0,
       "parentTag": "us-gaap_FinancialLiabilitiesFairValueDisclosure",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10220.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities not subject to a master netting arrangement and not elected to be offset.",
        "label": "Derivative Liabilities",
        "terseLabel": "Derivative liabilities",
        "totalLabel": "Total derivative liabilities after netting"
       }
      }
     },
     "localname": "DerivativeLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Derivative Liabilities [Abstract]",
        "terseLabel": "Derivative liabilities:"
       }
      }
     },
     "localname": "DerivativeLiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeLiabilityCollateralRightToReclaimCashOffset": {
     "auth_ref": [
      "r37",
      "r223"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoaned",
       "weight": -1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": 10050.0,
       "parentTag": "us-gaap_DerivativeLiabilities",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of right to receive cash collateral under master netting arrangements offset against derivative liabilities.",
        "label": "Derivative Liability Collateral Right To Reclaim Cash Offset",
        "negatedLabel": "Derivative liabilities, Netting",
        "negatedTerseLabel": "Gross amounts offset in the consolidated balance sheet"
       }
      }
     },
     "localname": "DerivativeLiabilityCollateralRightToReclaimCashOffset",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoaned": {
     "auth_ref": [
      "r38",
      "r43"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after the effects of master netting arrangements, of derivative liabilities, securities sold under agreements to repurchase and securities loaned. Includes liabilities not subject to a master netting arrangement and not elected to be offset.",
        "label": "Derivative Liability Securities Sold Under Agreements To Resell Securities Loaned",
        "terseLabel": "Net amount of liabilities presented in the consolidated balance sheet",
        "totalLabel": "Net amounts of liabilities presented in the consolidated balance sheet"
       }
      }
     },
     "localname": "DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoaned",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral": {
     "auth_ref": [
      "r40",
      "r44"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after effects of master netting arrangements, of derivative liabilities, securities sold under agreements to repurchase and securities loaned offset against a right to receive collateral. Includes liabilities not subject to a master netting arrangement and not elected to be offset.",
        "label": "Derivative Liability Securities Sold Under Agreements To Resell Securities Loaned Amount Offset Against Collateral",
        "totalLabel": "Net amount"
       }
      }
     },
     "localname": "DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimCash": {
     "auth_ref": [
      "r39",
      "r44"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail": {
       "order": 10030.0,
       "parentTag": "us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of right to receive cash collateral under master netting arrangements that have not been offset against derivative liabilities, securities sold under agreements to repurchase and securities loaned.",
        "label": "Derivative Liability Securities Sold Under Agreements To Resell Securities Loaned Collateral Right To Reclaim Cash",
        "negatedLabel": "Gross amounts not offset in the consolidated balance sheet, Cash collateral pledged"
       }
      }
     },
     "localname": "DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimCash",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities": {
     "auth_ref": [
      "r39",
      "r44"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedAmountOffsetAgainstCollateral",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of right to receive securities collateral under master netting arrangements that have not been offset against derivative liabilities, securities sold under agreements to repurchase and securities loaned.",
        "label": "Derivative Liability Securities Sold Under Agreements To Resell Securities Loaned Collateral Right To Reclaim Securities",
        "negatedLabel": "Gross amounts not offset in the consolidated balance sheet, Financial instruments"
       }
      }
     },
     "localname": "DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedCollateralRightToReclaimSecurities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross": {
     "auth_ref": [
      "r36",
      "r46"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoaned",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, before effects of master netting arrangements, of derivative liabilities, securities sold under agreements to repurchase and securities loaned. Includes liabilities elected not to be offset. Excludes liabilities not subject to a master netting arrangement.",
        "label": "Derivative Liability Securities Sold Under Agreements To Resell Securities Loaned Gross",
        "terseLabel": "Gross amounts of recognized liabilities"
       }
      }
     },
     "localname": "DerivativeLiabilitySecuritiesSoldUnderAgreementsToResellSecuritiesLoanedGross",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativesFairValueLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Derivatives Fair Value [Line Items]",
        "terseLabel": "Derivatives Fair Value [Line Items]"
       }
      }
     },
     "localname": "DerivativesFairValueLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfInvestmentInCRTStripsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "auth_ref": [
      "r186",
      "r206"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for compensation-related costs for equity-based compensation, which may include disclosure of policies, compensation plan details, allocation of equity compensation, incentive distributions, equity-based arrangements to obtain goods and services, deferred compensation arrangements, employee stock ownership plan details and employee stock purchase plan details.",
        "label": "Disclosure Of Compensation Related Costs Share Based Payments [Text Block]",
        "terseLabel": "Share-Based Compensation Plans"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlans"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Disclosure Of Compensation Related Costs Sharebased Payments [Abstract]"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisclosureOfCreditDerivativesTextBlock": {
     "auth_ref": [
      "r242",
      "r245",
      "r246"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of credit derivatives which includes information by sellers of credit derivatives, about each credit derivative, or each group of similar credit derivatives, including (a) the nature of the credit derivative - its term, how it arose, the events or circumstances that would require the seller to perform under the credit derivative, and the current status of the payment/performance risk of the credit derivative; (b) the maximum potential amount of future payments (undiscounted) the seller could be required to make under the credit derivative; (c) the current fair value of the credit derivative; and (d) the nature of any recourse provisions under the credit derivative, and any assets held either as collateral or by third parties. A credit derivative is a derivative instrument (1) in which one or more of its underlyings are related to the credit risk of a specified entity (or a group of entities) or an index based on the credit risk of a group of entities and (2) that exposes the seller to potential loss from credit-risk-related events specified in the contract. Examples of credit derivatives within the scope of this paragraph include, but are not limited to, credit default swaps, credit spread options, and credit index products; also includes a hybrid instrument that has an embedded credit derivative (for example, but not limited to, a credit-linked note).",
        "label": "Disclosure Of Credit Derivatives [Text Block]",
        "terseLabel": "Summary of Derivative and Credit Risk Transfer Assets"
       }
      }
     },
     "localname": "DisclosureOfCreditDerivativesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DividendsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Dividends [Abstract]",
        "terseLabel": "Dividends:"
       }
      }
     },
     "localname": "DividendsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DividendsCommonStock": {
     "auth_ref": [
      "r184",
      "r377"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of paid and unpaid common stock dividends declared with the form of settlement in cash, stock and payment-in-kind (PIK).",
        "label": "Dividends Common Stock",
        "negatedLabel": "Common share dividends"
       }
      }
     },
     "localname": "DividendsCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DividendsPayableCurrentAndNoncurrent": {
     "auth_ref": [
      "r7",
      "r9",
      "r347",
      "r389"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of dividends declared but unpaid on equity securities issued by the entity and outstanding.",
        "label": "Dividends Payable Current And Noncurrent",
        "terseLabel": "Dividends declared, not paid"
       }
      }
     },
     "localname": "DividendsPayableCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationSummaryOfSupplementalCashFlowInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DividendsPreferredStock": {
     "auth_ref": [
      "r184",
      "r377"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of paid and unpaid preferred stock dividends declared with the form of settlement in cash, stock and payment-in-kind (PIK).",
        "label": "Dividends Preferred Stock",
        "negatedLabel": "Preferred shares dividends"
       }
      }
     },
     "localname": "DividendsPreferredStock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DueFromAffiliates": {
     "auth_ref": [
      "r103",
      "r288",
      "r290",
      "r292",
      "r402"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10400.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "For an unclassified balance sheet, amount of receivables due from an entity that is affiliated with the reporting entity by means of direct or indirect ownership.",
        "label": "Due From Affiliates",
        "terseLabel": "Due from PennyMac Financial Services, Inc.",
        "totalLabel": "Due from Affiliates"
       }
      }
     },
     "localname": "DueFromAffiliates",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DueFromRelatedPartiesUnclassifiedAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Due From Related Parties Unclassified [Abstract]",
        "terseLabel": "Due from PFSI:"
       }
      }
     },
     "localname": "DueFromRelatedPartiesUnclassifiedAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DueToAffiliateCurrentAndNoncurrent": {
     "auth_ref": [
      "r103",
      "r288",
      "r296",
      "r359",
      "r401",
      "r414"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10240.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of payable due to an entity that is affiliated with the reporting entity by means of direct or indirect ownership.",
        "label": "Due To Affiliate Current And Noncurrent",
        "terseLabel": "Due to PennyMac Financial Services, Inc.",
        "totalLabel": "Total expense due to affiliate"
       }
      }
     },
     "localname": "DueToAffiliateCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DueToRelatedPartiesCurrentAndNoncurrent": {
     "auth_ref": [
      "r103",
      "r288",
      "r360",
      "r401"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of obligations due all related parties.",
        "label": "Due To Related Parties Current And Noncurrent",
        "terseLabel": "PMT agreed to reimburse PCM for a payment"
       }
      }
     },
     "localname": "DueToRelatedPartiesCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DueToRelatedPartiesCurrentAndNoncurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Due To Related Parties Current And Noncurrent [Abstract]",
        "terseLabel": "Due to PFSI:"
       }
      }
     },
     "localname": "DueToRelatedPartiesCurrentAndNoncurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Earnings Per Share [Abstract]",
        "terseLabel": "Earnings per common share"
       }
      }
     },
     "localname": "EarningsPerShareAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareBasic": {
     "auth_ref": [
      "r54",
      "r114",
      "r122",
      "r125",
      "r126",
      "r127",
      "r131",
      "r365",
      "r404"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of net income (loss) for the period per each share of common stock or unit outstanding during the reporting period.",
        "label": "Earnings Per Share Basic",
        "terseLabel": "Basic",
        "verboseLabel": "Basic earnings per share"
       }
      }
     },
     "localname": "EarningsPerShareBasic",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareDiluted": {
     "auth_ref": [
      "r54",
      "r114",
      "r122",
      "r125",
      "r126",
      "r127",
      "r131",
      "r365",
      "r404"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of net income (loss) for the period available to each share of common stock or common unit outstanding during the reporting period and to each share or unit that would have been outstanding assuming the issuance of common shares or units for all dilutive potential common shares or units outstanding during the reporting period.",
        "label": "Earnings Per Share Diluted",
        "terseLabel": "Diluted",
        "verboseLabel": "Diluted earnings per share"
       }
      }
     },
     "localname": "EarningsPerShareDiluted",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerSharePolicyTextBlock": {
     "auth_ref": [
      "r93",
      "r128",
      "r129",
      "r130"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of accounting policy for computing basic and diluted earnings or loss per share for each class of common stock and participating security. Addresses all significant policy factors, including any antidilutive items that have been excluded from the computation and takes into account stock dividends, splits and reverse splits that occur after the balance sheet date of the latest reporting period but before the issuance of the financial statements.",
        "label": "Earnings Per Share Policy [Text Block]",
        "terseLabel": "Earnings Per Share"
       }
      }
     },
     "localname": "EarningsPerSharePolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOrganizationAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "auth_ref": [
      "r132"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for earnings per share.",
        "label": "Earnings Per Share [Text Block]",
        "terseLabel": "Earnings Per Share"
       }
      }
     },
     "localname": "EarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShare"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateContinuingOperations": {
     "auth_ref": [
      "r102",
      "r208",
      "r209"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Percentage of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Effective Income Tax Rate Continuing Operations",
        "terseLabel": "Effective income tax rates"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Equity [Abstract]"
       }
      }
     },
     "localname": "EquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EquityComponentDomain": {
     "auth_ref": [
      "r175"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Components of equity are the parts of the total Equity balance including that which is allocated to common, preferred, treasury stock, retained earnings, etc.",
        "label": "Equity Component [Domain]",
        "terseLabel": "Equity Component"
       }
      }
     },
     "localname": "EquityComponentDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfActivitiesUnderATMEquityOfferingProgramDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueAdjustmentDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Fair Value Adjustment Disclosure [Abstract]",
        "terseLabel": "Changes in fair value included in income arising from:"
       }
      }
     },
     "localname": "FairValueAdjustmentDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items]",
        "terseLabel": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueKeyAssumptionsUsedInDeterminingFairValueOfMsrsAtTimeOfInitialRecognitionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInValuationOfInterestRateLockCommitmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfCarryingValueOfREOReMeasuredBasedOnFairValueOnNonrecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueRecognizedInREOThatRemeasuredAtFairValueOnNonrecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationCreditRiskTransferStripsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationOfFirmCommitmentToPurchaseCRTSecuritiesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "auth_ref": [
      "r253",
      "r254",
      "r255",
      "r256",
      "r265",
      "r266"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about financial instruments measured at fair value, including those classified in shareholders' equity measured on a recurring or nonrecurring basis. Disclosures include, but are not limited to, fair value measurements recorded and the reasons for the measurements, level within the fair value hierarchy in which the fair value measurements are categorized and transfers between levels 1 and 2. Nonrecurring fair value measurements are those that are required or permitted in the statement of financial position in particular circumstances.",
        "label": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Table]",
        "terseLabel": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Table]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueKeyAssumptionsUsedInDeterminingFairValueOfMsrsAtTimeOfInitialRecognitionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInValuationOfInterestRateLockCommitmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfCarryingValueOfREOReMeasuredBasedOnFairValueOnNonrecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueRecognizedInREOThatRemeasuredAtFairValueOnNonrecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationCreditRiskTransferStripsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationOfFirmCommitmentToPurchaseCRTSecuritiesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis Valuation Techniques [Line Items]",
        "terseLabel": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis Valuation Techniques [Line Items]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValueOfOtherBorrowingsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable": {
     "auth_ref": [
      "r257"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about input and valuation technique used to measure fair value and change in valuation approach and technique for each separate class of asset and liability measured on recurring and nonrecurring basis.",
        "label": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis Valuation Techniques [Table]",
        "terseLabel": "Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis Valuation Techniques [Table]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValueOfOtherBorrowingsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnNonrecurringBasisTextBlock": {
     "auth_ref": [
      "r253",
      "r254",
      "r255",
      "r257"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of assets and liabilities by class, including financial instruments measured at fair value that are classified in shareholders' equity, if any, that are measured at fair value on a nonrecurring basis in periods after initial recognition (for example, impaired assets). Disclosures may include, but are not limited to: (a) the fair value measurements recorded and the reasons for the measurements and (b) the level within the fair value hierarchy in which the fair value measurements are categorized in their entirety (levels 1, 2, 3).",
        "label": "Fair Value Assets Measured On Nonrecurring Basis [Text Block]",
        "terseLabel": "Summary of Carrying Value of Financial Statement Items Re-measured Based on Fair Value on Nonrecurring Basis"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss": {
     "auth_ref": [
      "r263"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of unrealized (holding) gain (loss) which is included in the statement of income (or changes in net assets) related to those assets still held at the reporting date for which fair value is measured on a recurring basis using significant unobservable inputs (Level 3).",
        "label": "Fair Value Assets Measured On Recurring Basis Change In Unrealized Gain Loss",
        "terseLabel": "Changes in fair value recognized during the quarter relating to assets"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisTextBlock": {
     "auth_ref": [
      "r253",
      "r254",
      "r255"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of assets, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, by class that are measured at fair value on a recurring basis. The disclosures contemplated herein include the fair value measurements at the reporting date by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets (Level 1), significant other observable inputs (Level 2), and significant unobservable inputs (Level 3).",
        "label": "Fair Value Assets Measured On Recurring Basis [Text Block]",
        "terseLabel": "Summary of Financial Statement Items Measured at Fair Value on Recurring Basis"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain": {
     "auth_ref": [
      "r260",
      "r266"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Class of asset.",
        "label": "Fair Value Assets Measured On Recurring Basis Unobservable Input Reconciliation By Asset Class [Domain]",
        "terseLabel": "Asset Class"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsTables",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationCreditRiskTransferStripsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationOfFirmCommitmentToPurchaseCRTSecuritiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsTables",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfLoanServicingFeesEarnedAndMortgageServicingRightsRecapturedIncomeEarnedDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "auth_ref": [
      "r260",
      "r266"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the fair value measurement of assets using significant unobservable inputs (Level 3), a reconciliation of the beginning and ending balances, separately presenting changes during the period attributable to the following: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets) and gains or losses recognized in other comprehensive income (loss), and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of Level 3 (for example, transfers due to changes in the observability of significant inputs), by class of asset.",
        "label": "Fair Value Assets Measured On Recurring Basis Unobservable Input Reconciliation [Text Block]",
        "terseLabel": "Summary of Changes in Items Measured Using Level 3 Inputs on Recurring Basis"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Fair Value Balance Sheet Grouping Financial Statement Captions [Line Items]",
        "terseLabel": "Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]"
       }
      }
     },
     "localname": "FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByAssetClassAxis": {
     "auth_ref": [
      "r254",
      "r266"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by class of asset.",
        "label": "Fair Value By Asset Class [Axis]",
        "terseLabel": "Asset Class"
       }
      }
     },
     "localname": "FairValueByAssetClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsTables",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationCreditRiskTransferStripsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationOfFirmCommitmentToPurchaseCRTSecuritiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsTables",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfLoanServicingFeesEarnedAndMortgageServicingRightsRecapturedIncomeEarnedDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTable": {
     "auth_ref": [
      "r254",
      "r269",
      "r270"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities.",
        "label": "Fair Value By Balance Sheet Grouping [Table]",
        "terseLabel": "Fair Value By Balance Sheet Grouping [Table]"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "auth_ref": [
      "r191",
      "r192",
      "r194",
      "r255",
      "r301"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient.",
        "label": "Fair Value By Fair Value Hierarchy Level [Axis]",
        "terseLabel": "Level 1 [Member]"
       }
      }
     },
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfCarryingValueOfREOReMeasuredBasedOnFairValueOnNonrecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "auth_ref": [
      "r253"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by measurement frequency.",
        "label": "Fair Value By Measurement Frequency [Axis]",
        "terseLabel": "Recurring [Member]"
       }
      }
     },
     "localname": "FairValueByMeasurementFrequencyAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfCarryingValueOfREOReMeasuredBasedOnFairValueOnNonrecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueRecognizedInREOThatRemeasuredAtFairValueOnNonrecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueConcentrationOfRiskDisclosureItemsAxis": {
     "auth_ref": [
      "r271",
      "r272",
      "r273"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of credit or market risk.",
        "label": "Fair Value Concentration Of Risk Disclosure Items [Axis]",
        "terseLabel": "Concentration of Credit or Market Risk"
       }
      }
     },
     "localname": "FairValueConcentrationOfRiskDisclosureItemsAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueConcentrationOfRiskDisclosureItemsDomain": {
     "auth_ref": [
      "r271",
      "r272",
      "r273"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Provides the general information items required or determined to be disclosed with respect to all significant concentrations of risk, including credit risk and market risk, arising from all financial instruments (as defined), whether from an individual counterparty or groups of counterparties.",
        "label": "Fair Value Concentration Of Risk Disclosure Items [Domain]",
        "terseLabel": "Fair Value, Concentration of Risk, Disclosure Items"
       }
      }
     },
     "localname": "FairValueConcentrationOfRiskDisclosureItemsDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "localname": "FairValueDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "auth_ref": [
      "r267"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for the fair value of financial instruments (as defined), including financial assets and financial liabilities (collectively, as defined), and the measurements of those instruments as well as disclosures related to the fair value of non-financial assets and liabilities. Such disclosures about the financial instruments, assets, and liabilities would include: (1) the fair value of the required items together with their carrying amounts (as appropriate); (2) for items for which it is not practicable to estimate fair value, disclosure would include: (a) information pertinent to estimating fair value (including, carrying amount, effective interest rate, and maturity, and (b) the reasons why it is not practicable to estimate fair value; (3) significant concentrations of credit risk including: (a) information about the activity, region, or economic characteristics identifying a concentration, (b) the maximum amount of loss the entity is exposed to based on the gross fair value of the related item, (c) policy for requiring collateral or other security and information as to accessing such collateral or security, and (d) the nature and brief description of such collateral or security; (4) quantitative information about market risks and how such risks are managed; (5) for items measured on both a recurring and nonrecurring basis information regarding the inputs used to develop the fair value measurement; and (6) for items presented in the financial statement for which fair value measurement is elected: (a) information necessary to understand the reasons for the election, (b) discussion of the effect of fair value changes on earnings, (c) a description of [similar groups] items for which the election is made and the relation thereof to the balance sheet, the aggregate carrying value of items included in the balance sheet that are not eligible for the election; (7) all other required (as defined) and desired information.",
        "label": "Fair Value Disclosures [Text Block]",
        "terseLabel": "Fair Value"
       }
      }
     },
     "localname": "FairValueDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValue"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "auth_ref": [
      "r191",
      "r192",
      "r194",
      "r255",
      "r302"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date.",
        "label": "Fair Value Inputs Level1 [Member]",
        "terseLabel": "Level 1 [Member]"
       }
      }
     },
     "localname": "FairValueInputsLevel1Member",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfCarryingValueOfREOReMeasuredBasedOnFairValueOnNonrecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "auth_ref": [
      "r191",
      "r192",
      "r194",
      "r255",
      "r303"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Inputs other than quoted prices included within level 1 that are observable for an asset or liability, either directly or indirectly, including, but not limited to, quoted prices for similar assets or liabilities in active markets, or quoted prices for identical or similar assets or liabilities in inactive markets.",
        "label": "Fair Value Inputs Level2 [Member]",
        "terseLabel": "Level 2 [Member]"
       }
      }
     },
     "localname": "FairValueInputsLevel2Member",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfCarryingValueOfREOReMeasuredBasedOnFairValueOnNonrecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "auth_ref": [
      "r191",
      "r192",
      "r194",
      "r255",
      "r304"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value Inputs Level3 [Member]",
        "terseLabel": "Level 3 [Member]"
       }
      }
     },
     "localname": "FairValueInputsLevel3Member",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfCarryingValueOfREOReMeasuredBasedOnFairValueOnNonrecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisChangeInUnrealizedGainLoss": {
     "auth_ref": [
      "r263"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of unrealized (holding) gain (loss) which is included in the statement of income (or changes in net assets) related to those liabilities still held at the reporting date for which fair value is measured on a recurring basis using significant unobservable inputs (Level 3).",
        "label": "Fair Value Liabilities Measured On Recurring Basis Change In Unrealized Gain Loss",
        "terseLabel": "Changes in fair value recognized during the quarter relating to liability"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "auth_ref": [
      "r253",
      "r264"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Provides the general categories used to describe the frequency with which financial assets and liabilities (as defined) are measured at fair value (on a recurring or nonrecurring basis).",
        "label": "Fair Value Measurement Frequency [Domain]",
        "terseLabel": "Fair Value, Measurement Frequency"
       }
      }
     },
     "localname": "FairValueMeasurementFrequencyDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfCarryingValueOfREOReMeasuredBasedOnFairValueOnNonrecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueRecognizedInREOThatRemeasuredAtFairValueOnNonrecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of accounting policy for fair value measurements of financial and non-financial assets, liabilities and instruments classified in shareholders' equity. Disclosures include, but are not limited to, how an entity that manages a group of financial assets and liabilities on the basis of its net exposure measures the fair value of those assets and liabilities.",
        "label": "Fair Value Measurement Policy Policy [Text Block]",
        "terseLabel": "Fair Value Measurement"
       }
      }
     },
     "localname": "FairValueMeasurementPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOrganizationAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1": {
     "auth_ref": [
      "r261"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in the income statement for financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Gain Loss Included In Earnings1",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3": {
     "auth_ref": [
      "r262"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of transfer of financial instrument classified as an asset into level 3 of the fair value hierarchy.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Transfers Into Level3",
        "terseLabel": "Loans acquired for sale at fair value from \"Level 2\" to \"Level 3\""
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue": {
     "auth_ref": [
      "r260"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Asset Value",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings": {
     "auth_ref": [
      "r261"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of gain (loss) recognized on the income statement for financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliation Recurring Basis Liability Gain Loss Included In Earnings",
        "terseLabel": "Changes in instrument-specific credit risk\\Other factors"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue": {
     "auth_ref": [
      "r260"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value Measurement With Unobservable Inputs Reconciliations Recurring Basis Liability Value",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value.",
        "label": "Fair Value Measurements Fair Value Hierarchy [Domain]",
        "terseLabel": "Fair Value Hierarchy and NAV"
       }
      }
     },
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfCarryingValueOfREOReMeasuredBasedOnFairValueOnNonrecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsNonrecurringMember": {
     "auth_ref": [
      "r253",
      "r264"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents a description of the frequency with which certain items are measured at fair value. Items measured at fair value on a nonrecurring basis generally include those items for which measurement inputs are not readily available and which are measured at fair value infrequently (for example, impaired assets).",
        "label": "Fair Value Measurements Nonrecurring [Member]",
        "terseLabel": "Nonrecurring [Member]"
       }
      }
     },
     "localname": "FairValueMeasurementsNonrecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfCarryingValueOfREOReMeasuredBasedOnFairValueOnNonrecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueRecognizedInREOThatRemeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "auth_ref": [
      "r253",
      "r264"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents a description of the frequency with which certain items are measured at fair value. Items measured at fair value on a recurring basis generally include those items for which measurement inputs are readily available and which are measured at fair value at successive reporting periods.",
        "label": "Fair Value Measurements Recurring [Member]",
        "terseLabel": "Recurring [Member]"
       }
      }
     },
     "localname": "FairValueMeasurementsRecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueOptionChangesInFairValueGainLoss1": {
     "auth_ref": [
      "r276"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "For each line item in the statement of financial position, the amounts of gains and losses from fair value changes included in earnings.",
        "label": "Fair Value Option Changes In Fair Value Gain Loss1",
        "terseLabel": "Changes in fair value included in current period income"
       }
      }
     },
     "localname": "FairValueOptionChangesInFairValueGainLoss1",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueOptionCreditRiskGainsLossesOnAssets": {
     "auth_ref": [
      "r277"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents the estimated amount of gains or losses included in earnings during the period attributable to changes in instrument-specific credit risk arising from loans and other receivables held as assets.",
        "label": "Fair Value Option Credit Risk Gains Losses On Assets",
        "terseLabel": "Changes in instrument-specific credit risk"
       }
      }
     },
     "localname": "FairValueOptionCreditRiskGainsLossesOnAssets",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueOptionLoansHeldAsAssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Fair Value Option Loans Held As Assets [Abstract]",
        "terseLabel": "Loans, fair value [Abstract]"
       }
      }
     },
     "localname": "FairValueOptionLoansHeldAsAssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueOptionLoansHeldAsAssetsAggregateDifference": {
     "auth_ref": [
      "r274"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "For loans held as assets for which the fair value option has been elected, this item represents the difference between the aggregate fair value and the aggregate unpaid principal balance of those loans that are 90 days or more past due, in nonaccrual status, or both.",
        "label": "Fair Value Option Loans Held As Assets Aggregate Difference",
        "totalLabel": "Difference"
       }
      }
     },
     "localname": "FairValueOptionLoansHeldAsAssetsAggregateDifference",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueOptionLoansHeldAsAssetsAggregateDifferenceAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Fair Value Option Loans Held As Assets Aggregate Difference [Abstract]",
        "terseLabel": "Loans, difference, [Abstract]"
       }
      }
     },
     "localname": "FairValueOptionLoansHeldAsAssetsAggregateDifferenceAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueOptionQuantitativeDisclosuresLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Fair Value Option Quantitative Disclosures [Line Items]",
        "terseLabel": "Fair Value, Option, Quantitative Disclosures [Line Items]"
       }
      }
     },
     "localname": "FairValueOptionQuantitativeDisclosuresLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueOptionQuantitativeDisclosuresTable": {
     "auth_ref": [
      "r278",
      "r279",
      "r280"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about asset and liability measured at fair value under fair value option.",
        "label": "Fair Value Option Quantitative Disclosures [Table]",
        "terseLabel": "Fair Value Option Quantitative Disclosures [Table]"
       }
      }
     },
     "localname": "FairValueOptionQuantitativeDisclosuresTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueOptionQuantitativeDisclosuresTextBlock": {
     "auth_ref": [
      "r275",
      "r278",
      "r279",
      "r280"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of information about asset and liability measured at fair value under fair value option.",
        "label": "Fair Value Option Quantitative Disclosures [Text Block]",
        "terseLabel": "Fair Values and Related Principal Amounts Due upon Maturity of Mortgage Loans Accounted for Under Fair Value Option"
       }
      }
     },
     "localname": "FairValueOptionQuantitativeDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable": {
     "auth_ref": [
      "r230",
      "r236",
      "r250"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule that discloses the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position.",
        "label": "Fair Values Derivatives Balance Sheet Location By Derivative Contract Type By Hedging Designation [Table]",
        "terseLabel": "Fair Values Derivatives Balance Sheet Location By Derivative Contract Type By Hedging Designation [Table]"
       }
      }
     },
     "localname": "FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfInvestmentInCRTStripsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FederalNationalMortgageAssociationCertificatesAndObligationsFNMAMember": {
     "auth_ref": [
      "r357"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Investments in debentures, bonds and other debt securities issued by the Federal National Mortgage Association (FNMA or Fannie Mae).",
        "label": "Federal National Mortgage Association Certificates And Obligations F N M A [Member]",
        "terseLabel": "Fannie Mae [Member]"
       }
      }
     },
     "localname": "FederalNationalMortgageAssociationCertificatesAndObligationsFNMAMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancialInstrumentAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of financial instrument.",
        "label": "Financial Instrument [Axis]",
        "terseLabel": "Financial Instrument"
       }
      }
     },
     "localname": "FinancialInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentPerformanceStatusAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by category of performance or non-performance status of financial instruments.",
        "label": "Financial Instrument Performance Status [Axis]",
        "terseLabel": "Financial Instrument Performance Status"
       }
      }
     },
     "localname": "FinancialInstrumentPerformanceStatusAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentPerformanceStatusDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Category of performance or non-performance status of financial instruments, including but not limited to, financing receivables, loans, debt, and investments.",
        "label": "Financial Instrument Performance Status [Domain]",
        "terseLabel": "Financial Instrument Performance Status"
       }
      }
     },
     "localname": "FinancialInstrumentPerformanceStatusDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralAtFairValue": {
     "auth_ref": [
      "r311",
      "r313"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The fair value as of the balance sheet date of financial instruments and other positions owned by the entity and pledged to counterparties as collateral, including: (1) mortgages, mortgage-backed and asset backed securities; (2) US government and agency obligations; (3) state and municipal government obligations; (4) other sovereign government debt; (5) corporate obligations; (6) corporate equities; (7) principal investments; (8) derivative contracts; and (9) physical commodities.",
        "label": "Financial Instruments Owned And Pledged As Collateral At Fair Value",
        "terseLabel": "CRT strips pledged to secure Assets sold under agreements to repurchase"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedAndPledgedAsCollateralAtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfInvestmentInCRTStripsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancialInstrumentsOwnedAtFairValue": {
     "auth_ref": [
      "r339"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The aggregate fair value as of the balance sheet date of financial instruments and other positions owned by the entity including: (1) mortgages, mortgage-backed and asset backed securities; (2) US government and agency obligations; (3) state and municipal government obligations; (4) other sovereign government debt; (5) corporate obligations; (6) corporate equities; (7) principal investments; (8) derivative contracts; and (9) physical commodities. Includes both pledged and unpledged holdings.",
        "label": "Financial Instruments Owned At Fair Value",
        "terseLabel": "Investment securities\u2014Interest-only stripped CRT securities"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedAtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfInvestmentInCRTStripsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancialInstrumentsOwnedAtFairValueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Financial Instruments Owned At Fair Value [Abstract]",
        "terseLabel": "Credit risk transfer strips"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedAtFairValueAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfInvestmentInCRTStripsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAtFairValue": {
     "auth_ref": [
      "r339"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": 10070.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10290.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The fair value as of the balance sheet date of firm holdings in mortgages, mortgage backed securities (investment instruments that represent ownership of an undivided interest in a group of mortgages, where principal and interest from the individual mortgages are used to pay investors' principal and interest on the mortgage backed security) and asset-backed securities that are primarily paid from the cash flows of a discrete pool of receivables or other financial assets (such as credit-card receivables), either fixed or revolving, that by their terms convert into cash within a finite time period. Includes both pledged (to counterparties as collateral for financing transactions) and unpledged holdings.",
        "label": "Financial Instruments Owned Mortgages Mortgage Backed And Asset Backed Securities At Fair Value",
        "periodEndLabel": "Balance at end of period",
        "periodStartLabel": "Balance at beginning of period",
        "terseLabel": "Mortgage-backed securities at fair value pledged to creditors",
        "totalLabel": "Fair value"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancialLiabilitiesFairValueDisclosure": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of financial obligations, including, but not limited to, debt instruments, derivative liabilities, federal funds purchased and sold under agreements to repurchase, securities loaned or sold under agreements to repurchase, financial instruments sold not yet purchased, guarantees, line of credit, loans and notes payable, servicing liability, and trading liabilities.",
        "label": "Financial Liabilities Fair Value Disclosure",
        "totalLabel": "Total liabilities"
       }
      }
     },
     "localname": "FinancialLiabilitiesFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Financing Receivable Recorded Investment [Line Items]",
        "terseLabel": "Financing Receivable, Recorded Investment [Line Items]"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FixedAnnuityMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Contract that provides a guaranteed stream of fixed payments.",
        "label": "Fixed Annuity [Member]",
        "terseLabel": "Fixed Annuity"
       }
      }
     },
     "localname": "FixedAnnuityMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_GainLossOnInvestments": {
     "auth_ref": [
      "r62",
      "r83",
      "r151"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail": {
       "order": 10040.0,
       "parentTag": "us-gaap_RevenuesNetOfInterestExpense",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10340.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10160.0,
       "parentTag": "us-gaap_RevenuesNetOfInterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of realized and unrealized gain (loss) on investment.",
        "label": "Gain Loss On Investments",
        "negatedLabel": "Net gain on investments",
        "terseLabel": "Net gain (loss) on investments",
        "totalLabel": "Net (loss) gain on investments"
       }
      }
     },
     "localname": "GainLossOnInvestments",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainLossOnInvestmentsMember1": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Primary financial statement caption encompassing gain (loss) on investments.",
        "label": "Gain Loss On Investments Member1",
        "terseLabel": "Net Gain (Loss) on Investments [Member]",
        "verboseLabel": "Net gain (loss) on investments [Member]"
       }
      }
     },
     "localname": "GainLossOnInvestmentsMember1",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_GainLossOnInvestmentsTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of realized and unrealized gain (loss) on investment in security.",
        "label": "Gain Loss On Investments [Text Block]",
        "terseLabel": "Summary of Net Gain (Loss) on Investments"
       }
      }
     },
     "localname": "GainLossOnInvestmentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_GainLossOnSaleOfDerivatives": {
     "auth_ref": [
      "r83",
      "r369"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The difference between the book value and the sale price of options, swaps, futures, forward contracts, and other derivative instruments. This element refers to the gain (loss) included in earnings.",
        "label": "Gain Loss On Sale Of Derivatives",
        "terseLabel": "Hedging derivatives"
       }
      }
     },
     "localname": "GainLossOnSaleOfDerivatives",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainLossOnSaleOfMortgageLoans": {
     "auth_ref": [
      "r83"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The gains (losses) included in earnings that represent the difference between the sale price and the carrying value of loans made to finance real estate acquisitions. This element refers to the gain (loss) and not to the cash proceeds of the sale. This element is a noncash adjustment to net income when calculating net cash generated by operating activities using the indirect method.",
        "label": "Gain Loss On Sale Of Mortgage Loans",
        "terseLabel": "Loans at fair value",
        "totalLabel": "Net cash of gain on mortgage loans acquired for sale"
       }
      }
     },
     "localname": "GainLossOnSaleOfMortgageLoans",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainLossOnSalesOfLoansNet": {
     "auth_ref": [
      "r83",
      "r369",
      "r408"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail": {
       "order": 10050.0,
       "parentTag": "us-gaap_RevenuesNetOfInterestExpense",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10350.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10170.0,
       "parentTag": "us-gaap_RevenuesNetOfInterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net gain (loss) resulting from a sale of loans, including adjustments to record loans classified as held-for-sale at the lower-of-cost-or-market and fair value adjustments to loan held for investment purposes.",
        "label": "Gain Loss On Sales Of Loans Net",
        "negatedLabel": "Net gain on loans acquired for sale at fair value",
        "terseLabel": "Net gain on loans acquired for sale"
       }
      }
     },
     "localname": "GainLossOnSalesOfLoansNet",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainLossOnSalesOfMortgageBackedSecuritiesMBS": {
     "auth_ref": [
      "r369"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Net gain (loss) resulting from the sales of securitized, pay-through debt securities collateralized by real estate mortgage loans (mortgages).",
        "label": "Gain Loss On Sales Of Mortgage Backed Securities M B S",
        "terseLabel": "Investment securities at fair value, Mortgage-backed securities"
       }
      }
     },
     "localname": "GainLossOnSalesOfMortgageBackedSecuritiesMBS",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainsLossesOnSalesOfInvestmentRealEstate": {
     "auth_ref": [
      "r56",
      "r57",
      "r83",
      "r362",
      "r405"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail": {
       "order": 10040.0,
       "parentTag": "us-gaap_GainsLossesOnSalesOfOtherRealEstate",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net gain (loss) resulting from sales and other disposals of real estate owned for investment purposes.",
        "label": "Gains Losses On Sales Of Investment Real Estate",
        "terseLabel": "Gain on sale, net"
       }
      }
     },
     "localname": "GainsLossesOnSalesOfInvestmentRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainsLossesOnSalesOfOtherRealEstate": {
     "auth_ref": [
      "r370"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10410.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10210.0,
       "parentTag": "us-gaap_RevenuesNetOfInterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net gain (loss) resulting from sales and other disposals of other real estate owned, increases (decreases) in the valuation allowance for foreclosed real estate, and write-downs of other real estate owned after acquisition or physical possession.",
        "label": "Gains Losses On Sales Of Other Real Estate",
        "negatedLabel": "Results of real estate acquired in settlement of loans",
        "terseLabel": "Results of real estate acquired in settlement of loans",
        "totalLabel": "Total gain (loss), net"
       }
      }
     },
     "localname": "GainsLossesOnSalesOfOtherRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GeneralDiscussionOfDerivativeInstrumentsAndHedgingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "General Discussion Of Derivative Instruments And Hedging Activities [Abstract]"
       }
      }
     },
     "localname": "GeneralDiscussionOfDerivativeInstrumentsAndHedgingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_GoodFaithAndMarginDepositsWithBrokerDealers": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of right to receive cash and securities on deposit with broker-dealers to demonstrate an intention to complete a purchase (good faith deposit) and collateral deposited by counterparty to cover the credit risk assumed (margin deposit).",
        "label": "Good Faith And Margin Deposits With Broker Dealers",
        "terseLabel": "Margin deposits placed with counterparties included in Other assets"
       }
      }
     },
     "localname": "GoodFaithAndMarginDepositsWithBrokerDealers",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HomeEquityLoanMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loan based on the equity of the borrower's residential property in which the borrower receives the loan amount upfront. Excludes home equity lines of credit.",
        "label": "Home Equity Loan [Member]",
        "terseLabel": "Home Equity Lines of Credit [Member]"
       }
      }
     },
     "localname": "HomeEquityLoanMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IPOMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "First sale of stock by a private company to the public.",
        "label": "I P O [Member]",
        "terseLabel": "IPO [Member]"
       }
      }
     },
     "localname": "IPOMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncentiveFeeDescription": {
     "auth_ref": [
      "r289"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Description of the nature of the payments to managing member or general partner for incentive rights held including the fee rate, basis of calculation, relevant accounting period, whether the fee is paid to an entity other than the managing member or general partner, or if the fee is waived.",
        "label": "Incentive Fee Description",
        "terseLabel": "Performance incentive fee description"
       }
      }
     },
     "localname": "IncentiveFeeDescription",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "auth_ref": [
      "r52",
      "r114",
      "r338",
      "r363",
      "r406"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10030.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of income (loss) from continuing operations, including income (loss) from equity method investments, before deduction of income tax expense (benefit), and income (loss) attributable to noncontrolling interest.",
        "label": "Income Loss From Continuing Operations Before Income Taxes Extraordinary Items Noncontrolling Interest",
        "terseLabel": "Income (loss) before benefit from income taxes",
        "totalLabel": "Income before (benefit from) provision for income taxes",
        "verboseLabel": "Pretax income (loss)"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeStatementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "localname": "IncomeStatementAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationAxis": {
     "auth_ref": [
      "r158"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by location in the income statement.",
        "label": "Income Statement Location [Axis]",
        "terseLabel": "Income Statement Location"
       }
      }
     },
     "localname": "IncomeStatementLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOtherExpensesSummaryOfOtherExpensesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Location in the income statement.",
        "label": "Income Statement Location [Domain]",
        "terseLabel": "Income Statement Location"
       }
      }
     },
     "localname": "IncomeStatementLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOtherExpensesSummaryOfOtherExpensesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Income Tax Disclosure [Abstract]"
       }
      }
     },
     "localname": "IncomeTaxDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxDisclosureTextBlock": {
     "auth_ref": [
      "r212"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for income taxes. Disclosures may include net deferred tax liability or asset recognized in an enterprise's statement of financial position, net change during the year in the total valuation allowance, approximate tax effect of each type of temporary difference and carryforward that gives rise to a significant portion of deferred tax liabilities and deferred tax assets, utilization of a tax carryback, and tax uncertainties information.",
        "label": "Income Tax Disclosure [Text Block]",
        "terseLabel": "Income Taxes"
       }
      }
     },
     "localname": "IncomeTaxDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureIncomeTaxes"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r96",
      "r138",
      "r211"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10040.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Income Tax Expense Benefit",
        "terseLabel": "(Benefit from) provision for income taxes",
        "verboseLabel": "Expense (benefit) from income taxes"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxesPaidNet": {
     "auth_ref": [
      "r87"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of cash paid during the current period to foreign, federal, state, and local authorities as taxes on income, net of any cash received during the current period as refunds for the overpayment of taxes.",
        "label": "Income Taxes Paid Net",
        "terseLabel": "Income tax, net"
       }
      }
     },
     "localname": "IncomeTaxesPaidNet",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationSummaryOfSupplementalCashFlowInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseDueFromAffiliates": {
     "auth_ref": [
      "r82"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10510.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in receivables to be collected from an entity that is controlling, under the control of, or within the same control group as the reporting entity by means of direct or indirect ownership.",
        "label": "Increase Decrease Due From Affiliates",
        "negatedLabel": "Decrease in due from PennyMac Financial Services, Inc."
       }
      }
     },
     "localname": "IncreaseDecreaseDueFromAffiliates",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities": {
     "auth_ref": [
      "r82"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10530.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the amounts payable to vendors for goods and services received and the amount of obligations and expenses incurred but not paid.",
        "label": "Increase Decrease In Accounts Payable And Accrued Liabilities",
        "terseLabel": "Decrease in accounts payable and accrued liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccountsPayableAndAccruedLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInDueToAffiliates": {
     "auth_ref": [
      "r82"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10540.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The increase (decrease) in obligations owed to an entity that is controlling, under the control of, or within the same control group as the reporting entity by means of direct or indirect ownership.",
        "label": "Increase Decrease In Due To Affiliates",
        "terseLabel": "Increase (decrease) in due to PennyMac Financial Services, Inc."
       }
      }
     },
     "localname": "IncreaseDecreaseInDueToAffiliates",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInIncomeTaxes": {
     "auth_ref": [
      "r82"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10550.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the amounts payable to taxing authorities for taxes that are based on the reporting entity's earnings, net of amounts receivable from taxing authorities for refunds of overpayments or recoveries of income taxes, and in deferred and other tax liabilities and assets.",
        "label": "Increase Decrease In Income Taxes",
        "terseLabel": "(Decrease) increase in income taxes payable"
       }
      }
     },
     "localname": "IncreaseDecreaseInIncomeTaxes",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingAssets": {
     "auth_ref": [
      "r82"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10520.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in operating assets classified as other.",
        "label": "Increase Decrease In Other Operating Assets",
        "negatedLabel": "Decrease (increase) in other assets"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingAssets",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities": {
     "auth_ref": [
      "r123",
      "r129"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Additional shares included in the calculation of diluted EPS as a result of the potentially dilutive effect of convertible debt securities using the if-converted method.",
        "label": "Incremental Common Shares Attributable To Conversion Of Debt Securities",
        "terseLabel": "Shares issuable pursuant to exchange of the Exchangeable Notes"
       }
      }
     },
     "localname": "IncrementalCommonSharesAttributableToConversionOfDebtSecurities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_InterestAndDividendIncomeOperatingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Interest And Dividend Income Operating [Abstract]",
        "terseLabel": "Interest income:"
       }
      }
     },
     "localname": "InterestAndDividendIncomeOperatingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestAndFeeIncomeLoansHeldForSaleMortgages": {
     "auth_ref": [
      "r366"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": 10100.0,
       "parentTag": "us-gaap_InterestIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest and fee income from mortgage loans considered to be held-for-sale.",
        "label": "Interest And Fee Income Loans Held For Sale Mortgages",
        "terseLabel": "Loans acquired for sale at fair value"
       }
      }
     },
     "localname": "InterestAndFeeIncomeLoansHeldForSaleMortgages",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpense": {
     "auth_ref": [
      "r51",
      "r137",
      "r282",
      "r285",
      "r375"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10240.0,
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of the cost of borrowed funds accounted for as interest expense.",
        "label": "Interest Expense",
        "negatedLabel": "Interest expense",
        "terseLabel": "Interest expense",
        "totalLabel": "Interest expense, total"
       }
      }
     },
     "localname": "InterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfFinancingActivitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Interest Expense [Abstract]",
        "terseLabel": "Interest expense:",
        "verboseLabel": "Interest expense:"
       }
      }
     },
     "localname": "InterestExpenseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestExpenseLongTermDebt": {
     "auth_ref": [
      "r374"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": 10030.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate amount of interest paid or due on all long-term debt.",
        "label": "Interest Expense Long Term Debt",
        "terseLabel": "Total interest expense"
       }
      }
     },
     "localname": "InterestExpenseLongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesSummaryOfFinancialInformationRelatingToExchangeableSeniorNotesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseMember": {
     "auth_ref": [
      "r238"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Primary financial statement caption encompassing interest expense.",
        "label": "Interest Expense [Member]",
        "terseLabel": "Interest expense [Member]"
       }
      }
     },
     "localname": "InterestExpenseMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestExpenseSecuritiesSoldUnderAgreementsToRepurchase": {
     "auth_ref": [
      "r373"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Gross expenses on securities sold coupled with an agreement to repurchase the same from the same counterparty at a fixed or determinable price within a fixed or variable time period.",
        "label": "Interest Expense Securities Sold Under Agreements To Repurchase",
        "terseLabel": "Total interest expense",
        "verboseLabel": "Assets sold under agreements to repurchase"
       }
      }
     },
     "localname": "InterestExpenseSecuritiesSoldUnderAgreementsToRepurchase",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeAndInterestExpenseDisclosureTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of interest income and expense, including, but not limited to, interest income and expense from investments, loans, and securities.",
        "label": "Interest Income And Interest Expense Disclosure Table [Text Block]",
        "terseLabel": "Summary of Net Interest Income"
       }
      }
     },
     "localname": "InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InterestIncomeAndInterestExpenseDisclosureTextBlock": {
     "auth_ref": [
      "r367"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for interest income and interest expense for enterprises that derive a significant portion of their revenue from interest collected on investments, loans, and securities.",
        "label": "Interest Income And Interest Expense Disclosure [Text Block]",
        "terseLabel": "Net Interest Income"
       }
      }
     },
     "localname": "InterestIncomeAndInterestExpenseDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncome"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InterestIncomeDomesticDeposits": {
     "auth_ref": [
      "r372"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": 10080.0,
       "parentTag": "us-gaap_InterestIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest earned on deposits in United States money market accounts and other United States interest earning accounts.",
        "label": "Interest Income Domestic Deposits",
        "terseLabel": "Short-term investments"
       }
      }
     },
     "localname": "InterestIncomeDomesticDeposits",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeExpenseNet": {
     "auth_ref": [
      "r368"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail": {
       "order": 10070.0,
       "parentTag": "us-gaap_RevenuesNetOfInterestExpense",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10200.0,
       "parentTag": "us-gaap_RevenuesNetOfInterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net amount of operating interest income (expense).",
        "label": "Interest Income Expense Net",
        "totalLabel": "Net interest income"
       }
      }
     },
     "localname": "InterestIncomeExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeExpenseNetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Interest Income Expense Net [Abstract]",
        "terseLabel": "Net interest income (expense):"
       }
      }
     },
     "localname": "InterestIncomeExpenseNetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestIncomeMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Primary financial statement caption in which reported facts about interest income have been included.",
        "label": "Interest Income [Member]",
        "terseLabel": "Net Interest Income [Member]"
       }
      }
     },
     "localname": "InterestIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestIncomeOperating": {
     "auth_ref": [
      "r58"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10230.0,
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of operating interest income, including, but not limited to, amortization and accretion of premiums and discounts on securities.",
        "label": "Interest Income Operating",
        "terseLabel": "Interest income",
        "totalLabel": "Interest income"
       }
      }
     },
     "localname": "InterestIncomeOperating",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeOther": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": 10150.0,
       "parentTag": "us-gaap_InterestIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of interest income earned from interest bearing assets classified as other.",
        "label": "Interest Income Other",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "InterestIncomeOther",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeSecuritiesMortgageBacked": {
     "auth_ref": [
      "r371"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail": {
       "order": 10090.0,
       "parentTag": "us-gaap_InterestIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of operating interest income, including amortization and accretion of premiums and discounts, on securitized, pass-through debt securities collateralized by real estate mortgage loans.",
        "label": "Interest Income Securities Mortgage Backed",
        "terseLabel": "Mortgage-backed securities"
       }
      }
     },
     "localname": "InterestIncomeSecuritiesMortgageBacked",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeSecuritiesOperatingByTaxableStatusAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Interest Income Securities Operating By Taxable Status [Abstract]",
        "terseLabel": "Interest income:"
       }
      }
     },
     "localname": "InterestIncomeSecuritiesOperatingByTaxableStatusAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestOnConvertibleDebtNetOfTax": {
     "auth_ref": [
      "r121"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail": {
       "order": 10040.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The after-tax amount of interest recognized in the period associated with any convertible debt.",
        "label": "Interest On Convertible Debt Net Of Tax",
        "terseLabel": "Interest on Exchangeable Notes, net of income taxes"
       }
      }
     },
     "localname": "InterestOnConvertibleDebtNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPaidNet": {
     "auth_ref": [
      "r75",
      "r80",
      "r87"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash paid for interest, excluding capitalized interest, classified as operating activity. Includes, but is not limited to, payment to settle zero-coupon bond for accreted interest of debt discount and debt instrument with insignificant coupon interest rate in relation to effective interest rate of borrowing attributable to accreted interest of debt discount.",
        "label": "Interest Paid Net",
        "terseLabel": "Interest"
       }
      }
     },
     "localname": "InterestPaidNet",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationSummaryOfSupplementalCashFlowInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPayableCurrent": {
     "auth_ref": [
      "r2",
      "r3",
      "r25"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10030.0,
       "parentTag": "us-gaap_VariableInterestEntityConsolidatedCarryingAmountLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of [accrued] interest payable on all forms of debt, including trade payables, that has been incurred and is unpaid. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Interest Payable Current",
        "terseLabel": "Accounts payable and accrued liabilities\u2014interest payable"
       }
      }
     },
     "localname": "InterestPayableCurrent",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateLockCommitmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Commitments to extend credit where the interest rate is locked in advance of funds being disbursed for a specified period of time.",
        "label": "Interest Rate Lock Commitments [Member]",
        "terseLabel": "Interest Rate Lock Commitments [Member]"
       }
      }
     },
     "localname": "InterestRateLockCommitmentsMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestReceivableAndOtherAssets": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10070.0,
       "parentTag": "us-gaap_VariableInterestEntityConsolidatedCarryingAmountAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of interest receivable and assets classified as other.",
        "label": "Interest Receivable And Other Assets",
        "terseLabel": "Other\u2014interest receivable"
       }
      }
     },
     "localname": "InterestReceivableAndOtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentIncomeNetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Investment Income Net [Abstract]",
        "terseLabel": "Net investment income",
        "verboseLabel": "Net investment income:"
       }
      }
     },
     "localname": "InvestmentIncomeNetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentOwnedBalancePrincipalAmount": {
     "auth_ref": [
      "r412",
      "r418",
      "r420",
      "r422"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAtFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "For investments which are quantified by principal amount, the principle balance held at close of period.",
        "label": "Investment Owned Balance Principal Amount",
        "terseLabel": "Principal balance"
       }
      }
     },
     "localname": "InvestmentOwnedBalancePrincipalAmount",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentTypeAxis": {
     "auth_ref": [
      "r417",
      "r419",
      "r421",
      "r423"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of investments.",
        "label": "Investment Type [Axis]",
        "terseLabel": "Investment Type"
       }
      }
     },
     "localname": "InvestmentTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseTables",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "auth_ref": [
      "r417",
      "r419",
      "r421",
      "r423"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Asset obtained to generate income or appreciate in value.",
        "label": "Investment Type Categorization [Member]",
        "terseLabel": "Investments"
       }
      }
     },
     "localname": "InvestmentTypeCategorizationMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseTables",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Investments Debt And Equity Securities [Abstract]"
       }
      }
     },
     "localname": "InvestmentsDebtAndEquitySecuritiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock": {
     "auth_ref": [
      "r154",
      "r340",
      "r376",
      "r424"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for  investments in certain debt and equity securities.",
        "label": "Investments In Debt And Marketable Equity Securities And Certain Trading Assets Disclosure [Text Block]",
        "terseLabel": "Net Gain (Loss) on Investments"
       }
      }
     },
     "localname": "InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestments"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LaborAndRelatedExpense": {
     "auth_ref": [
      "r55"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10110.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of expense for salary, wage, profit sharing; incentive and equity-based compensation; and other employee benefit.",
        "label": "Labor And Related Expense",
        "terseLabel": "Compensation"
       }
      }
     },
     "localname": "LaborAndRelatedExpense",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LateFeeIncomeGeneratedByServicingFinancialAssetsAmount": {
     "auth_ref": [
      "r317"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfNetLoanServicingFeesRelatingToMsrsDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_ContractuallySpecifiedServicingFeesLateFeesAndAncillaryFeesEarnedInExchangeForServicingFinancialAssets",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Late Fee Income Generated By Servicing Financial Assets Amount",
        "terseLabel": "Late charges"
       }
      }
     },
     "localname": "LateFeeIncomeGeneratedByServicingFinancialAssetsAmount",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfNetLoanServicingFeesRelatingToMsrsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Liabilities": {
     "auth_ref": [
      "r24"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10080.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all liabilities that are recognized. Liabilities are probable future sacrifices of economic benefits arising from present obligations of an entity to transfer assets or provide services to other entities in the future.",
        "label": "Liabilities",
        "totalLabel": "Total liabilities"
       }
      }
     },
     "localname": "Liabilities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Liabilities [Abstract]",
        "terseLabel": "LIABILITIES"
       }
      }
     },
     "localname": "LiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "auth_ref": [
      "r18",
      "r350",
      "r396"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any.",
        "label": "Liabilities And Stockholders Equity",
        "totalLabel": "Total liabilities and shareholders\u2019 equity"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesFairValueDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Liabilities Fair Value Disclosure [Abstract]",
        "terseLabel": "Liabilities:"
       }
      }
     },
     "localname": "LiabilitiesFairValueDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LineOfCreditFacilityMaximumAmountOutstandingDuringPeriod": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Maximum amount borrowed under the credit facility at any time during the period.",
        "label": "Line Of Credit Facility Maximum Amount Outstanding During Period",
        "terseLabel": "Maximum principal balance",
        "verboseLabel": "Maximum daily amount outstanding"
       }
      }
     },
     "localname": "LineOfCreditFacilityMaximumAmountOutstandingDuringPeriod",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoanPortfolioExpense": {
     "auth_ref": [
      "r60"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10080.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The loan servicing fees paid to third parties that relate to loan expenses for a portfolio containing the entire group of loans owned by the company.",
        "label": "Loan Portfolio Expense",
        "terseLabel": "Loan servicing fees"
       }
      }
     },
     "localname": "LoanPortfolioExpense",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfLoanServicingFeesEarnedAndMortgageServicingRightsRecapturedIncomeEarnedDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoanProcessingFee": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10100.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Expenses paid for obtaining loans which includes expenses such as application and origination fees.",
        "label": "Loan Processing Fee",
        "terseLabel": "Loan origination"
       }
      }
     },
     "localname": "LoanProcessingFee",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansReceivableBasisSpreadOnVariableRate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The percentage points (also referred to as 'margin') added to the reference rate as stated in the loan agreement and used to compute the variable rate on the loans receivable. For instance, the loan agreement might state that the interest rate the borrower is obligated to pay is the London Interbank Offered Rate (LIBOR) plus three quarters (3/4) of a percentage point adjusted quarterly (each three months). LIBOR in this example is the index or reference rate, 3/4 percentage point is the margin, the reference rate plus the margin is the fully indexed rate. This element would be used to report separately the margin.",
        "label": "Loans Receivable Basis Spread On Variable Rate",
        "terseLabel": "Basis point"
       }
      }
     },
     "localname": "LoansReceivableBasisSpreadOnVariableRate",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_LondonInterbankOfferedRateLIBORMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest rate at which a bank borrows funds from other banks in the London interbank market.",
        "label": "London Interbank Offered Rate L I B O R [Member]",
        "terseLabel": "Fixed-rate assets and LIBOR- indexed repurchase agreements [Member]"
       }
      }
     },
     "localname": "LondonInterbankOfferedRateLIBORMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LongTermDebtFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The fair value amount of long-term debt whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission.",
        "label": "Long Term Debt Fair Value",
        "terseLabel": "Exchangeable senior notes"
       }
      }
     },
     "localname": "LongTermDebtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValueOfOtherBorrowingsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtWeightedAverageInterestRateOverTime": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average interest rate of long-term debt outstanding calculated over time.",
        "label": "Long Term Debt Weighted Average Interest Rate Over Time",
        "terseLabel": "Weighted-average interest rate",
        "verboseLabel": "Weighted average interest rate"
       }
      }
     },
     "localname": "LongTermDebtWeightedAverageInterestRateOverTime",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_LongTermNotesPayableAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Long Term Notes Payable [Abstract]",
        "terseLabel": "Assets securing notes payable:"
       }
      }
     },
     "localname": "LongTermNotesPayableAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LongtermDebtTypeAxis": {
     "auth_ref": [
      "r29"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of long-term debt.",
        "label": "Longterm Debt Type [Axis]",
        "terseLabel": "Long-term Debt, Type"
       }
      }
     },
     "localname": "LongtermDebtTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesSummaryOfFinancialInformationRelatingToExchangeableSeniorNotesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValueOfOtherBorrowingsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LongtermDebtTypeDomain": {
     "auth_ref": [
      "r29",
      "r165"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Type of long-term debt arrangement, such as notes, line of credit, commercial paper, asset-based financing, project financing, letter of credit financing. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer.",
        "label": "Longterm Debt Type [Domain]",
        "terseLabel": "Long-term Debt, Type"
       }
      }
     },
     "localname": "LongtermDebtTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesSummaryOfFinancialInformationRelatingToExchangeableSeniorNotesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValueOfOtherBorrowingsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LongtermDebtWeightedAverageInterestRate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average interest rate of long-term debt outstanding calculated at point in time.",
        "label": "Longterm Debt Weighted Average Interest Rate",
        "terseLabel": "Weighted average interest rate"
       }
      }
     },
     "localname": "LongtermDebtWeightedAverageInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ManagementFeeExpense": {
     "auth_ref": [
      "r289"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10090.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of expenses related to the managing member or general partner for management of the day-to-day business functions of the limited liability company (LLC) or limited partnership (LP).",
        "label": "Management Fee Expense",
        "terseLabel": "Management fees",
        "verboseLabel": "Total management fee incurred during the period"
       }
      }
     },
     "localname": "ManagementFeeExpense",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfBaseManagementAndPerformanceIncentiveFeesPayableDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ManagementFeePayable": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_DueToAffiliateCurrentAndNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying amount of the unpaid portion of the fee payable to the managing member or general partner for management of the fund or trust.",
        "label": "Management Fee Payable",
        "terseLabel": "Management fees"
       }
      }
     },
     "localname": "ManagementFeePayable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ManagementMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Person or persons controlling and directing the affairs of an entity.",
        "label": "Management [Member]",
        "terseLabel": "Management [Member]"
       }
      }
     },
     "localname": "ManagementMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ManagingRisksInherentInServicingAssetsAndServicingLiabilitiesByTypeOfRiskAxis": {
     "auth_ref": [
      "r316"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of risks inherent in servicing assets and servicing liabilities.",
        "label": "Managing Risks Inherent In Servicing Assets And Servicing Liabilities By Type Of Risk [Axis]",
        "terseLabel": "Servicing Assets and Servicing Liabilities Risk"
       }
      }
     },
     "localname": "ManagingRisksInherentInServicingAssetsAndServicingLiabilitiesByTypeOfRiskAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_Maturity30To90DaysMember": {
     "auth_ref": [
      "r107"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Maturity period that is more than 29 days but fewer than 91 days from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "label": "Maturity30 To90 Days [Member]",
        "terseLabel": "Over 30 to 90 days [Member]"
       }
      }
     },
     "localname": "Maturity30To90DaysMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfMaturitiesOfOutstandingAssetsSoldUnderAgreementsToRepurchaseByFacilityMaturityDateDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MaturityUpTo30DaysMember": {
     "auth_ref": [
      "r107"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Maturity period of up to 30 days from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "label": "Maturity Up To30 Days [Member]",
        "terseLabel": "Within 30 days [Member]"
       }
      }
     },
     "localname": "MaturityUpTo30DaysMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfMaturitiesOfOutstandingAssetsSoldUnderAgreementsToRepurchaseByFacilityMaturityDateDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputConstantPrepaymentRateMember": {
     "auth_ref": [
      "r257"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measurement input using principal prepayment as proportion of outstanding loan principal at constant rate.",
        "label": "Measurement Input Constant Prepayment Rate [Member]",
        "terseLabel": "Voluntary Prepayment Speed [Member]"
       }
      }
     },
     "localname": "MeasurementInputConstantPrepaymentRateMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputDiscountRateMember": {
     "auth_ref": [
      "r257"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measurement input using interest rate to determine present value of future cash flows.",
        "label": "Measurement Input Discount Rate [Member]",
        "terseLabel": "Discount Rate [Member]"
       }
      }
     },
     "localname": "MeasurementInputDiscountRateMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationCreditRiskTransferStripsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationOfFirmCommitmentToPurchaseCRTSecuritiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputLossSeverityMember": {
     "auth_ref": [
      "r257"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measurement input using loss, including, but not limited to, interest and write-down of principal, incurred on defaulted security as proportion of principal balance.",
        "label": "Measurement Input Loss Severity [Member]",
        "terseLabel": "Remaining Loss Expectation [Member]"
       }
      }
     },
     "localname": "MeasurementInputLossSeverityMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputPrepaymentRateMember": {
     "auth_ref": [
      "r257"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measurement input using principal prepayment at other than constant rate as proportion of outstanding loan principal.",
        "label": "Measurement Input Prepayment Rate [Member]",
        "terseLabel": "Total Prepayment Speed [Member]",
        "verboseLabel": "Involuntary Prepayment Speed [Member]"
       }
      }
     },
     "localname": "MeasurementInputPrepaymentRateMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputPriceVolatilityMember": {
     "auth_ref": [
      "r257"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measurement input using rate at which price of security will increase (decrease) for given set of returns.",
        "label": "Measurement Input Price Volatility [Member]",
        "terseLabel": "Twelve-Month Projected Housing Price Index Change [Member]"
       }
      }
     },
     "localname": "MeasurementInputPriceVolatilityMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputTypeAxis": {
     "auth_ref": [
      "r257"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of measurement input used to determine value of asset and liability.",
        "label": "Measurement Input Type [Axis]",
        "terseLabel": "Measurement Input Type"
       }
      }
     },
     "localname": "MeasurementInputTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInValuationOfInterestRateLockCommitmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationCreditRiskTransferStripsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationOfFirmCommitmentToPurchaseCRTSecuritiesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_MeasurementInputTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measurement input used to determine value of asset and liability.",
        "label": "Measurement Input Type [Domain]",
        "terseLabel": "Measurement Input Type"
       }
      }
     },
     "localname": "MeasurementInputTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyInputsUsedInValuationOfLevel3LoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInReviewAndApprovalOfBrokerProvidedFairValuesForCRTAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyUnobservableInputsUsedInValuationOfInterestRateLockCommitmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationCreditRiskTransferStripsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyUnobservableInputsUsedInValuationOfFirmCommitmentToPurchaseCRTSecuritiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MinimumNetWorthRequiredForCompliance": {
     "auth_ref": [
      "r425",
      "r428"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The lowest amount of net worth (total assets minus total liabilities) required by secondary market investors or state-imposed regulatory mandates.",
        "label": "Minimum Net Worth Required For Compliance",
        "terseLabel": "Minimum net worth amount"
       }
      }
     },
     "localname": "MinimumNetWorthRequiredForCompliance",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgageBackedSecuritiesMember": {
     "auth_ref": [
      "r152",
      "r191",
      "r192",
      "r194"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Securities collateralized by mortgage loans.",
        "label": "Mortgage Backed Securities [Member]",
        "terseLabel": "Mortgage Backed Securities [Member]"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MortgageBankingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Mortgage Banking [Abstract]"
       }
      }
     },
     "localname": "MortgageBankingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_MortgageLoansOnRealEstate": {
     "auth_ref": [
      "r430"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10310.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "Mortgage Loans On Real Estate",
        "terseLabel": "Loans at fair value (includes $356,337 and $399,266 pledged to creditors, respectively)",
        "totalLabel": "Fair value, Total",
        "verboseLabel": "Fair value"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgageServicingRightsMSRImpairmentRecovery": {
     "auth_ref": [
      "r83",
      "r324"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10360.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The adjustment to the carrying value of the rights retained or purchased to service mortgages. These adjustments are made when the estimate of the fair value is changed. This element is a noncash adjustment to net income when calculating net cash generated by operating activities using the indirect method.",
        "label": "Mortgage Servicing Rights M S R Impairment Recovery",
        "negatedTotalLabel": "Total Effect of MSRs",
        "terseLabel": "Change in fair value of mortgage servicing rights, net of hedging results"
       }
      }
     },
     "localname": "MortgageServicingRightsMSRImpairmentRecovery",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgagesHeldForSaleFairValueDisclosure": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": 10080.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10300.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value portion of mortgage loans held-for-sale.",
        "label": "Mortgages Held For Sale Fair Value Disclosure",
        "positiveLabel": "Loans included in loans acquired for sale at fair value pending sale to PLS",
        "terseLabel": "Loans acquired for sale at fair value (includes $2,459,483 and $1,621,879 pledged to creditors, respectively)",
        "verboseLabel": "Loans acquired for sale at fair value"
       }
      }
     },
     "localname": "MortgagesHeldForSaleFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfCorrespondentProductionActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgagesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A loan to finance the purchase of real estate where the lender has a lien on the property as collateral for the loan.",
        "label": "Mortgages [Member]",
        "terseLabel": "Mortgage loans acquired for sale, mortgage loans, REO and MSRs sold under agreements to repurchase [Member]"
       }
      }
     },
     "localname": "MortgagesMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "auth_ref": [
      "r78"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10030.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from financing activities, including discontinued operations. Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit.",
        "label": "Net Cash Provided By Used In Financing Activities",
        "totalLabel": "Net cash provided by financing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Net Cash Provided By Used In Financing Activities [Abstract]",
        "terseLabel": "Cash flows from financing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "auth_ref": [
      "r78"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10020.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from investing activities, including discontinued operations. Investing activity cash flows include making and collecting loans and acquiring and disposing of debt or equity instruments and property, plant, and equipment and other productive assets.",
        "label": "Net Cash Provided By Used In Investing Activities",
        "totalLabel": "Net cash used in investing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Net Cash Provided By Used In Investing Activities [Abstract]",
        "terseLabel": "Cash flows from investing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "auth_ref": [
      "r78",
      "r81",
      "r84"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10010.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities.",
        "label": "Net Cash Provided By Used In Operating Activities",
        "totalLabel": "Net cash used in operating activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Net Cash Provided By Used In Operating Activities [Abstract]",
        "terseLabel": "Cash flows from operating activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLoss": {
     "auth_ref": [
      "r49",
      "r50",
      "r53",
      "r84",
      "r129",
      "r364",
      "r403"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail": {
       "order": 10050.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10330.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10010.0,
       "parentTag": "pmt_NetIncomeLossAttributableToCommonStockholders",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent.",
        "label": "Net Income Loss",
        "terseLabel": "Net income",
        "totalLabel": "Net income"
       }
      }
     },
     "localname": "NetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAttributableToParentDiluted": {
     "auth_ref": [
      "r121"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail": {
       "order": 10030.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent, and includes adjustments resulting from the assumption that dilutive convertible securities were converted, options or warrants were exercised, or that other shares were issued upon the satisfaction of certain conditions.",
        "label": "Net Income Loss Attributable To Parent Diluted",
        "terseLabel": "Net income attributable to common shareholders"
       }
      }
     },
     "localname": "NetIncomeLossAttributableToParentDiluted",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic": {
     "auth_ref": [
      "r114",
      "r120"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities; of income (loss) available to common shareholders.",
        "label": "Net Income Loss Available To Common Stockholders Basic",
        "totalLabel": "Net income attributable to common shareholders"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersBasic",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted": {
     "auth_ref": [
      "r120",
      "r121"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities, and addition from assumption of issuance of common shares for dilutive potential common shares; of income (loss) available to common shareholders.",
        "label": "Net Income Loss Available To Common Stockholders Diluted",
        "totalLabel": "Diluted net income attributable to common shareholders"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersDiluted",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of accounting policy pertaining to new accounting pronouncements that may impact the entity's financial reporting. Includes, but is not limited to, quantification of the expected or actual impact.",
        "label": "New Accounting Pronouncements Policy Policy [Text Block]",
        "terseLabel": "Stock Compensation"
       }
      }
     },
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOrganizationAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NonperformingFinancingReceivableMember": {
     "auth_ref": [
      "r146"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Category status of financial instruments in which payments are past due in accordance with the terms of the contract. Financial instruments include, but are not limited to, financing receivables, loans, debt, and investments.",
        "label": "Nonperforming Financing Receivable [Member]",
        "terseLabel": "Nonperforming mortgage loans [Member]",
        "verboseLabel": "Nonperforming [Member]"
       }
      }
     },
     "localname": "NonperformingFinancingReceivableMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NotesIssued1": {
     "auth_ref": [
      "r88",
      "r89",
      "r90"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The fair value of notes issued in noncash investing and financing activities.",
        "label": "Notes Issued1",
        "terseLabel": "Certificates issued"
       }
      }
     },
     "localname": "NotesIssued1",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NotesPayable": {
     "auth_ref": [
      "r8",
      "r348",
      "r392"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10180.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Including the current and noncurrent portions, aggregate carrying amount of all types of notes payable, as of the balance sheet date, with initial maturities beyond one year or beyond the normal operating cycle, if longer.",
        "label": "Notes Payable",
        "terseLabel": "Notes payable",
        "totalLabel": "Balance"
       }
      }
     },
     "localname": "NotesPayable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NotesPayableAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Notes Payable [Abstract]",
        "terseLabel": "Notes payable"
       }
      }
     },
     "localname": "NotesPayableAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NotesPayableFairValueDisclosure": {
     "auth_ref": [
      "r23"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value portion of notes payable.",
        "label": "Notes Payable Fair Value Disclosure",
        "terseLabel": "Notes payable"
       }
      }
     },
     "localname": "NotesPayableFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValueOfOtherBorrowingsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NumberOfOperatingSegments": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of operating segments. An operating segment is a component of an enterprise: (a) that engages in business activities from which it may earn revenues and incur expenses (including revenues and expenses relating to transactions with other components of the same enterprise), (b) whose operating results are regularly reviewed by the enterprise's chief operating decision maker to make decisions about resources to be allocated to the segment and assess its performance, and (c) for which discrete financial information is available. An operating segment may engage in business activities for which it has yet to earn revenues, for example, start-up operations may be operating segments before earning revenues.",
        "label": "Number Of Operating Segments",
        "terseLabel": "Number of business segments"
       }
      }
     },
     "localname": "NumberOfOperatingSegments",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOrganizationAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsAdditionalInformationDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_OffsettingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Offsetting [Abstract]"
       }
      }
     },
     "localname": "OffsettingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OffsettingAssetsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Offsetting Assets [Line Items]",
        "terseLabel": "Offsetting Assets [Line Items]"
       }
      }
     },
     "localname": "OffsettingAssetsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OffsettingAssetsTable": {
     "auth_ref": [
      "r41",
      "r42"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about derivative and financial assets that are subject to offsetting, including enforceable master netting arrangements.",
        "label": "Offsetting Assets [Table]",
        "terseLabel": "Offsetting Assets [Table]"
       }
      }
     },
     "localname": "OffsettingAssetsTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OffsettingAssetsTableTextBlock": {
     "auth_ref": [
      "r41",
      "r42"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of derivative and other financial assets that are subject to offsetting, including master netting arrangements.",
        "label": "Offsetting Assets Table [Text Block]",
        "terseLabel": "Summary of Net Derivative Assets"
       }
      }
     },
     "localname": "OffsettingAssetsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OffsettingLiabilitiesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Offsetting Liabilities [Line Items]",
        "terseLabel": "Offsetting Liabilities [Line Items]"
       }
      }
     },
     "localname": "OffsettingLiabilitiesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OffsettingLiabilitiesTable": {
     "auth_ref": [
      "r41",
      "r42"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about derivative and financial liabilities that are subject to offsetting, including enforceable master netting arrangements.",
        "label": "Offsetting Liabilities [Table]",
        "terseLabel": "Offsetting Liabilities [Table]"
       }
      }
     },
     "localname": "OffsettingLiabilitiesTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OffsettingLiabilitiesTableTextBlock": {
     "auth_ref": [
      "r41",
      "r42"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of derivative and other financial liabilities that are subject to offsetting, including master netting arrangements.",
        "label": "Offsetting Liabilities Table [Text Block]",
        "terseLabel": "Schedule of Offsetting of Derivative Liabilities and Financial Liabilities"
       }
      }
     },
     "localname": "OffsettingLiabilitiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OperatingCashFlowsDirectMethodAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Operating Cash Flows Direct Method [Abstract]"
       }
      }
     },
     "localname": "OperatingCashFlowsDirectMethodAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OperatingExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10060.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Generally recurring costs associated with normal operations except for the portion of these expenses which can be clearly related to production and included in cost of sales or services. Includes selling, general and administrative expense.",
        "label": "Operating Expenses",
        "totalLabel": "Total expenses"
       }
      }
     },
     "localname": "OperatingExpenses",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingExpensesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Operating Expenses [Abstract]",
        "terseLabel": "Expenses",
        "verboseLabel": "Expenses:"
       }
      }
     },
     "localname": "OperatingExpensesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Organization Consolidation And Presentation Of Financial Statements [Abstract]"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock": {
     "auth_ref": [
      "r1",
      "r222"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for organization, consolidation and basis of presentation of financial statements disclosure.",
        "label": "Organization Consolidation And Presentation Of Financial Statements Disclosure [Text Block]",
        "terseLabel": "Organization"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOrganization"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherAssets": {
     "auth_ref": [
      "r4",
      "r343",
      "r387"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10410.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of assets classified as other.",
        "label": "Other Assets",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "OtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherCommitmentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of information about obligations resulting from other commitments.",
        "label": "Other Commitments Table [Text Block]",
        "terseLabel": "Company's Outstanding Contractual Commitments"
       }
      }
     },
     "localname": "OtherCommitmentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureCommitmentsAndContingenciesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherCostAndExpenseOperating": {
     "auth_ref": [
      "r60"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail": {
       "order": 10030.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The total amount of other operating cost and expense items that are associated with the entity's normal revenue producing operation.",
        "label": "Other Cost And Expense Operating",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "OtherCostAndExpenseOperating",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherExpenseMember": {
     "auth_ref": [
      "r238"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other expense.",
        "label": "Other Expense [Member]",
        "terseLabel": "Other [Member]"
       }
      }
     },
     "localname": "OtherExpenseMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOtherExpensesSummaryOfOtherExpensesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherIncome": {
     "auth_ref": [
      "r409"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10220.0,
       "parentTag": "us-gaap_RevenuesNetOfInterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of revenue and income classified as other.",
        "label": "Other Income",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "OtherIncome",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherIncomeAndExpensesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Other Income And Expenses [Abstract]"
       }
      }
     },
     "localname": "OtherIncomeAndExpensesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherIncomeAndOtherExpenseDisclosureTextBlock": {
     "auth_ref": [
      "r190",
      "r207"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for other income or other expense items (both operating and nonoperating). Sources of nonoperating income or nonoperating expense that may be disclosed, include amounts earned from dividends, interest on securities, profits (losses) on securities, net and miscellaneous other income or income deductions.",
        "label": "Other Income And Other Expense Disclosure [Text Block]",
        "terseLabel": "Other Expenses"
       }
      }
     },
     "localname": "OtherIncomeAndOtherExpenseDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOtherExpenses"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherOperatingIncomeExpenseNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10150.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net amount of other operating income and expenses, the components of which are not separately disclosed on the income statement, from items that are associated with the entity's normal revenue producing operations.",
        "label": "Other Operating Income Expense Net",
        "negatedLabel": "Other",
        "negatedTerseLabel": "Total other expenses"
       }
      }
     },
     "localname": "OtherOperatingIncomeExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOtherExpensesSummaryOfOtherExpensesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherRealEstateValuationAdjustments": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail": {
       "order": 10030.0,
       "parentTag": "us-gaap_GainsLossesOnSalesOfOtherRealEstate",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Valuation adjustments made to other real estate not separately disclosed, including, but not limited to, real estate investments, real estate loans that qualify as investments in real estate, and premises that are no longer used in operations may also be included in real estate owned. This excludes real estate assets taken in settlement of troubled loans through surrender or foreclosure.",
        "label": "Other Real Estate Valuation Adjustments",
        "terseLabel": "Valuation adjustments, net"
       }
      }
     },
     "localname": "OtherRealEstateValuationAdjustments",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherReceivables": {
     "auth_ref": [
      "r34"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail": {
       "order": 10090.0,
       "parentTag": "us-gaap_DueFromAffiliates",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount due from parties in nontrade transactions, classified as other.",
        "label": "Other Receivables",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "OtherReceivables",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ParticipatingMortgageLoanNameDomain": {
     "auth_ref": [
      "r168"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Name of mortgage that gives the lender the right to share in the appreciation of fair value or results of operations of the mortgaged real estate project.",
        "label": "Participating Mortgage Loan Name [Domain]",
        "terseLabel": "Participating Mortgage Loan, Name"
       }
      }
     },
     "localname": "ParticipatingMortgageLoanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseTables",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ParticipatingMortgageLoansAxis": {
     "auth_ref": [
      "r168"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by description of participating mortgage loan.",
        "label": "Participating Mortgage Loans [Axis]",
        "terseLabel": "Participating Mortgage Loans"
       }
      }
     },
     "localname": "ParticipatingMortgageLoansAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseTables",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic": {
     "auth_ref": [
      "r124"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail": {
       "order": 10070.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of earnings (loss) distributed and earnings (loss) allocated to participating securities for the basic earnings (loss) per share or per unit calculation under the two-class method.",
        "label": "Participating Securities Distributed And Undistributed Earnings Loss Basic",
        "negatedLabel": "Effect of participating securities\u2014share-based compensation awards"
       }
      }
     },
     "localname": "ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentForIncentiveFee": {
     "auth_ref": [
      "r76",
      "r287"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount paid for incentive rights held by the managing member or general partner, of limited liability company (LLC) or limited partnership (LP).",
        "label": "Payment For Incentive Fee",
        "terseLabel": "Reimbursement paid for every $100 of performance incentive fees earned"
       }
      }
     },
     "localname": "PaymentForIncentiveFee",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForAdvanceToAffiliate": {
     "auth_ref": [
      "r68"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow from advancing money to an affiliate (an entity that is related but not strictly controlled by the entity).",
        "label": "Payments For Advance To Affiliate",
        "terseLabel": "Payments and settlements during the period"
       }
      }
     },
     "localname": "PaymentsForAdvanceToAffiliate",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfExpensesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForProceedsFromDerivativeInstrumentInvestingActivities": {
     "auth_ref": [
      "r111"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10280.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net cash outflow or inflow from derivative instruments during the period, which are classified as investing activities, excluding those designated as hedging instruments.",
        "label": "Payments For Proceeds From Derivative Instrument Investing Activities",
        "negatedLabel": "Net settlement of derivative financial instruments"
       }
      }
     },
     "localname": "PaymentsForProceedsFromDerivativeInstrumentInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForProceedsFromShortTermInvestments": {
     "auth_ref": [
      "r66",
      "r68",
      "r86"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10210.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net amount paid (received) by the reporting entity through acquisition or sale and maturities of short-term investments with an original maturity that is three months or less which qualify for treatment as an investing activity based on management's intention and intended by management to be liquidated, if necessary, within the current operating cycle. Includes cash flows from securities classified as trading securities that were acquired for reasons other than sale in the short-term.",
        "label": "Payments For Proceeds From Short Term Investments",
        "negatedLabel": "Net increase in short-term investments"
       }
      }
     },
     "localname": "PaymentsForProceedsFromShortTermInvestments",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForRepurchaseOfCommonStock": {
     "auth_ref": [
      "r71"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10200.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow to reacquire common stock during the period.",
        "label": "Payments For Repurchase Of Common Stock",
        "negatedLabel": "Repurchase of common shares"
       }
      }
     },
     "localname": "PaymentsForRepurchaseOfCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDebtIssuanceCosts": {
     "auth_ref": [
      "r73"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10130.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow paid to third parties in connection with debt origination, which will be amortized over the remaining maturity period of the associated long-term debt.",
        "label": "Payments Of Debt Issuance Costs",
        "negatedLabel": "Payment of debt issuance costs"
       }
      }
     },
     "localname": "PaymentsOfDebtIssuanceCosts",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividendsCommonStock": {
     "auth_ref": [
      "r71"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10150.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash outflow in the form of ordinary dividends to common shareholders of the parent entity.",
        "label": "Payments Of Dividends Common Stock",
        "negatedLabel": "Payment of dividends to common shareholders"
       }
      }
     },
     "localname": "PaymentsOfDividendsCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock": {
     "auth_ref": [
      "r71"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10140.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash outflow in the form of ordinary dividends to preferred shareholders of the parent entity.",
        "label": "Payments Of Dividends Preferred Stock And Preference Stock",
        "negatedLabel": "Payment of dividends to preferred shareholders"
       }
      }
     },
     "localname": "PaymentsOfDividendsPreferredStockAndPreferenceStock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfStockIssuanceCosts": {
     "auth_ref": [
      "r74"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10170.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow for cost incurred directly with the issuance of an equity security.",
        "label": "Payments Of Stock Issuance Costs",
        "negatedLabel": "Payment of issuance costs related to common shares"
       }
      }
     },
     "localname": "PaymentsOfStockIssuanceCosts",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation": {
     "auth_ref": [
      "r71",
      "r195"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10180.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash outflow to satisfy an employee's income tax withholding obligation as part of a net-share settlement of a share-based award.",
        "label": "Payments Related To Tax Withholding For Share Based Compensation",
        "negatedLabel": "Payment of vested share-based compensation withholdings"
       }
      }
     },
     "localname": "PaymentsRelatedToTaxWithholdingForShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt": {
     "auth_ref": [
      "r65",
      "r68",
      "r150"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10220.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash outflow to acquire investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Payments To Acquire Available For Sale Securities Debt",
        "negatedLabel": "Purchase of investment securities at fair value"
       }
      }
     },
     "localname": "PaymentsToAcquireAvailableForSaleSecuritiesDebt",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PerformanceSharesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Shares or units awarded to employees for meeting certain performance targets.",
        "label": "Performance Shares [Member]",
        "terseLabel": "Performance Shares Units [Member]"
       }
      }
     },
     "localname": "PerformanceSharesMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlansSummaryOfShareBasedCompensationActivityDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PerformingFinancingReceivableMember": {
     "auth_ref": [
      "r146"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Category status of financial instruments in which payments are received or paid on a timely basis in accordance with the terms of the contract. Financial instruments include, but are not limited to, financing receivables, loans, debt instruments, and investments.",
        "label": "Performing Financing Receivable [Member]",
        "terseLabel": "Performing [Member]"
       }
      }
     },
     "localname": "PerformingFinancingReceivableMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PledgedAssetsSeparatelyReportedLoansPledgedAsCollateralAtFairValue": {
     "auth_ref": [
      "r311"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The fair value, as of the date of each statement of financial position presented, of loans which are owned but transferred to serve as collateral for the payment of the related debt obligation primarily arising from secured borrowings and repurchase agreements, and that are reclassified and separately reported in the statement of financial position because the transferee has the right by contract or custom to sell or re-pledge them.",
        "label": "Pledged Assets Separately Reported Loans Pledged As Collateral At Fair Value",
        "terseLabel": "Loans at fair value, pledged to creditors",
        "verboseLabel": "Loans at fair value pledged to secure"
       }
      }
     },
     "localname": "PledgedAssetsSeparatelyReportedLoansPledgedAsCollateralAtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PledgedAssetsSeparatelyReportedRealEstatePledgedAsCollateralAtFairValue": {
     "auth_ref": [
      "r311"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The fair value, as of the date of each statement of financial position presented, of real estate which is owned but transferred to serve as collateral for the payment of the related debt obligation, and that is reclassified and separately reported in the statement of financial position because the transferee has the right by contract or custom to sell or re-pledge it.",
        "label": "Pledged Assets Separately Reported Real Estate Pledged As Collateral At Fair Value",
        "terseLabel": "Real estate pledged to creditors",
        "totalLabel": "Real estate pledged to creditors"
       }
      }
     },
     "localname": "PledgedAssetsSeparatelyReportedRealEstatePledgedAsCollateralAtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PledgedFinancialInstrumentsNotSeparatelyReportedSecuritiesPledged": {
     "auth_ref": [
      "r312"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail": {
       "order": 10020.0,
       "parentTag": "pmt_PledgedFinancialInstrumentsNotSeparatelyReportedAndAssetsSeparatelyReportedOnStatementAtFairValue",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the date of the latest financial statement presented of securities which are owned but transferred to another party to serve as collateral to partially or fully secure a debt obligation, repurchase agreement or other current or potential obligation, and for which the transferee is not permitted to sell or re-pledge them to an unrelated party.",
        "label": "Pledged Financial Instruments Not Separately Reported Securities Pledged",
        "terseLabel": "Loans pledged to secure mortgage loan participation purchase and sale agreements",
        "verboseLabel": "Loans acquired for sale pledged to secure mortgage loan participation purchase and sale agreements"
       }
      }
     },
     "localname": "PledgedFinancialInstrumentsNotSeparatelyReportedSecuritiesPledged",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PreferredStockDiscountOnShares": {
     "auth_ref": [
      "r185"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Discount on preferred shares, or any unamortized balance thereof, shown separately as a deduction from the applicable account(s) as circumstances require.",
        "label": "Preferred Stock Discount On Shares",
        "verboseLabel": "Issuance discount"
       }
      }
     },
     "localname": "PreferredStockDiscountOnShares",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PreferredStockDividendPaymentTerms": {
     "auth_ref": [
      "r11",
      "r12",
      "r176"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Specific information regarding dividend payment dates or timing and whether or not dividends are paid on a cumulative basis.",
        "label": "Preferred Stock Dividend Payment Terms",
        "terseLabel": "Statutory Dividend Payment Restrictions Disclosure"
       }
      }
     },
     "localname": "PreferredStockDividendPaymentTerms",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PreferredStockDividendRatePercentage": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The percentage rate used to calculate dividend payments on preferred stock.",
        "label": "Preferred Stock Dividend Rate Percentage",
        "terseLabel": "Cumulative dividend, beneficial interest rate"
       }
      }
     },
     "localname": "PreferredStockDividendRatePercentage",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestParentheticalDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_PreferredStockDividendsIncomeStatementImpact": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail": {
       "order": 10060.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": -1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10020.0,
       "parentTag": "pmt_NetIncomeLossAttributableToCommonStockholders",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of preferred stock dividends that is an adjustment to net income apportioned to common stockholders.",
        "label": "Preferred Stock Dividends Income Statement Impact",
        "negatedLabel": "Dividends on preferred shares",
        "terseLabel": "Dividends on preferred shares"
       }
      }
     },
     "localname": "PreferredStockDividendsIncomeStatementImpact",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PreferredStockDividendsPerShareCashPaid": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate dividends paid during the period for each share of preferred stock outstanding.",
        "label": "Preferred Stock Dividends Per Share Cash Paid",
        "terseLabel": "Dividends per share"
       }
      }
     },
     "localname": "PreferredStockDividendsPerShareCashPaid",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_PreferredStockLiquidationPreference": {
     "auth_ref": [
      "r12",
      "r94",
      "r99",
      "r176",
      "r177"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The per share liquidation preference (or restrictions) of nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer) that has a preference in involuntary liquidation considerably in excess of the par or stated value of the shares. The liquidation preference is the difference between the preference in liquidation and the par or stated values of the share.",
        "label": "Preferred Stock Liquidation Preference",
        "terseLabel": "Preferred stock, liquidation preference"
       }
      }
     },
     "localname": "PreferredStockLiquidationPreference",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_PreferredStockLiquidationPreferenceValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Value of the difference between preference in liquidation and the par or stated values of the preferred shares.",
        "label": "Preferred Stock Liquidation Preference Value",
        "terseLabel": "Preferred stock, liquidation preference, value",
        "verboseLabel": "Liquidation preference"
       }
      }
     },
     "localname": "PreferredStockLiquidationPreferenceValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Preferred shares may provide a preferential dividend to the dividend on common stock and may take precedence over common stock in the event of a liquidation. Preferred shares typically represent an ownership interest in the company.",
        "label": "Preferred Stock [Member]",
        "terseLabel": "Preferred Shares [Member]"
       }
      }
     },
     "localname": "PreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PreferredStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r12"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Face amount or stated value per share of preferred stock nonredeemable or redeemable solely at the option of the issuer.",
        "label": "Preferred Stock Par Or Stated Value Per Share",
        "terseLabel": "Preferred stock, par value"
       }
      }
     },
     "localname": "PreferredStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_PreferredStockRedemptionPricePerShare": {
     "auth_ref": [
      "r174",
      "r176",
      "r178"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The price per share at which the preferred stock of an entity that has priority over common stock in the distribution of dividends and in the event of liquidation of the entity is redeemed or may be called at. The redemption features of this preferred stock are solely within the control of the issuer.",
        "label": "Preferred Stock Redemption Price Per Share",
        "terseLabel": "Preferred stock redemption price per share"
       }
      }
     },
     "localname": "PreferredStockRedemptionPricePerShare",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_PreferredStockSharesAuthorized": {
     "auth_ref": [
      "r12"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The maximum number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) permitted to be issued by an entity's charter and bylaws.",
        "label": "Preferred Stock Shares Authorized",
        "terseLabel": "Preferred stock, shares authorized"
       }
      }
     },
     "localname": "PreferredStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_PreferredStockSharesIssued": {
     "auth_ref": [
      "r12"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) issued to shareholders (includes related preferred shares that were issued, repurchased, and remain in the treasury). May be all or portion of the number of preferred shares authorized. Excludes preferred shares that are classified as debt.",
        "label": "Preferred Stock Shares Issued",
        "terseLabel": "Preferred stock, shares issued",
        "verboseLabel": "Number of shares"
       }
      }
     },
     "localname": "PreferredStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_PreferredStockSharesOutstanding": {
     "auth_ref": [
      "r12"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate share number for all nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer) held by stockholders. Does not include preferred shares that have been repurchased.",
        "label": "Preferred Stock Shares Outstanding",
        "terseLabel": "Preferred stock, shares outstanding"
       }
      }
     },
     "localname": "PreferredStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_PreferredStockValue": {
     "auth_ref": [
      "r12"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10110.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate par or stated value of issued nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable preferred shares, par value and other disclosure concepts are in another section within stockholders' equity.",
        "label": "Preferred Stock Value",
        "terseLabel": "Preferred shares of beneficial interest, $0.01 par value per share, authorized 100,000,000 shares, issued and outstanding 12,400,000 shares, liquidation preference $310,000,000",
        "verboseLabel": "Carrying value"
       }
      }
     },
     "localname": "PreferredStockValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrincipalAmountOutstandingOnLoansSecuritized": {
     "auth_ref": [
      "r307"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This is the principal amount outstanding for securitized loans only (across all types of loans).",
        "label": "Principal Amount Outstanding On Loans Securitized",
        "terseLabel": "UPB"
       }
      }
     },
     "localname": "PrincipalAmountOutstandingOnLoansSecuritized",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfCommonStock": {
     "auth_ref": [
      "r69"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10160.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow from the additional capital contribution to the entity.",
        "label": "Proceeds From Issuance Of Common Stock",
        "terseLabel": "Issuance of common shares"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfActivitiesUnderATMEquityOfferingProgramDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfUnderwrittenOfferingsOfCommonSharesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfSecuredDebt": {
     "auth_ref": [
      "r70"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10080.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow from amounts received from issuance of long-term debt that is wholly or partially secured by collateral. Excludes proceeds from tax exempt secured debt.",
        "label": "Proceeds From Issuance Of Secured Debt",
        "terseLabel": "Issuance of notes payable"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfSecuredDebt",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromRelatedPartyDebt": {
     "auth_ref": [
      "r70"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10110.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow from a long-term borrowing made from related parties where one party can exercise control or significant influence over another party; including affiliates, owners or officers and their immediate families, pension trusts, and so forth. Alternate caption: Proceeds from Advances from Affiliates.",
        "label": "Proceeds From Related Party Debt",
        "terseLabel": "Sale of assets to PennyMac Financial Services, Inc. under agreements to repurchase"
       }
      }
     },
     "localname": "ProceedsFromRelatedPartyDebt",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleAndCollectionOfLoansReceivable": {
     "auth_ref": [
      "r66"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10250.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow associated with the sale and collection of loans receivables arising from the financing of goods and services.",
        "label": "Proceeds From Sale And Collection Of Loans Receivable",
        "terseLabel": "Sale and repayment of loans at fair value"
       }
      }
     },
     "localname": "ProceedsFromSaleAndCollectionOfLoansReceivable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfMortgageLoansHeldForSale": {
     "auth_ref": [
      "r77",
      "r79"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10470.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow from sales of loans that are secured with real estate mortgages and are held with the intention to resell in the near future.",
        "label": "Proceeds From Sale Of Mortgage Loans Held For Sale",
        "terseLabel": "Sale to nonaffiliates and repayment of loans acquired for sale at fair value"
       }
      }
     },
     "localname": "ProceedsFromSaleOfMortgageLoansHeldForSale",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfWhollyOwnedRealEstateAndRealEstateAcquiredInSettlementOfLoans": {
     "auth_ref": [
      "r67"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow from proceeds From Sales of Wholly Owned Real Estate and Real Estate Acquired in Settlement of Loans.",
        "label": "Proceeds From Sale Of Wholly Owned Real Estate And Real Estate Acquired In Settlement Of Loans",
        "negatedLabel": "Sales"
       }
      }
     },
     "localname": "ProceedsFromSaleOfWhollyOwnedRealEstateAndRealEstateAcquiredInSettlementOfLoans",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProfessionalFees": {
     "auth_ref": [
      "r415",
      "r416"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10120.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A fee charged for services from professionals such as doctors, lawyers and accountants. The term is often expanded to include other professions, for example, pharmacists charging to maintain a medicinal profile of a client or customer.",
        "label": "Professional Fees",
        "terseLabel": "Professional services"
       }
      }
     },
     "localname": "ProfessionalFees",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PurchaseCommitmentExcludingLongtermCommitmentAxis": {
     "auth_ref": [
      "r10",
      "r349",
      "r393"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by arrangement, in which the entity has agreed to expend funds to procure goods or services from one or more suppliers.",
        "label": "Purchase Commitment Excluding Longterm Commitment [Axis]",
        "terseLabel": "Purchase Commitment, Excluding Long-term Commitment"
       }
      }
     },
     "localname": "PurchaseCommitmentExcludingLongtermCommitmentAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PurchaseCommitmentExcludingLongtermCommitmentDomain": {
     "auth_ref": [
      "r10",
      "r349",
      "r393"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item is intended to be populated, by the entity, with Members identifying each purchase commitment about which information required or determined to be disclosed is being provided. If only one such commitment exists, this item may be used to capture such information; if multiple commitments exist, this item is the dimensional default, which will aggregate such information, as appropriate.",
        "label": "Purchase Commitment Excluding Longterm Commitment [Domain]",
        "terseLabel": "Purchase Commitment, Excluding Long-term Commitment"
       }
      }
     },
     "localname": "PurchaseCommitmentExcludingLongtermCommitmentDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PurchaseCommitmentMember": {
     "auth_ref": [
      "r10",
      "r349",
      "r393"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Purchase arrangement in which the entity has agreed to expend funds to procure goods or services from a supplier. Excludes long-term commitments.",
        "label": "Purchase Commitment [Member]",
        "terseLabel": "Purchase Commitment [Member]"
       }
      }
     },
     "localname": "PurchaseCommitmentMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RealEstateAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Real Estate [Abstract]"
       }
      }
     },
     "localname": "RealEstateAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RealEstateAcquiredInSatisfactionOfDebtMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Real estate taken in settlement of troubled loans through surrender or foreclosure.",
        "label": "Real Estate Acquired In Satisfaction Of Debt [Member]",
        "terseLabel": "Real Estate Acquired in Satisfaction of Debt [Member]"
       }
      }
     },
     "localname": "RealEstateAcquiredInSatisfactionOfDebtMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RealEstateAcquiredThroughForeclosure": {
     "auth_ref": [
      "r144",
      "r145"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10350.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of land and buildings obtained through foreclosure proceedings or defeasance in full or partial satisfaction of a debt arrangement.",
        "label": "Real Estate Acquired Through Foreclosure",
        "periodEndLabel": "Balance at end of period",
        "periodStartLabel": "Balance at beginning of period",
        "terseLabel": "Real estate acquired in settlement of loans (includes $65,008 and $40,198 pledged to creditors, respectively)"
       }
      }
     },
     "localname": "RealEstateAcquiredThroughForeclosure",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateInvestmentMember": {
     "auth_ref": [
      "r385",
      "r411"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This element represents direct equity investments in real estate projects (Land, buildings and improvements owned for income production and capital accretion potential) and certain loans accounted for as real estate investments. For loans accounted for as real estate investments, the entity (lender) has virtually the same risks and rewards as those of owners or joint venture participants. Such arrangements are treated as if the entity actually has an ownership interest in the property. In such arrangements, the entity (lender) participates in expected residual profits, which may be in the form of an equity kicker or a higher than usual effective interest rate. At the outset and during the construction and development of the property, the borrower generally has little or no equity in the property and the entity's (lender's) only source of repayment is the property. The entity (lender) generally (a) agrees to provide substantially all funds to acquire, develop, and construct the property, (b) funds the commitment or origination fees or both, and (c) funds interest during the development and construction of the property.",
        "label": "Real Estate Investment [Member]",
        "terseLabel": "Real Estate Held for Investment [Member]"
       }
      }
     },
     "localname": "RealEstateInvestmentMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RealEstateInvestments": {
     "auth_ref": [
      "r399"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10360.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of real estate investments, net of accumulated depreciation, which may include the following: (1) land available-for-sale; (2) land available-for-development; (3) investments in building and building improvements; (4) tenant allowances; (5) developments in-process; (6) rental properties; (7) other real estate investments; (8) real estate joint ventures; and (9) unconsolidated real estate and other joint ventures not separately presented.",
        "label": "Real Estate Investments",
        "terseLabel": "Real estate held for investment (includes $23,262 pledged to creditors at December 31, 2018)"
       }
      }
     },
     "localname": "RealEstateInvestments",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateOwnedTextBlock": {
     "auth_ref": [
      "r144",
      "r148",
      "r149",
      "r156",
      "r157",
      "r342",
      "r354"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for real estate owned (as defined). Generally, the largest component of real estate owned by lenders is assets taken in settlement of troubled loans through surrender or foreclosure. Real estate investments, real estate loans that qualify as investments in real estate, and premises that are no longer used in operations may also be included in real estate owned.",
        "label": "Real Estate Owned [Text Block]",
        "terseLabel": "Real Estate Acquired in Settlement of Loans"
       }
      }
     },
     "localname": "RealEstateOwnedTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoans"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ReceivableTypeDomain": {
     "auth_ref": [
      "r33"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financing arrangement representing a contractual right to receive money either on demand or on fixed and determinable dates.",
        "label": "Receivable Type [Domain]",
        "terseLabel": "Receivable"
       }
      }
     },
     "localname": "ReceivableTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ReceivablesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Receivables [Abstract]"
       }
      }
     },
     "localname": "ReceivablesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RegulatoryCapitalRequirementsForMortgageCompaniesDisclosureTextBlock": {
     "auth_ref": [
      "r426",
      "r427",
      "r428"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for a mortgage banking entity related to capital requirements imposed by secondary market investors or state imposed regulatory mandates. The disclosure may include: (1) a description of the minimum net worth requirements related to (a) secondary market investors and (b) state-imposed regulatory mandates; (2) actual or possible material effects of noncompliance; (3) whether the entity is in compliance with the regulatory capital requirements, including (a) the entity's required and actual net worth amounts, (b) factors that may significantly affect adequacy of net worth such as potentially volatile components of capital, qualitative factors, or regulatory mandates; and (4) possible affects of noncompliance on amounts and disclosures in the notes to the financial statements. Servicers with net worth requirements from multiple sources may disclose (1) significant servicing covenants with secondary market investors with commonly defined servicing requirements (2) any other secondary market investor where violation of the requirement would have a significant adverse effect and (3) the most restrictive third party agreement, if not included above. The disclosure may also include additional information that might be disclosed in situations where substantial doubt about the entity's ability to continue as a going concern for a reasonable period of time.",
        "label": "Regulatory Capital Requirements For Mortgage Companies Disclosure [Text Block]",
        "terseLabel": "Regulatory Capital and Liquidity Requirements"
       }
      }
     },
     "localname": "RegulatoryCapitalRequirementsForMortgageCompaniesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirements"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RelatedPartyDomain": {
     "auth_ref": [
      "r295"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Related parties include affiliates; other entities for which investments are accounted for by the equity method by the entity; trusts for benefit of employees; and principal owners, management, and members of immediate families. It also may include other parties with which the entity may control or can significantly influence the management or operating policies of the other to an extent that one of the transacting parties might be prevented from fully pursuing its own separate interests.",
        "label": "Related Party [Domain]",
        "terseLabel": "Related Party"
       }
      }
     },
     "localname": "RelatedPartyDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfBaseManagementAndPerformanceIncentiveFeesPayableDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfCorrespondentProductionActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfExpensesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfFinancingActivitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfLoanServicingFeesEarnedAndMortgageServicingRightsRecapturedIncomeEarnedDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RelatedPartyTransactionLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Related Party Transaction [Line Items]",
        "terseLabel": "Related Party Transaction [Line Items]"
       }
      }
     },
     "localname": "RelatedPartyTransactionLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfBaseManagementAndPerformanceIncentiveFeesPayableDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfCorrespondentProductionActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfExpensesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfFinancingActivitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfLoanServicingFeesEarnedAndMortgageServicingRightsRecapturedIncomeEarnedDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Related Party Transactions [Abstract]"
       }
      }
     },
     "localname": "RelatedPartyTransactionsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionsByRelatedPartyAxis": {
     "auth_ref": [
      "r193",
      "r289",
      "r291",
      "r326",
      "r327",
      "r328",
      "r329",
      "r330",
      "r331",
      "r332",
      "r333",
      "r334",
      "r335",
      "r336",
      "r337"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of related party. Related parties include, but not limited to, affiliates; other entities for which investments are accounted for by the equity method by the entity; trusts for benefit of employees; and principal owners, management, and members of immediate families. It also may include other parties with which the entity may control or can significantly influence the management or operating policies of the other to an extent that one of the transacting parties might be prevented from fully pursuing its own separate interests.",
        "label": "Related Party Transactions By Related Party [Axis]",
        "terseLabel": "Related Party"
       }
      }
     },
     "localname": "RelatedPartyTransactionsByRelatedPartyAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesCorrespondentProductionActivitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesMortgageLoanServicingAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfBaseManagementAndPerformanceIncentiveFeesPayableDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfCorrespondentProductionActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfExpensesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfFinancingActivitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfLoanServicingFeesEarnedAndMortgageServicingRightsRecapturedIncomeEarnedDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionsDisclosureTextBlock": {
     "auth_ref": [
      "r295"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for related party transactions. Examples of related party transactions include transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners; and (d) affiliates.",
        "label": "Related Party Transactions Disclosure [Text Block]",
        "terseLabel": "Transactions with Related Parties"
       }
      }
     },
     "localname": "RelatedPartyTransactionsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedParties"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RepaymentsOfNotesPayable": {
     "auth_ref": [
      "r72"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10090.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow for a borrowing supported by a written promise to pay an obligation.",
        "label": "Repayments Of Notes Payable",
        "negatedLabel": "Repayment of notes payable"
       }
      }
     },
     "localname": "RepaymentsOfNotesPayable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RepaymentsOfRelatedPartyDebt": {
     "auth_ref": [
      "r72"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10120.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow for the payment of a long-term borrowing made from a related party where one party can exercise control or significant influence over another party; including affiliates, owners or officers and their immediate families, pension trusts, and so forth. Alternate caption: Payments for Advances from Affiliates.",
        "label": "Repayments Of Related Party Debt",
        "negatedLabel": "Repurchase of assets sold to PennyMac Financial Services, Inc. under agreement to repurchase"
       }
      }
     },
     "localname": "RepaymentsOfRelatedPartyDebt",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RepaymentsOfSecuredDebt": {
     "auth_ref": [
      "r72"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10100.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow to repay long-term debt that is wholly or partially secured by collateral. Excludes repayments of tax exempt secured debt.",
        "label": "Repayments Of Secured Debt",
        "negatedLabel": "Repayment of asset-backed financing of a variable interest entity at fair value"
       }
      }
     },
     "localname": "RepaymentsOfSecuredDebt",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RepurchaseAgreementCounterpartyAmountAtRisk": {
     "auth_ref": [
      "r108"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount at risk under repurchase agreements is defined as the excess of carrying amount (or market value, if higher than the carrying amount or if there is no carrying amount) of the securities or other assets sold under agreement to repurchase, including accrued interest plus any cash or other assets on deposit to secure the repurchase obligation, over the amount of the repurchase liability (adjusted for accrued interest).",
        "label": "Repurchase Agreement Counterparty Amount At Risk",
        "terseLabel": "Amount at risk"
       }
      }
     },
     "localname": "RepurchaseAgreementCounterpartyAmountAtRisk",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RepurchaseAgreementsMaturities": {
     "auth_ref": [
      "r107"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This describes the time frame of the terms of the entity's repurchase agreements.",
        "label": "Repurchase Agreements Maturities",
        "terseLabel": "Maturity date description"
       }
      }
     },
     "localname": "RepurchaseAgreementsMaturities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RepurchaseAgreementsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Investments represented by an agreement between the entity and another party for the sale and repurchase of identical or substantially the same securities at a date certain for a specified price. Such agreements are generally short-term in nature.",
        "label": "Repurchase Agreements [Member]",
        "terseLabel": "Repurchase Agreement Derivatives [Member]",
        "verboseLabel": "Repurchase Agreement Derivatives [Member]"
       }
      }
     },
     "localname": "RepurchaseAgreementsMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock": {
     "auth_ref": [
      "r325"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for repurchase agreements (also known as repos), resale agreements (also known as reverse repurchase agreements or reverse repos), securities borrowed transactions, and securities loaned transactions.",
        "label": "Repurchase Agreements Resale Agreements Securities Borrowed And Securities Loaned Disclosure [Text Block]",
        "terseLabel": "Assets Sold Under Agreements to Repurchase"
       }
      }
     },
     "localname": "RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchase"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RestrictedCash": {
     "auth_ref": [
      "r91",
      "r341",
      "r394"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash restricted as to withdrawal or usage. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits.",
        "label": "Restricted Cash",
        "terseLabel": "Restricted cash"
       }
      }
     },
     "localname": "RestrictedCash",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureBasisOfPresentationAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RestrictedStockUnitsRSUMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Share instrument which is convertible to stock or an equivalent amount of cash, after a specified period of time or when specified performance conditions are met.",
        "label": "Restricted Stock Units R S U [Member]",
        "terseLabel": "Restricted Shares Units [Member]"
       }
      }
     },
     "localname": "RestrictedStockUnitsRSUMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlansSummaryOfShareBasedCompensationActivityDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "auth_ref": [
      "r15",
      "r184",
      "r395"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10140.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings Accumulated Deficit",
        "terseLabel": "Accumulated deficit"
       }
      }
     },
     "localname": "RetainedEarningsAccumulatedDeficit",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RetainedEarningsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings [Member]",
        "terseLabel": "Accumulated Deficit [Member]"
       }
      }
     },
     "localname": "RetainedEarningsMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetainedInterestFairValueDisclosure": {
     "auth_ref": [
      "r299"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value portion of interest continued to be held by a transferor after transferring financial assets to a third party.",
        "label": "Retained Interest Fair Value Disclosure",
        "terseLabel": "Fair value of certificates retained"
       }
      }
     },
     "localname": "RetainedInterestFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RevenuesNetOfInterestExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited": {
       "order": 10050.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of revenue recognized from goods sold, services rendered, insurance premiums, or other activities that constitute an earning process. Includes, but is not limited to, investment and interest income after deduction of interest expense when recognized as a component of revenue, and sales and trading gain (loss).",
        "label": "Revenues Net Of Interest Expense",
        "totalLabel": "Net investment income"
       }
      }
     },
     "localname": "RevenuesNetOfInterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RisksAndUncertaintiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Risks And Uncertainties [Abstract]"
       }
      }
     },
     "localname": "RisksAndUncertaintiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RisksInherentInServicingAssetsAndServicingLiabilitiesTypeDomain": {
     "auth_ref": [
      "r316"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The nature of risks inherent in servicing assets and servicing liabilities.",
        "label": "Risks Inherent In Servicing Assets And Servicing Liabilities Type [Domain]",
        "terseLabel": "Risks Inherent in Servicing Assets and Servicing Liabilities, Type"
       }
      }
     },
     "localname": "RisksInherentInServicingAssetsAndServicingLiabilitiesTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SaleOfStockNameOfTransactionDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Sale of the entity's stock, including, but not limited to, initial public offering (IPO) and private placement.",
        "label": "Sale Of Stock Name Of Transaction [Domain]",
        "terseLabel": "Sale of Stock"
       }
      }
     },
     "localname": "SaleOfStockNameOfTransactionDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SaleOfStockTransactionDate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Date the subsidiary or equity investee issued or sold stock, in CCYY-MM-DD format.",
        "label": "Sale Of Stock Transaction Date",
        "terseLabel": "Sale of Stock, Transaction Date"
       }
      }
     },
     "localname": "SaleOfStockTransactionDate",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestParentheticalDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "us-gaap_ScenarioUnspecifiedDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Any scenario, that is, the particular reporting scenario is left unspecified. Scenarios distinguish among different kinds of business reporting facts, as for example actual versus budgeted figures.",
        "label": "Scenario Unspecified [Domain]",
        "terseLabel": "Scenario, Unspecified"
       }
      }
     },
     "localname": "ScenarioUnspecifiedDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable": {
     "auth_ref": [
      "r128"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule for securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented, by Antidilutive Securities.",
        "label": "Schedule Of Antidilutive Securities Excluded From Computation Of Earnings Per Share [Table]",
        "terseLabel": "Schedule Of Antidilutive Securities Excluded From Computation Of Earnings Per Share [Table]"
       }
      }
     },
     "localname": "ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfPotentiallyDilutiveSharesExcludedFromComputationOfDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock": {
     "auth_ref": [
      "r128"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented, by antidilutive securities.",
        "label": "Schedule Of Antidilutive Securities Excluded From Computation Of Earnings Per Share [Text Block]",
        "terseLabel": "Summary of Potentially Dilutive Shares Excluded from Computation of Diluted Earnings Per Share"
       }
      }
     },
     "localname": "ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable": {
     "auth_ref": [
      "r107"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule, as of the most recent balance sheet date, of securities or other assets sold under repurchase agreements when this amount exceeds 10 percent of total assets. Disclosure may include the following: the type of securities or assets sold under agreements to repurchase, the carrying amount, market value (including accrued interest plus any cash or other assets on deposit. The information is segregated into securities maturing (1) overnight; (2) term up to 30 days; (3) term of 30 to 90 days; (4) term over 90 days; (5) demand.",
        "label": "Schedule Of Assets Sold Under Agreements To Repurchase [Table]",
        "terseLabel": "Schedule Of Assets Sold Under Agreements To Repurchase [Table]"
       }
      }
     },
     "localname": "ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfAssetsSoldUnderAgreementsToRepurchaseByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfMaturitiesOfOutstandingAssetsSoldUnderAgreementsToRepurchaseByFacilityMaturityDateDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfCapitalizationEquityLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Schedule Of Capitalization Equity [Line Items]",
        "terseLabel": "Schedule Of Capitalization Equity [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfCapitalizationEquityLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfCapitalizationEquityTable": {
     "auth_ref": [
      "r133"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Summarization of information required and determined to be disclosed concerning the equity component of the capitalization of the entity. The table may be detailed by subsidiary (legal entity) (if applicable) and include information by component of equity as may be included in the Statement of Changes in Shareholders' Equity.",
        "label": "Schedule Of Capitalization Equity [Table]",
        "terseLabel": "Schedule Of Capitalization Equity [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfCapitalizationEquityTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfCarryingValuesAndEstimatedFairValuesOfDebtInstrumentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of information pertaining to carrying amount and estimated fair value of short-term and long-term debt instruments or arrangements, including but not limited to, identification of terms, features, and collateral requirements.",
        "label": "Schedule Of Carrying Values And Estimated Fair Values Of Debt Instruments Table [Text Block]",
        "terseLabel": "Fair Values of Other Borrowings"
       }
      }
     },
     "localname": "ScheduleOfCarryingValuesAndEstimatedFairValuesOfDebtInstrumentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfCashFlowSupplementalDisclosuresTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of supplemental cash flow information for the periods presented.",
        "label": "Schedule Of Cash Flow Supplemental Disclosures Table [Text Block]",
        "terseLabel": "Summary of Supplemental Cash Flow Information"
       }
      }
     },
     "localname": "ScheduleOfCashFlowSupplementalDisclosuresTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsForMortgageCompaniesTable": {
     "auth_ref": [
      "r425",
      "r428"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A table disclosing the entity's required and actual net worth amounts as of the balance sheet date, by secondary market investor.",
        "label": "Schedule Of Compliance With Regulatory Capital Requirements For Mortgage Companies [Table]",
        "terseLabel": "Schedule Of Compliance With Regulatory Capital Requirements For Mortgage Companies [Table]"
       }
      }
     },
     "localname": "ScheduleOfComplianceWithRegulatoryCapitalRequirementsForMortgageCompaniesTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock": {
     "auth_ref": [
      "r380",
      "r381",
      "r382",
      "r383"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the capital amounts and ratios as of the balance sheet date, indicating whether the entity or entities are in compliance with regulatory capital requirements, by entity.",
        "label": "Schedule Of Compliance With Regulatory Capital Requirements Under Banking Regulations [Text Block]",
        "terseLabel": "Summary of Capital and Liquidity Amounts and Requirements by Agencies"
       }
      }
     },
     "localname": "ScheduleOfComplianceWithRegulatoryCapitalRequirementsUnderBankingRegulationsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock": {
     "auth_ref": [
      "r231",
      "r237",
      "r240"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the location and amount of derivative instruments and nonderivative instruments designated as hedging instruments reported before netting adjustments, and the amount of gain (loss) on derivative instruments and nonderivative instruments designated and qualified as hedging instruments.",
        "label": "Schedule Of Derivative Instruments Gain Loss In Statement Of Financial Performance [Text Block]",
        "terseLabel": "Net Gains (Losses) Recognized on Derivative Financial Instruments"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsTextBlock": {
     "auth_ref": [
      "r110",
      "r224",
      "r226",
      "r227",
      "r228",
      "r229",
      "r236",
      "r237",
      "r247",
      "r249"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of pertinent information about a derivative or group of derivatives on a disaggregated basis, such as for individual instruments, or small groups of similar instruments. May include a combination of the type of instrument, risks being hedged, notional amount, hedge designation, related hedged item, inception date, maturity date, or other relevant item.",
        "label": "Schedule Of Derivative Instruments [Text Block]",
        "terseLabel": "Derivative Assets and Derivative Liabilities and Related Margin Deposits Recorded in Other Assets"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "auth_ref": [
      "r129"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations.",
        "label": "Schedule Of Earnings Per Share Basic And Diluted Table [Text Block]",
        "terseLabel": "Summary of Basic and Diluted Earnings per Share"
       }
      }
     },
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable": {
     "auth_ref": [
      "r146"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule detailing credit quality information related to financing receivables by credit quality indicator and by class of financing receivable.",
        "label": "Schedule Of Financing Receivable Recorded Investment Credit Quality Indicator [Table]",
        "terseLabel": "Schedule Of Financing Receivable Recorded Investment Credit Quality Indicator [Table]"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Schedule Of Gain Loss On Investments Including Marketable Securities And Investments Held At Cost Income Statement Reported Amounts Summary [Line Items]",
        "terseLabel": "Schedule Of Gain Loss On Investments Including Marketable Securities And Investments Held At Cost Income Statement Reported Amounts Summary [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfGainLossOnInvestmentsTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about realized and unrealized gain (loss) on investment in security.",
        "label": "Schedule Of Gain Loss On Investments [Table]",
        "terseLabel": "Schedule Of Gain Loss On Investments [Table]"
       }
      }
     },
     "localname": "ScheduleOfGainLossOnInvestmentsTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainOnLoansAcquiredForSaleSummaryOfNetGainOnMortgageLoansAcquiredForSaleDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfInvestmentIncomeReportedAmountsByCategoryLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Schedule Of Investment Income Reported Amounts By Category [Line Items]",
        "terseLabel": "Schedule Of Investment Income Reported Amounts By Category [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfInvestmentIncomeReportedAmountsByCategoryLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfInvestmentIncomeReportedAmountsByCategoryTable": {
     "auth_ref": [
      "r61",
      "r63",
      "r64",
      "r407"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about investment income, including, but not limited to, interest and dividend income and amortization of discount (premium) derived from debt and equity securities. Excludes realized and unrealized gain (loss) on investments.",
        "label": "Schedule Of Investment Income Reported Amounts By Category [Table]",
        "terseLabel": "Schedule Of Investment Income Reported Amounts By Category [Table]"
       }
      }
     },
     "localname": "ScheduleOfInvestmentIncomeReportedAmountsByCategoryTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock": {
     "auth_ref": [
      "r225"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the notional amounts of outstanding derivative positions.",
        "label": "Schedule Of Notional Amounts Of Outstanding Derivative Positions Table [Text Block]",
        "terseLabel": "Summary of Activity in Notional Amount for Derivative Contracts"
       }
      }
     },
     "localname": "ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfOtherOperatingCostAndExpenseByComponentTextBlock": {
     "auth_ref": [
      "r60"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of each detailed component of other operating costs and expenses that are applicable to sales and revenues, but not included in the cost of sales in the income statement.",
        "label": "Schedule Of Other Operating Cost And Expense By Component [Text Block]",
        "terseLabel": "Summary of Other Expenses"
       }
      }
     },
     "localname": "ScheduleOfOtherOperatingCostAndExpenseByComponentTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOtherExpensesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable": {
     "auth_ref": [
      "r97",
      "r289",
      "r291",
      "r292",
      "r293",
      "r294"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of quantitative and qualitative information pertaining to related party transactions. Examples of related party transactions include transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners; and (d) affiliates.",
        "label": "Schedule Of Related Party Transactions By Related Party [Table]",
        "terseLabel": "Schedule Of Related Party Transactions By Related Party [Table]"
       }
      }
     },
     "localname": "ScheduleOfRelatedPartyTransactionsByRelatedPartyTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesNotePayableToPLSAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfAmountsReceivableFromAndPayableToPFSIDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfBaseManagementAndPerformanceIncentiveFeesPayableDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfCorrespondentProductionActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfExpensesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfFinancingActivitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfInvestingActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesSummaryOfLoanServicingFeesEarnedAndMortgageServicingRightsRecapturedIncomeEarnedDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfRelatedPartyTransactionsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of related party transactions. Examples of related party transactions include, but are not limited to, transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners and (d) affiliates.",
        "label": "Schedule Of Related Party Transactions Table [Text Block]",
        "terseLabel": "Summary of Amounts Receivable From and Payable to PFSI"
       }
      }
     },
     "localname": "ScheduleOfRelatedPartyTransactionsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfRepurchaseAgreements": {
     "auth_ref": [
      "r109"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for repurchase agreements.",
        "label": "Schedule Of Repurchase Agreements",
        "terseLabel": "Summary of Maturities of Outstanding Assets Sold under Agreements to Repurchase by Facility Maturity Date"
       }
      }
     },
     "localname": "ScheduleOfRepurchaseAgreements",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable": {
     "auth_ref": [
      "r136",
      "r139",
      "r140",
      "r141",
      "r155"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A table disclosing the profit or loss and total assets for each reportable segment of the entity. An entity discloses certain information on each reportable segment if the amounts (a) are included in the measure of segment profit or loss reviewed by the chief operating decision maker or (b) are otherwise regularly provided to the chief operating decision maker, even if not included in that measure of segment profit or loss.",
        "label": "Schedule Of Segment Reporting Information By Segment [Table]",
        "terseLabel": "Schedule Of Segment Reporting Information By Segment [Table]"
       }
      }
     },
     "localname": "ScheduleOfSegmentReportingInformationBySegmentTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock": {
     "auth_ref": [
      "r136",
      "r139",
      "r140",
      "r141",
      "r155"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the profit or loss and total assets for each reportable segment. An entity discloses certain information on each reportable segment if the amounts (a) are included in the measure of segment profit or loss reviewed by the chief operating decision maker or (b) are otherwise regularly provided to the chief operating decision maker, even if not included in that measure of segment profit or loss.",
        "label": "Schedule Of Segment Reporting Information By Segment [Text Block]",
        "terseLabel": "Financial Highlights by Operating Segment"
       }
      }
     },
     "localname": "ScheduleOfSegmentReportingInformationBySegmentTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfServicingAssetsAtFairValueTextBlock": {
     "auth_ref": [
      "r319"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the activity in the balance of servicing assets (including a description of where changes in fair value are reported in the statement of income for each period for which results of operations are presented), including but not limited to, the following: beginning and ending balances, additions (for instance, through purchases of servicing assets), disposals, changes in fair value during the period resulting from changes in inputs or assumptions used in the valuation model, other changes in fair value along with a description of those changes, and other changes that affect the balance along with a description of those changes.",
        "label": "Schedule Of Servicing Assets At Fair Value [Text Block]",
        "terseLabel": "Summary of MSRs Carried at Fair Value"
       }
      }
     },
     "localname": "ScheduleOfServicingAssetsAtFairValueTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationActivityTableTextBlock": {
     "auth_ref": [
      "r200",
      "r203",
      "r204"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure for share-based compensation plans. Includes, but is not limited to, outstanding awards at beginning and end of year, grants, exercises, forfeitures, and weighted-average grant date fair value.",
        "label": "Schedule Of Share Based Compensation Activity Table [Text Block]",
        "terseLabel": "Summary of Share-Based Compensation Activity"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "auth_ref": [
      "r197",
      "r205"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Components of an equity-based arrangement under which compensation is awarded to employees, typically comprised of compensation expense; changes in the quantity and fair value of the shares (or other type of equity) granted, exercised, forfeited, and issued and outstanding pertaining to that plan; and cash flow effects resulting from the equity-based payment arrangement. Component disclosures are by type of award and plan name.",
        "label": "Schedule Of Share Based Compensation Arrangements By Share Based Payment Award [Table]",
        "terseLabel": "Schedule Of Share Based Compensation Arrangements By Share Based Payment Award [Table]"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlansSummaryOfShareBasedCompensationActivityDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfShortTermDebtTable": {
     "auth_ref": [
      "r22"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A table or schedule providing information pertaining to borrowings under which repayment was required in less than twelve months (or normal operating cycle, if longer) after its issuance. It may include: (1) description of the short-term debt arrangement; (2) identification of the lender or type of lender; (3) repayment terms; (4) weighted average interest rate; (5) carrying amount of funds borrowed under the specified short-term debt arrangement as of the balance sheet date and measures of the maximum and average amount outstanding during the period; (6) description of the refinancing of a short-term obligation when that obligation is excluded from current liabilities in the balance sheet; and (7) amount of a short-term obligation that has been excluded from current liabilities in the balance sheet because of a refinancing of the obligation.",
        "label": "Schedule Of Short Term Debt [Table]",
        "terseLabel": "Schedule Of Short Term Debt [Table]"
       }
      }
     },
     "localname": "ScheduleOfShortTermDebtTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfStockByClassTable": {
     "auth_ref": [
      "r31",
      "r100",
      "r170",
      "r172",
      "r173",
      "r176",
      "r177",
      "r179",
      "r181",
      "r182",
      "r183",
      "r184"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule detailing information related to equity by class of stock. Class of stock includes common, convertible, and preferred stocks which are not redeemable or redeemable solely at the option of the issuer. It also includes preferred stock with redemption features that are solely within the control of the issuer and mandatorily redeemable stock if redemption is required to occur only upon liquidation or termination of the reporting entity.",
        "label": "Schedule Of Stock By Class [Table]",
        "terseLabel": "Schedule Of Stock By Class [Table]"
       }
      }
     },
     "localname": "ScheduleOfStockByClassTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfActivitiesUnderATMEquityOfferingProgramDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfUnderwrittenOfferingsOfCommonSharesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfStockByClassTextBlock": {
     "auth_ref": [
      "r11",
      "r12",
      "r13",
      "r95",
      "r171",
      "r172",
      "r173",
      "r176",
      "r177",
      "r179",
      "r181",
      "r182",
      "r183",
      "r184"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of an entity's stock, including par or stated value per share, number and dollar amount of share subscriptions, shares authorized, shares issued, shares outstanding, number and dollar amount of shares held in an employee trust, dividend per share, total dividends, share conversion features, par value plus additional paid in capital, the value of treasury stock and other information necessary to a fair presentation, and EPS information.  Stock by class includes common, convertible, and preferred stocks which are not redeemable or redeemable solely at the option of the issuer. Includes preferred stock with redemption features that are solely within the control of the issuer and mandatorily redeemable stock if redemption is required to occur only upon liquidation or termination of the reporting entity. If more than one issue is outstanding, state the title of each issue and the corresponding dollar amount; dollar amount of any shares subscribed but unissued and the deduction of subscriptions receivable there from; number of shares authorized, issued, and outstanding.",
        "label": "Schedule Of Stock By Class [Text Block]",
        "terseLabel": "Schedule of Preferred Shares of Beneficial Interest"
       }
      }
     },
     "localname": "ScheduleOfStockByClassTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfVariableInterestEntitiesTable": {
     "auth_ref": [
      "r215",
      "r216",
      "r217",
      "r218",
      "r221"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of qualitative and quantitative information related to variable interests the entity holds, whether or not such variable interest entity (VIE) is included in the reporting entity's consolidated financial statements. Includes, but is not limited to, description of the significant judgments and assumptions made in determining whether a variable interest (as defined) held by the entity requires the variable interest entity (VIE) (as defined) to be consolidated and (or) disclose information about its involvement with the VIE, individually or in aggregate (as applicable); the nature of restrictions, if any, on the consolidated VIE's assets and on the settlement of its liabilities reported by an entity in its statement of financial position, including the carrying amounts of such assets and liabilities; the nature of, and changes in, the risks associated with involvement in the VIE; how involvement with the VIE affects the entity's financial position, financial performance, and cash flows; the lack of recourse if creditors (or beneficial interest holders) of the consolidated VIE have no recourse to the general credit of the primary beneficiary (if applicable); the terms of arrangements, giving consideration to both explicit arrangements and implicit variable interests, if any, that could require the entity to provide financial support to the VIE, including events or circumstances that could expose the entity to a loss; the methodology used by the entity for determining whether or not it is the primary beneficiary of the variable interest entity; the significant factors considered and judgments made in determining that the power to direct the activities of a VIE that most significantly impact the VIE's economic performance are shared (as defined); the carrying amounts and classification of assets and liabilities of the VIE included in the statement of financial position; the entity's maximum exposure to loss, if any, as a result of its involvement with the VIE, including how the maximum exposure is determined and significant sources of the entity's exposure to the VIE; a tabular comparison of the carrying amounts of the assets and liabilities and the entity's maximum exposure to loss; information about any liquidity arrangements, guarantees, and (or) other commitments by third parties that may affect the fair value or risk of the entity's variable interest in the VIE; whether or not the entity has provided financial support or other support (explicitly or implicitly) to the VIE that it was not previously contractually required to provide or whether the entity intends to provide that support, including the type and amount of the support and the primary reasons for providing the support; and supplemental information the entity determines necessary to provide.",
        "label": "Schedule Of Variable Interest Entities [Table]",
        "terseLabel": "Schedule Of Variable Interest Entities [Table]"
       }
      }
     },
     "localname": "ScheduleOfVariableInterestEntitiesTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchase": {
     "auth_ref": [
      "r35",
      "r38",
      "r43",
      "r104",
      "r356"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after the effects of master netting arrangements, of funds outstanding borrowed in the form of a security repurchase agreement between the entity and another party for the sale and repurchase of identical or substantially the same securities at a date certain for a specified price. Includes liabilities not subject to a master netting arrangement and not elected to be offset.",
        "label": "Securities Sold Under Agreements To Repurchase",
        "terseLabel": "Maturity of repurchase agreements"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchase",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfMaturitiesOfOutstandingAssetsSoldUnderAgreementsToRepurchaseByFacilityMaturityDateDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseMember": {
     "auth_ref": [
      "r268"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The securities that an institution sells and agrees to repurchase (the identical or substantially the same securities) as a seller-borrower at a specified date for a specified price, also known as a repurchase agreement, or repo. Most repos involve obligations of the federal government or its agencies, but other financial instruments, such as commercial paper, banker's acceptances, and negotiable certificates of deposit, are sometimes used in repos.",
        "label": "Securities Sold Under Agreements To Repurchase [Member]",
        "terseLabel": "Security Sold Under Agreements to Repurchase [Member]"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SegmentDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Components of an entity that engage in business activities from which they may earn revenue and incur expenses, including transactions with other components of the same entity.",
        "label": "Segment [Domain]",
        "terseLabel": "Segments"
       }
      }
     },
     "localname": "SegmentDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SegmentReportingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Segment Reporting [Abstract]"
       }
      }
     },
     "localname": "SegmentReportingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentReportingDisclosureTextBlock": {
     "auth_ref": [
      "r143"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for reporting segments including data and tables. Reportable segments include those that meet any of the following quantitative thresholds a) it's reported revenue, including sales to external customers and intersegment sales or transfers is 10 percent or more of the combined revenue, internal and external, of all operating segments b) the absolute amount of its reported profit or loss is 10 percent or more of the greater, in absolute amount of 1) the combined reported profit of all operating segments that did not report a loss or 2) the combined reported loss of all operating segments that did report a loss c) its assets are 10 percent or more of the combined assets of all operating segments.",
        "label": "Segment Reporting Disclosure [Text Block]",
        "terseLabel": "Segments"
       }
      }
     },
     "localname": "SegmentReportingDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegments"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SegmentReportingInformationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Segment Reporting Information [Line Items]",
        "terseLabel": "Segment Reporting Information [Line Items]"
       }
      }
     },
     "localname": "SegmentReportingInformationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentReportingPolicyPolicyTextBlock": {
     "auth_ref": [
      "r93"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of accounting policy for segment reporting.",
        "label": "Segment Reporting Policy Policy [Text Block]",
        "terseLabel": "Segment Reporting"
       }
      }
     },
     "localname": "SegmentReportingPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureOrganizationAndBasisOfPresentationPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SeniorLongTermNotes": {
     "auth_ref": [
      "r29"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of Notes with the highest claim on the assets of the issuer in case of bankruptcy or liquidation (with maturities initially due after one year or beyond the operating cycle if longer), excluding current portion. Senior note holders are paid off in full before any payments are made to junior note holders.",
        "label": "Senior Long Term Notes",
        "terseLabel": "Issuance of debt through private offering"
       }
      }
     },
     "localname": "SeniorLongTermNotes",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SeriesAPreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Outstanding nonredeemable series A preferred stock or outstanding series A preferred stock. Classified within stockholders' equity if nonredeemable or redeemable solely at the option of the issuer. Classified within temporary equity if redemption is outside the control of the issuer.",
        "label": "Series A Preferred Stock [Member]",
        "terseLabel": "8.125% Series A Preferred Stock [Member]"
       }
      }
     },
     "localname": "SeriesAPreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SeriesBPreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Outstanding nonredeemable series B preferred stock or outstanding series B preferred stock. Classified within stockholders' equity if nonredeemable or redeemable solely at the option of the issuer. Classified within temporary equity if redemption is outside the control of the issuer.",
        "label": "Series B Preferred Stock [Member]",
        "terseLabel": "8.00% Series B Preferred Stock [Member]"
       }
      }
     },
     "localname": "SeriesBPreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ServicingAsset": {
     "auth_ref": [
      "r315"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10380.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate amount of servicing assets that are subsequently measured at fair value and servicing assets that are subsequently measured using the amortization method.",
        "label": "Servicing Asset",
        "terseLabel": "Mortgage servicing rights at fair value (includes $1,105,099 and $1,139,582 pledged to creditors, respectively)"
       }
      }
     },
     "localname": "ServicingAsset",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ServicingAssetAtFairValueAmount": {
     "auth_ref": [
      "r315",
      "r320"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": 10130.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfMsrsCarriedAtFairValueDetail": {
       "order": 10030.0,
       "parentTag": "pmt_ServicingAssetAtFairValueAfterReclassificationAdjustedAmount",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Servicing Asset At Fair Value Amount",
        "periodEndLabel": "Balance at end of period",
        "periodStartLabel": "Balance at beginning of period",
        "terseLabel": "Mortgage servicing rights at fair value",
        "verboseLabel": "Balance at end of period"
       }
      }
     },
     "localname": "ServicingAssetAtFairValueAmount",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfMsrsCarriedAtFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ServicingAssetAtFairValueChangesInFairValueResultingFromChangesInValuationInputsOrChangesInAssumptions": {
     "auth_ref": [
      "r321"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfMsrsCarriedAtFairValueDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_ServicingAssetAtFairValuePeriodIncreaseDecrease",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in fair value from changes in the inputs, assumptions, or model used to calculate the fair value of the contract to service financial assets under which the benefits of servicing are expected to more than adequately compensate the servicer.",
        "label": "Servicing Asset At Fair Value Changes In Fair Value Resulting From Changes In Valuation Inputs Or Changes In Assumptions",
        "terseLabel": "Due to changes in valuation inputs used in valuation model",
        "verboseLabel": "Market changes"
       }
      }
     },
     "localname": "ServicingAssetAtFairValueChangesInFairValueResultingFromChangesInValuationInputsOrChangesInAssumptions",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfMsrsCarriedAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ServicingAssetAtFairValueOtherChangesInFairValue": {
     "auth_ref": [
      "r322"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfMsrsCarriedAtFairValueDetail": {
       "order": 10020.0,
       "parentTag": "us-gaap_ServicingAssetAtFairValuePeriodIncreaseDecrease",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) from changes in fair value classified as other for a contract to service financial assets under which the benefits of servicing are expected to more than adequately compensate the servicer.",
        "label": "Servicing Asset At Fair Value Other Changes In Fair Value",
        "terseLabel": "Other changes in fair value",
        "verboseLabel": "Realization of cashflows"
       }
      }
     },
     "localname": "ServicingAssetAtFairValueOtherChangesInFairValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfMsrsCarriedAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ServicingAssetAtFairValuePeriodIncreaseDecrease": {
     "auth_ref": [
      "r319"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfMsrsCarriedAtFairValueDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_MortgageServicingRightsMSRImpairmentRecovery",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The increase (decrease) in the fair value of servicing assets that are subsequently measured at fair value.",
        "label": "Servicing Asset At Fair Value Period Increase Decrease",
        "totalLabel": "Change in fair value, Total"
       }
      }
     },
     "localname": "ServicingAssetAtFairValuePeriodIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsSummaryOfMsrsCarriedAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetLoanServicingFeesSummaryOfNetLoanServicingFeesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValueDiscountRate": {
     "auth_ref": [
      "r318"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Discount rate used to estimate the fair value of servicing assets and servicing liabilities.",
        "label": "Servicing Assets And Servicing Liabilities At Fair Value Assumptions Used To Estimate Fair Value Discount Rate",
        "terseLabel": "Pricing spread"
       }
      }
     },
     "localname": "ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValueDiscountRate",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValuePrepaymentSpeed": {
     "auth_ref": [
      "r318"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Estimated rate of prepayments of principal on servicing assets and servicing liabilities.",
        "label": "Servicing Assets And Servicing Liabilities At Fair Value Assumptions Used To Estimate Fair Value Prepayment Speed",
        "terseLabel": "Annual total prepayment speed"
       }
      }
     },
     "localname": "ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValuePrepaymentSpeed",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValueWeightedAverageLife1": {
     "auth_ref": [
      "r318"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Servicing Assets And Servicing Liabilities At Fair Value Assumptions Used To Estimate Fair Value Weighted Average Life1",
        "terseLabel": "Life (in years)"
       }
      }
     },
     "localname": "ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValueWeightedAverageLife1",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfKeyInputsUsedInDeterminingFairValueOfESSDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ShareBasedCompensation": {
     "auth_ref": [
      "r82"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited": {
       "order": 10420.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The aggregate amount of noncash, equity-based employee remuneration. This may include the value of stock or unit options, amortization of restricted stock or units, and adjustment for officers' compensation. As noncash, this element is an add back when calculating net cash generated by operating activities using the indirect method.",
        "label": "Share Based Compensation",
        "terseLabel": "Share-based compensation expense",
        "verboseLabel": "Compensation expense relating to share-based grants"
       }
      }
     },
     "localname": "ShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlansSummaryOfShareBasedCompensationActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "auth_ref": [
      "r199"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Forfeited In Period",
        "terseLabel": "Forfeitures of grants during the quarters"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlansAdditionalInformationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "auth_ref": [
      "r201"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of grants made during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Grants In Period",
        "terseLabel": "Total share units granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlansSummaryOfShareBasedCompensationActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod": {
     "auth_ref": [
      "r202"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Vested In Period",
        "terseLabel": "Total share units vested"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlansSummaryOfShareBasedCompensationActivityDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award [Line Items]",
        "terseLabel": "Share Based Compensation Arrangement By Share Based Payment Award [Line Items]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlansSummaryOfShareBasedCompensationActivityDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "auth_ref": [
      "r196",
      "r198"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Equity-based compensation award.",
        "label": "Share Based Compensation Arrangements By Share Based Payment Award Award Type And Plan Name [Domain]",
        "terseLabel": "Equity Award"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfPotentiallyDilutiveSharesExcludedFromComputationOfDilutedEarningsPerShareDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareBasedCompensationPlansSummaryOfShareBasedCompensationActivityDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SharePrice": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Price of a single share of a number of saleable stocks of a company.",
        "label": "Share Price",
        "terseLabel": "Average price per share",
        "verboseLabel": "Average price per share"
       }
      }
     },
     "localname": "SharePrice",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfActivitiesUnderATMEquityOfferingProgramDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfUnderwrittenOfferingsOfCommonSharesDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_SharesIssued": {
     "auth_ref": [
      "r175"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of shares of stock issued as of the balance sheet date, including shares that had been issued and were previously outstanding but which are now held in the treasury.",
        "label": "Shares Issued",
        "periodEndLabel": "Balance, Shares",
        "periodStartLabel": "Balance, Shares"
       }
      }
     },
     "localname": "SharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShortTermDebtLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Short Term Debt [Line Items]",
        "terseLabel": "Short-term Debt [Line Items]"
       }
      }
     },
     "localname": "ShortTermDebtLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShortTermDebtTypeAxis": {
     "auth_ref": [
      "r22"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of short-term debt arrangement.",
        "label": "Short Term Debt Type [Axis]",
        "terseLabel": "Short-term Debt, Type"
       }
      }
     },
     "localname": "ShortTermDebtTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShortTermDebtTypeDomain": {
     "auth_ref": [
      "r21"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Type of short-term debt arrangement, such as notes, line of credit, commercial paper, asset-based financing, project financing, letter of credit financing.",
        "label": "Short Term Debt Type [Domain]",
        "terseLabel": "Short-term Debt, Type"
       }
      }
     },
     "localname": "ShortTermDebtTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseSummaryOfFinancialInformationRelatingToAssetsSoldUnderAgreementsToRepurchaseParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsParentheticalDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortTermInvestments": {
     "auth_ref": [
      "r6",
      "r351",
      "r352",
      "r353",
      "r386"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail": {
       "order": 10060.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10280.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of investments including trading securities, available-for-sale securities, held-to-maturity securities, and short-term investments classified as other and current.",
        "label": "Short Term Investments",
        "terseLabel": "Short-term investments at fair value"
       }
      }
     },
     "localname": "ShortTermInvestments",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShortTermInvestmentsMember": {
     "auth_ref": [
      "r351",
      "r352",
      "r386",
      "r411"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Investments which are not otherwise included in another category or item that the entity has the intent to sell or dispose of within one year from the date of the balance sheet.",
        "label": "Short Term Investments [Member]",
        "terseLabel": "Short-term investments at fair value [Member]"
       }
      }
     },
     "localname": "ShortTermInvestmentsMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_StatementBusinessSegmentsAxis": {
     "auth_ref": [
      "r0",
      "r139",
      "r155",
      "r159",
      "r160",
      "r161",
      "r410"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by business segments.",
        "label": "Statement Business Segments [Axis]",
        "terseLabel": "Segments"
       }
      }
     },
     "localname": "StatementBusinessSegmentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSegmentsFinancialHighlightsByOperatingSegmentParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementClassOfStockAxis": {
     "auth_ref": [
      "r11",
      "r12",
      "r13",
      "r175"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by the different classes of stock of the entity.",
        "label": "Statement Class Of Stock [Axis]",
        "terseLabel": "Class of Stock"
       }
      }
     },
     "localname": "StatementClassOfStockAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfPreferredSharesOfBeneficialInterestParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "auth_ref": [
      "r32",
      "r175"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by component of equity.",
        "label": "Statement Equity Components [Axis]",
        "terseLabel": "Equity Components"
       }
      }
     },
     "localname": "StatementEquityComponentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfActivitiesUnderATMEquityOfferingProgramDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnauditedParenthetical"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Statement [Line Items]",
        "terseLabel": "Statement [Line Items]"
       }
      }
     },
     "localname": "StatementLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseTables",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsTables",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsTables",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnauditedParenthetical",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Statement Of Cash Flows [Abstract]"
       }
      }
     },
     "localname": "StatementOfCashFlowsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Statement Of Financial Position [Abstract]"
       }
      }
     },
     "localname": "StatementOfFinancialPositionAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfPartnersCapitalAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Statement Of Partners Capital [Abstract]"
       }
      }
     },
     "localname": "StatementOfPartnersCapitalAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Statement Of Stockholders Equity [Abstract]"
       }
      }
     },
     "localname": "StatementOfStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementScenarioAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by scenario to be reported. Scenarios distinguish among different kinds of business reporting facts, as for example actual versus budgeted figures.",
        "label": "Statement Scenario [Axis]",
        "terseLabel": "Scenario"
       }
      }
     },
     "localname": "StatementScenarioAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule reflecting a Statement of Income, Statement of Cash Flows, Statement of Financial Position, Statement of Shareholders' Equity and Other Comprehensive Income, or other statement as needed.",
        "label": "Statement [Table]",
        "terseLabel": "Statement [Table]"
       }
      }
     },
     "localname": "StatementTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetsSoldUnderAgreementsToRepurchaseTables",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsTables",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageServicingRightsTables",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnauditedParenthetical",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnauditedParenthetical",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockCompensationPlanMember": {
     "auth_ref": [
      "r128"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Equity-based payment arrangement where one or more employees receive shares of stock (units), stock (unit) options, or other equity instruments, or the employer incurs a liability to the employee in amounts based on the price of the employer's stock (unit).",
        "label": "Stock Compensation Plan [Member]",
        "terseLabel": "Share-based Compensation Plan [Member]"
       }
      }
     },
     "localname": "StockCompensationPlanMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfPotentiallyDilutiveSharesExcludedFromComputationOfDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesNewIssues": {
     "auth_ref": [
      "r12",
      "r13",
      "r175",
      "r184"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of new stock issued during the period.",
        "label": "Stock Issued During Period Shares New Issues",
        "positiveLabel": "Number of common shares",
        "terseLabel": "Issuance of common shares, Shares",
        "verboseLabel": "Issuance of preferred shares, Shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesNewIssues",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfActivitiesUnderATMEquityOfferingProgramDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures": {
     "auth_ref": [
      "r12",
      "r13",
      "r175",
      "r184"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of shares issued during the period related to Restricted Stock Awards, net of any shares forfeited.",
        "label": "Stock Issued During Period Shares Restricted Stock Award Net Of Forfeitures",
        "terseLabel": "Share-based compensation, Shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueNewIssues": {
     "auth_ref": [
      "r12",
      "r13",
      "r175",
      "r184"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Equity impact of the value of new stock issued during the period. Includes shares issued in an initial public offering or a secondary public offering.",
        "label": "Stock Issued During Period Value New Issues",
        "terseLabel": "Issuance of common shares, Amount"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueNewIssues",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures": {
     "auth_ref": [
      "r175",
      "r184"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Value of stock related to Restricted Stock Awards issued during the period, net of the stock value of such awards forfeited.",
        "label": "Stock Issued During Period Value Restricted Stock Award Net Of Forfeitures",
        "terseLabel": "Share-based compensation, Amount"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockRepurchaseProgramAuthorizedAmount1": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of stock repurchase plan authorized.",
        "label": "Stock Repurchase Program Authorized Amount1",
        "terseLabel": "Common stock shares Repurchase authorized amount"
       }
      }
     },
     "localname": "StockRepurchaseProgramAuthorizedAmount1",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockRepurchasedAndRetiredDuringPeriodShares": {
     "auth_ref": [
      "r12",
      "r13",
      "r175",
      "r184"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of shares that have been repurchased and retired during the period.",
        "label": "Stock Repurchased And Retired During Period Shares",
        "negatedLabel": "Repurchase of common shares, Shares",
        "terseLabel": "Common shares repurchased"
       }
      }
     },
     "localname": "StockRepurchasedAndRetiredDuringPeriodShares",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfShareRepurchaseActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockRepurchasedAndRetiredDuringPeriodValue": {
     "auth_ref": [
      "r12",
      "r13",
      "r175",
      "r184"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Equity impact of the value of stock that has been repurchased and retired during the period. The excess of the purchase price over par value can be charged against retained earnings (once the excess is fully allocated to additional paid in capital).",
        "label": "Stock Repurchased And Retired During Period Value",
        "negatedLabel": "Repurchase of common shares, Amount",
        "terseLabel": "Cost of common shares repurchased"
       }
      }
     },
     "localname": "StockRepurchasedAndRetiredDuringPeriodValue",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfShareRepurchaseActivityDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquity": {
     "auth_ref": [
      "r13",
      "r16",
      "r17",
      "r147"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": 10100.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total of all stockholders' equity (deficit) items, net of receivables from officers, directors, owners, and affiliates of the entity which are attributable to the parent. The amount of the economic entity's stockholders' equity attributable to the parent excludes the amount of stockholders' equity which is allocable to that ownership interest in subsidiary equity which is not attributable to the parent (noncontrolling interest, minority interest). This excludes temporary equity and is sometimes called permanent equity.",
        "label": "Stockholders Equity",
        "periodEndLabel": "Balance, Amount",
        "periodStartLabel": "Balance, Amount",
        "totalLabel": "Total shareholders\u2019 equity"
       }
      }
     },
     "localname": "StockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Stockholders Equity [Abstract]",
        "terseLabel": "SHAREHOLDERS\u2019 EQUITY"
       }
      }
     },
     "localname": "StockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquityNoteDisclosureTextBlock": {
     "auth_ref": [
      "r187"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for shareholders' equity comprised of portions attributable to the parent entity and noncontrolling interest, including other comprehensive income. Includes, but is not limited to, balances of common stock, preferred stock, additional paid-in capital, other capital and retained earnings, accumulated balance for each classification of other comprehensive income and amount of comprehensive income.",
        "label": "Stockholders Equity Note Disclosure [Text Block]",
        "terseLabel": "Shareholders' Equity"
       }
      }
     },
     "localname": "StockholdersEquityNoteDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquity"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SubsequentEventLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Detail information of subsequent event by type. User is expected to use existing line items from elsewhere in the taxonomy as the primary line items for this disclosure, which is further associated with dimension and member elements pertaining to a subsequent event.",
        "label": "Subsequent Event [Line Items]",
        "terseLabel": "Subsequent Event [Line Items]"
       }
      }
     },
     "localname": "SubsequentEventLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Identifies event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event [Member]",
        "terseLabel": "Subsequent Event [Member]"
       }
      }
     },
     "localname": "SubsequentEventMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventTable": {
     "auth_ref": [
      "r297"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Discloses pertinent information about one or more significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued.",
        "label": "Subsequent Event [Table]",
        "terseLabel": "Subsequent Event [Table]"
       }
      }
     },
     "localname": "SubsequentEventTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventTypeAxis": {
     "auth_ref": [
      "r297"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event Type [Axis]",
        "terseLabel": "Subsequent Event Type"
       }
      }
     },
     "localname": "SubsequentEventTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventTypeDomain": {
     "auth_ref": [
      "r297"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event Type [Domain]",
        "terseLabel": "Subsequent Event Type"
       }
      }
     },
     "localname": "SubsequentEventTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Subsequent Events [Abstract]"
       }
      }
     },
     "localname": "SubsequentEventsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventsTextBlock": {
     "auth_ref": [
      "r298"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued. Examples include: the sale of a capital stock issue, purchase of a business, settlement of litigation, catastrophic loss, significant foreign exchange rate changes, loans to insiders or affiliates, and transactions not in the ordinary course of business.",
        "label": "Subsequent Events [Text Block]",
        "terseLabel": "Subsequent Events"
       }
      }
     },
     "localname": "SubsequentEventsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSubsequentEvents"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SubsidiarySaleOfStockAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of sale of the entity's stock.",
        "label": "Subsidiary Sale Of Stock [Axis]",
        "terseLabel": "Sale of Stock"
       }
      }
     },
     "localname": "SubsidiarySaleOfStockAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SupplementalCashFlowElementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Supplemental Cash Flow Elements [Abstract]"
       }
      }
     },
     "localname": "SupplementalCashFlowElementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Supplemental Cash Flow Information [Abstract]",
        "terseLabel": "Payments:"
       }
      }
     },
     "localname": "SupplementalCashFlowInformationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationSummaryOfSupplementalCashFlowInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TangibleCapital": {
     "auth_ref": [
      "r380",
      "r383"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tangible capital as defined in the regulations (generally includes outstanding stock plus retained earnings) for banking institutions subject to Office of Thrift Supervision (OTS) capital requirements.",
        "label": "Tangible Capital",
        "terseLabel": "Net Worth, Actual"
       }
      }
     },
     "localname": "TangibleCapital",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsSummaryOfCapitalAndLiquidityAmountsAndRequirementsByAgenciesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TangibleCapitalRequiredForCapitalAdequacy": {
     "auth_ref": [
      "r380",
      "r383"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The minimum amount of tangible capital required under the regulatory framework for prompt corrective action.",
        "label": "Tangible Capital Required For Capital Adequacy",
        "terseLabel": "Net Worth, Required"
       }
      }
     },
     "localname": "TangibleCapitalRequiredForCapitalAdequacy",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsSummaryOfCapitalAndLiquidityAmountsAndRequirementsByAgenciesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TangibleCapitalRequiredForCapitalAdequacyToTangibleAssets": {
     "auth_ref": [
      "r380",
      "r381",
      "r383"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The minimum amount of Tangible Capital divided by tangible assets (Tangible Capital Ratio) as defined in the regulations.",
        "label": "Tangible Capital Required For Capital Adequacy To Tangible Assets",
        "terseLabel": "Tangible Net Worth / Total Assets Ratio, Required"
       }
      }
     },
     "localname": "TangibleCapitalRequiredForCapitalAdequacyToTangibleAssets",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsSummaryOfCapitalAndLiquidityAmountsAndRequirementsByAgenciesDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_TangibleCapitalToTangibleAssets": {
     "auth_ref": [
      "r380",
      "r383"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tangible Capital divided by Tangible assets as defined in the regulations.",
        "label": "Tangible Capital To Tangible Assets",
        "terseLabel": "Tangible Net Worth / Total Assets Ratio, Actual"
       }
      }
     },
     "localname": "TangibleCapitalToTangibleAssets",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRegulatoryCapitalAndLiquidityRequirementsSummaryOfCapitalAndLiquidityAmountsAndRequirementsByAgenciesDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_TextBlockAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Text Block [Abstract]"
       }
      }
     },
     "localname": "TextBlockAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_TradingActivityByTypeAxis": {
     "auth_ref": [
      "r241"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of trading activity.",
        "label": "Trading Activity By Type [Axis]",
        "terseLabel": "Trading Activity"
       }
      }
     },
     "localname": "TradingActivityByTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TradingActivityByTypeDomain": {
     "auth_ref": [
      "r241"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Gains and losses on trading activities (including both derivative and nonderivative instruments) recognized in the statement of financial performance, separately by major types of items (such as fixed income/interest rates, foreign exchange, equity, commodity, and credit).",
        "label": "Trading Activity By Type [Domain]",
        "terseLabel": "Trading Activity, by Type"
       }
      }
     },
     "localname": "TradingActivityByTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TransferOfFinancialAssetsAccountedForAsSalesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Transfer Of Financial Assets Accounted For As Sales [Line Items]",
        "terseLabel": "Transfer Of Financial Assets Accounted For As Sales [Line Items]"
       }
      }
     },
     "localname": "TransferOfFinancialAssetsAccountedForAsSalesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TransferOfFinancialAssetsAccountedForAsSalesTable": {
     "auth_ref": [
      "r310"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about derecognized financial assets from transactions which comprise an initial transfer and an agreement entered into in contemplation of the initial transfer resulting in retention of substantially all of the exposure to the economic return throughout the term of the transaction.",
        "label": "Transfer Of Financial Assets Accounted For As Sales [Table]",
        "terseLabel": "Transfer Of Financial Assets Accounted For As Sales [Table]"
       }
      }
     },
     "localname": "TransferOfFinancialAssetsAccountedForAsSalesTable",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TransferOfOtherRealEstate": {
     "auth_ref": [
      "r88",
      "r89",
      "r90"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Value transferred out of real estate owned (REO) in noncash transactions.",
        "label": "Transfer Of Other Real Estate",
        "negatedLabel": "Transfer to real estate held for investment"
       }
      }
     },
     "localname": "TransferOfOtherRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TransferToOtherRealEstate": {
     "auth_ref": [
      "r88",
      "r89",
      "r90"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Value transferred from mortgage loans to real estate owned (REO) in noncash transactions.",
        "label": "Transfer To Other Real Estate",
        "negatedLabel": "Loans to REO",
        "positiveLabel": "Transfer of loans and advances to real estate acquired in settlement of loans",
        "terseLabel": "Transfers From loans at fair value and advances"
       }
      }
     },
     "localname": "TransferToOtherRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureRealEstateAcquiredInSettlementOfLoansSummaryOfFinancialInformationRelatingToREODetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureSupplementalCashFlowInformationSummaryOfSupplementalCashFlowInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TransfersAndServicingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Transfers And Servicing [Abstract]"
       }
      }
     },
     "localname": "TransfersAndServicingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialAssetsTextBlock": {
     "auth_ref": [
      "r325"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for a transferor's continuing involvement in financial assets that it has transferred in a securitization or asset-backed financing arrangement, the nature of any restrictions on assets reported by an entity in its statement of financial position that relate to a transferred financial asset (including the carrying amounts of such assets), how servicing assets and servicing liabilities are reported, and (for securitization or asset-backed financing arrangements accounted for as sales) when a transferor has continuing involvement with the transferred financial assets and transfers of financial assets accounted for as secured borrowings, how the transfer of financial assets affects an entity's financial position, financial performance, and cash flows.",
        "label": "Transfers And Servicing Of Financial Assets [Text Block]",
        "terseLabel": "Asset-Backed Financing of a Variable Interest Entity at Fair Value"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialAssetsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValue"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "auth_ref": [
      "r323"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Instrument or contract that imposes a contractual obligation to deliver cash or another financial instrument or to exchange other financial instruments on potentially unfavorable terms and conveys a contractual right to receive cash or another financial instrument or to exchange other financial instruments on potentially favorable terms.",
        "label": "Transfers And Servicing Of Financial Instruments Types Of Financial Instruments [Domain]",
        "terseLabel": "Financial Instruments"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsDerivativeAssetsAndDerivativeLiabilitiesAndRelatedMarginDepositsRecordedInOtherAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsScheduleOfOffsettingOfDerivativeLiabilitiesAndFinancialLiabilitiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfActivityInNotionalAmountForDerivativeContractsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeAssetsFinancialInstrumentsAndCollateralHeldByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfDerivativeLiabilitiesFinancialLiabilitiesAndCollateralPledgedByCounterpartyDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsSummaryOfNetDerivativeAssetsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueFairValuesAndRelatedPrincipalAmountsDueUponMaturityOfLoansAccountedForUnderFairValueOptionDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueQuantitativeSummaryOfKeyAssumptionsUsedInValuationOfMsrsAsOfDatesPresentedAndEffectOnEstimatedFairValueFromAdverseChangesInThoseInputsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInFairValueIncludedInCurrentPeriodIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfFinancialStatementItemsMeasuredAtFairValueOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAcquiredForSaleAtFairValueSummaryOfDistributionOfCompanySLoansAcquiredForSaleAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoansAtFairValueSummaryOfDistributionOfCompanySLoansAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageBackedSecuritiesSummaryOfInvestmentInMortgageBackedSecuritiesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureTransactionsWithRelatedPartiesManagementFeesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TypeOfAdoptionMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Adoption and early adoption of sources of change to generally accepted accounting principles (GAAP) in the United States. The FASB released the FASB Accounting Standards Codification as the authoritative source of literature effective for interim and annual periods ending after September 15, 2009. As part of the Codification process, the FASB issues Accounting Standards Updates to amend the Codification but otherwise the Accounting Standards Updates are not authoritative in their own right. All previous accounting standards (such as FASB Statements of Financial Accounting Standards, FASB Interpretations, FASB Staff Positions, Emerging Issues Task Force Consensuses, other pronouncements of the FASB or other designated bodies, or other forms of GAAP are considered accounting pronouncements) were superseded upon the adoption of the Codification. For an interim period, references to the superseded standards are included to help users transition from the previous accounting hierarchy and will be removed from future versions of this taxonomy.",
        "label": "Type Of Adoption [Member]",
        "terseLabel": "Type of Adoption"
       }
      }
     },
     "localname": "TypeOfAdoptionMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureFairValueSummaryOfChangesInItemsMeasuredUsingLevel3InputsOnRecurringBasisDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfChangesInShareholdersEquityUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TypeOfArrangementAxis": {
     "auth_ref": [
      "r213"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by category of arrangement, including but not limited to collaborative arrangements and non-collaborative arrangements.",
        "label": "Type Of Arrangement [Axis]",
        "terseLabel": "Type of Arrangement and Non-arrangement Transactions"
       }
      }
     },
     "localname": "TypeOfArrangementAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfActivitiesUnderATMEquityOfferingProgramDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquitySummaryOfUnderwrittenOfferingsOfCommonSharesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_UnamortizedDebtIssuanceExpense": {
     "auth_ref": [
      "r20"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesSummaryOfFinancialInformationRelatingToExchangeableSeniorNotesDetail": {
       "order": 10360.0,
       "parentTag": "us-gaap_ConvertibleDebt",
       "weight": -1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail": {
       "order": 10660.0,
       "parentTag": "pmt_MortgageLoanParticipationPurchaseAndSaleAgreement",
       "weight": -1.0
      },
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail": {
       "order": 10600.0,
       "parentTag": "us-gaap_NotesPayable",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The remaining balance of debt issuance expenses that were capitalized and are being amortized against income over the lives of the respective bond issues. This does not include the amounts capitalized as part of the cost of the utility plant or asset.",
        "label": "Unamortized Debt Issuance Expense",
        "negatedLabel": "Unamortized debt issuance costs"
       }
      }
     },
     "localname": "UnamortizedDebtIssuanceExpense",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesSummaryOfFinancialInformationRelatingToExchangeableSeniorNotesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureMortgageLoanParticipationPurchaseAndSaleAgreementsSummaryOfMortgageLoanParticipationPurchaseAndSaleAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableSummaryOfFinancialInformationRelatingToNotePayableDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_VariableAnnuityMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A contract that provides periodic payments, which vary according to the investment experience of the separate accounts in which the amounts paid to provide for the annuity are allocated.",
        "label": "Variable Annuity [Member]",
        "terseLabel": "Floating Rate [Member]"
       }
      }
     },
     "localname": "VariableAnnuityMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureShareholdersEquityAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_VariableInterestEntitiesByClassificationOfEntityAxis": {
     "auth_ref": [
      "r215",
      "r216",
      "r218"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by category of Variable Interest Entity (VIE).",
        "label": "Variable Interest Entities By Classification Of Entity [Axis]",
        "terseLabel": "Variable Interest Entities"
       }
      }
     },
     "localname": "VariableInterestEntitiesByClassificationOfEntityAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCashFlowsBetweenCompanyAndTransfereesInTransfersAccountedForSalesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCollectionStatusInformationForLoansAccountedForSalesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_VariableInterestEntityConsolidatedCarryingAmountAssets": {
     "auth_ref": [
      "r214"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The carrying amount of the consolidated Variable Interest Entity's assets included in the reporting entity's statement of financial position.",
        "label": "Variable Interest Entity Consolidated Carrying Amount Assets",
        "totalLabel": "Total assets of Consolidated Variable Interest Entity"
       }
      }
     },
     "localname": "VariableInterestEntityConsolidatedCarryingAmountAssets",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_VariableInterestEntityConsolidatedCarryingAmountLiabilities": {
     "auth_ref": [
      "r214"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The carrying amount of the consolidated Variable Interest Entity's liabilities included in the reporting entity's statement of financial position.",
        "label": "Variable Interest Entity Consolidated Carrying Amount Liabilities",
        "totalLabel": "Total liabilities of Consolidated Variable Interest Entity"
       }
      }
     },
     "localname": "VariableInterestEntityConsolidatedCarryingAmountLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_VariableInterestEntityDisclosureTextBlock": {
     "auth_ref": [
      "r222"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for a variable interest entity (VIE), including but not limited to, judgments and assumptions in determining whether to consolidate and in identifying the primary beneficiary, gain (loss) recognized on the initial consolidation of the VIE, terms of arrangements, amounts and classification of the VIE's assets and liabilities, and the entity's maximum exposure to loss.",
        "label": "Variable Interest Entity Disclosure [Text Block]",
        "terseLabel": "Loan Sales and Variable Interest Entities"
       }
      }
     },
     "localname": "VariableInterestEntityDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_VariableInterestEntityLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "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.",
        "label": "Variable Interest Entity [Line Items]",
        "terseLabel": "Variable Interest Entity [Line Items]"
       }
      }
     },
     "localname": "VariableInterestEntityLineItems",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_VariableInterestEntityNotPrimaryBeneficiaryAggregatedDisclosureMember": {
     "auth_ref": [
      "r219"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregated disclosures of similar Variable Interest Entities (VIE) which are not included in the consolidated financial statements of the entity because the entity does not have a controlling financial interest (not the primary beneficiary). Such disclosures may include how similar entities are aggregated, if separate reporting would not provide more useful information.",
        "label": "Variable Interest Entity Not Primary Beneficiary Aggregated Disclosure [Member]",
        "terseLabel": "Variable Interest Entity, Not Primary Beneficiary, Aggregated Disclosure [Member]"
       }
      }
     },
     "localname": "VariableInterestEntityNotPrimaryBeneficiaryAggregatedDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCashFlowsBetweenCompanyAndTransfereesInTransfersAccountedForSalesDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCollectionStatusInformationForLoansAccountedForSalesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_VariableInterestEntityPrimaryBeneficiaryAggregatedDisclosureMember": {
     "auth_ref": [
      "r220"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosures of similar consolidated Variable Interest Entities (VIE),in aggregate, including how similar entities are aggregated, if separate reporting would not provide more useful information.",
        "label": "Variable Interest Entity Primary Beneficiary Aggregated Disclosure [Member]",
        "terseLabel": "Variable Interest Entity, Primary Beneficiary, Aggregated Disclosure [Member]"
       }
      }
     },
     "localname": "VariableInterestEntityPrimaryBeneficiaryAggregatedDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureLoanSalesAndVariableInterestEntitiesSummaryOfCreditRiskTransferAgreementsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_VariableInterestEntityPrimaryBeneficiaryMember": {
     "auth_ref": [
      "r215"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Variable Interest Entities (VIE) in which the entity has a controlling financial interest (as defined) and of which it is therefore the primary beneficiary. A controlling financial interest is determined based on both: (a) the entity's power to direct activities of the VIE that most significantly impact the VIE's economic performance and (b) the entity's obligation to absorb losses of the VIE that could potentially be significant to the VIE or the right to receive benefits from the VIE that could potentially be significant to the VIE. VIEs of which the entity is the primary beneficiary are included in the consolidated financial statements of the entity.",
        "label": "Variable Interest Entity Primary Beneficiary [Member]",
        "terseLabel": "Variable Interest Entities [Member]"
       }
      }
     },
     "localname": "VariableInterestEntityPrimaryBeneficiaryMember",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureAssetBackedFinancingOfVariableInterestEntityAtFairValueSummaryOfFinancialInformationRelatingToAssetBackedFinancingOfVIEAtFairValueDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetGainLossOnInvestmentsSummaryOfNetGainLossOnInvestmentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNetInterestIncomeSummaryOfNetInterestIncomeDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedBalanceSheetsUnaudited"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_VariableRateAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of variable rate.",
        "label": "Variable Rate [Axis]",
        "terseLabel": "Variable Rate"
       }
      }
     },
     "localname": "VariableRateAxis",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_VariableRateDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest rate that fluctuates over time as a result of an underlying benchmark interest rate or index.",
        "label": "Variable Rate [Domain]",
        "terseLabel": "Variable Rate"
       }
      }
     },
     "localname": "VariableRateDomain",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureDerivativeActivitiesAndCreditRiskTransferStripsNetGainsLossesRecognizedOnDerivativeFinancialInstrumentsDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureExchangeableSeniorNotesAdditionalInformationDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureNotesPayableAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustmentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Weighted Average Number Diluted Shares Outstanding Adjustment [Abstract]",
        "terseLabel": "Dilutive securities:"
       }
      }
     },
     "localname": "WeightedAverageNumberDilutedSharesOutstandingAdjustmentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "auth_ref": [
      "r121",
      "r127"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The average number of shares or units issued and outstanding that are used in calculating diluted EPS or earnings per unit (EPU), determined based on the timing of issuance of shares or units in the period.",
        "label": "Weighted Average Number Of Diluted Shares Outstanding",
        "terseLabel": "Diluted",
        "totalLabel": "Diluted weighted average number of shares outstanding"
       }
      }
     },
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Weighted Average Number Of Shares Outstanding [Abstract]",
        "terseLabel": "Weighted average common shares outstanding"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "auth_ref": [
      "r119",
      "r127"
     ],
     "calculation": {
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail": {
       "order": 10010.0,
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of [basic] shares or units, after adjustment for contingently issuable shares or units and other shares or units not deemed outstanding, determined by relating the portion of time within a reporting period that common shares or units have been outstanding to the total time in that period.",
        "label": "Weighted Average Number Of Shares Outstanding Basic",
        "terseLabel": "Basic",
        "verboseLabel": "Weighted average basic shares outstanding"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "nsuri": "http://fasb.org/us-gaap/2018-01-31",
     "presentation": [
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/DisclosureEarningsPerShareSummaryOfBasicAndDilutedEarningsPerShareDetail",
      "http://www.pennymacmortgageinvestmenttrust.com/20190630/taxonomy/role/StatementConsolidatedStatementsOfIncomeUnaudited"
     ],
     "xbrltype": "sharesItemType"
    }
   },
   "unitCount": 5
  }
 },
 "std_ref": {
  "r0": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760"
  },
  "r1": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "205",
   "URI": "http://asc.fasb.org/topic&trid=2122149"
  },
  "r10": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(25))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r100": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(d),(e))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r101": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(e),(f))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r102": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(h)(2))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r103": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(k)(1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r104": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(m)(1)(a)(i))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r105": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(m)(1)(i)(A)(i))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r106": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(m)(1)(i)(A)(ii))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r107": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(m)(1)(i)(A))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r108": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(m)(1)(i)(B)(iii))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r109": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(m)(1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r11": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(27))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r110": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(n)(2))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r111": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-04(a))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e24072-122690"
  },
  "r112": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "235",
   "URI": "http://asc.fasb.org/topic&trid=2122369"
  },
  "r113": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r114": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22694-107794"
  },
  "r115": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22644-107794"
  },
  "r116": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22658-107794"
  },
  "r117": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22663-107794"
  },
  "r118": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "250",
   "URI": "http://asc.fasb.org/topic&trid=2122394"
  },
  "r119": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109260490&loc=d3e1448-109256"
  },
  "r12": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(28))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r120": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109260490&loc=d3e1377-109256"
  },
  "r121": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109260490&loc=d3e1505-109256"
  },
  "r122": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109260490&loc=d3e1252-109256"
  },
  "r123": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109260490&loc=d3e1930-109256"
  },
  "r124": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109260490&loc=SL5780133-109256"
  },
  "r125": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109260490&loc=SL5780133-109256"
  },
  "r126": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109260490&loc=d3e1337-109256"
  },
  "r127": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257"
  },
  "r128": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257"
  },
  "r129": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257"
  },
  "r13": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(29))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r130": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3630-109257"
  },
  "r131": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "52",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109256448&loc=d3e4984-109258"
  },
  "r132": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "260",
   "URI": "http://asc.fasb.org/topic&trid=2144383"
  },
  "r133": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(a)(5)",
   "Topic": "270",
   "URI": "http://asc.fasb.org/extlink&oid=27015980&loc=d3e46468-122699"
  },
  "r134": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "275",
   "URI": "http://asc.fasb.org/topic&trid=2134479"
  },
  "r135": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8657-108599"
  },
  "r136": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8721-108599"
  },
  "r137": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599"
  },
  "r138": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599"
  },
  "r139": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599"
  },
  "r14": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(1))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r140": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8813-108599"
  },
  "r141": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e8906-108599"
  },
  "r142": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=115929826&loc=d3e9031-108599"
  },
  "r143": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "280",
   "URI": "http://asc.fasb.org/topic&trid=2134510"
  },
  "r144": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=82891408&loc=d3e4437-111522"
  },
  "r145": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84173941&loc=d3e5162-111524"
  },
  "r146": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84173941&loc=SL6953659-111524"
  },
  "r147": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 4.E)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=27010918&loc=d3e74512-122707"
  },
  "r148": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "40",
   "SubTopic": "40",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=114775070&loc=d3e18511-111553"
  },
  "r149": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "40",
   "SubTopic": "40",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=114775070&loc=d3e18551-111553"
  },
  "r15": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(3))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r150": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=109979856&loc=d3e26853-111562"
  },
  "r151": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27405-111563"
  },
  "r152": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=SL6283291-111563"
  },
  "r153": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=82897076&loc=d3e27232-111563"
  },
  "r154": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "320",
   "URI": "http://asc.fasb.org/topic&trid=2196928"
  },
  "r155": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=108376223&loc=d3e13816-109267"
  },
  "r156": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=29634951&loc=d3e1424-110224"
  },
  "r157": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "43",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=29634951&loc=d3e1739-110224"
  },
  "r158": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230"
  },
  "r159": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230"
  },
  "r16": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r160": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "420",
   "URI": "http://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869"
  },
  "r161": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 5.P.4(d))",
   "Topic": "420",
   "URI": "http://asc.fasb.org/extlink&oid=115931487&loc=d3e140904-122747"
  },
  "r162": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "440",
   "URI": "http://asc.fasb.org/topic&trid=2144648"
  },
  "r163": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/extlink&oid=82911808&loc=d3e14326-108349"
  },
  "r164": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "450",
   "URI": "http://asc.fasb.org/topic&trid=2127136"
  },
  "r165": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=6802200&loc=SL6230698-112601"
  },
  "r166": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=109126253&loc=d3e4852-112606"
  },
  "r167": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=109500613&loc=SL6031897-161870"
  },
  "r168": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=99377297&loc=d3e10013-112621"
  },
  "r169": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "470",
   "URI": "http://asc.fasb.org/topic&trid=2208564"
  },
  "r17": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(31))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r170": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(CFRR 211.02)",
   "Topic": "480",
   "URI": "http://asc.fasb.org/extlink&oid=65877616&loc=d3e177068-122764"
  },
  "r171": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Topic": "480",
   "URI": "http://asc.fasb.org/extlink&oid=65877616&loc=d3e177068-122764"
  },
  "r172": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=65888546&loc=d3e21300-112643"
  },
  "r173": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21553-112644"
  },
  "r174": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21564-112644"
  },
  "r175": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21463-112644"
  },
  "r176": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21475-112644"
  },
  "r177": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21484-112644"
  },
  "r178": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21488-112644"
  },
  "r179": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21488-112644"
  },
  "r18": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(32))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r180": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21506-112644"
  },
  "r181": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21506-112644"
  },
  "r182": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21521-112644"
  },
  "r183": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21538-112644"
  },
  "r184": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-04)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=27012166&loc=d3e187085-122770"
  },
  "r185": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-07)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=27012166&loc=d3e187103-122770"
  },
  "r186": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "50",
   "Topic": "505",
   "URI": "http://asc.fasb.org/subtopic&trid=2208855"
  },
  "r187": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "505",
   "URI": "http://asc.fasb.org/topic&trid=2208762"
  },
  "r188": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=109196051&loc=SL49130545-203045"
  },
  "r189": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=108792157&loc=SL49130690-203046-203046"
  },
  "r19": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.1)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r190": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "610",
   "URI": "http://asc.fasb.org/topic&trid=49130413"
  },
  "r191": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e1928-114920"
  },
  "r192": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(01)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e1928-114920"
  },
  "r193": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(n)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=108410482&loc=d3e1928-114920"
  },
  "r194": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=112275985&loc=d3e4179-114921"
  },
  "r195": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19A",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=107668666&loc=SL79513924-113897"
  },
  "r196": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5047-113901"
  },
  "r197": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5047-113901"
  },
  "r198": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a),(g)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5070-113901"
  },
  "r199": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(3)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5070-113901"
  },
  "r2": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=82887183&loc=d3e6935-107765"
  },
  "r20": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.17)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r200": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5070-113901"
  },
  "r201": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5070-113901"
  },
  "r202": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5070-113901"
  },
  "r203": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5070-113901"
  },
  "r204": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5070-113901"
  },
  "r205": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=109197908&loc=d3e5070-113901"
  },
  "r206": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "718",
   "URI": "http://asc.fasb.org/topic&trid=2228938"
  },
  "r207": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "720",
   "URI": "http://asc.fasb.org/topic&trid=2122503"
  },
  "r208": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32687-109319"
  },
  "r209": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32698-109319"
  },
  "r21": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r210": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32718-109319"
  },
  "r211": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=109238882&loc=d3e38679-109324"
  },
  "r212": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "740",
   "URI": "http://asc.fasb.org/topic&trid=2144680"
  },
  "r213": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "808",
   "URI": "http://asc.fasb.org/extlink&oid=6931272&loc=SL5834143-161434"
  },
  "r214": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108788376&loc=d3e5710-111685"
  },
  "r215": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108788376&loc=d3e5710-111685"
  },
  "r216": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108788376&loc=d3e5728-111685"
  },
  "r217": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108788376&loc=SL6759159-111685"
  },
  "r218": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108788376&loc=d3e5747-111685"
  },
  "r219": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108788376&loc=SL6228884-111685"
  },
  "r22": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r220": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108788376&loc=SL6228884-111685"
  },
  "r221": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108788376&loc=SL6228884-111685"
  },
  "r222": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "810",
   "URI": "http://asc.fasb.org/topic&trid=2197479"
  },
  "r223": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=6945355&loc=d3e41228-113958"
  },
  "r224": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5579240-113959"
  },
  "r225": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5579245-113959"
  },
  "r226": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5579245-113959"
  },
  "r227": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5580258-113959"
  },
  "r228": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=d3e41620-113959"
  },
  "r229": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=d3e41638-113959"
  },
  "r23": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19,20,22)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r230": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5618551-113959"
  },
  "r231": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5618551-113959"
  },
  "r232": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5618551-113959"
  },
  "r233": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a),(c)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5624163-113959"
  },
  "r234": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5624163-113959"
  },
  "r235": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5624163-113959"
  },
  "r236": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5624163-113959"
  },
  "r237": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5624171-113959"
  },
  "r238": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5624177-113959"
  },
  "r239": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5624177-113959"
  },
  "r24": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19-26)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r240": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5624181-113959"
  },
  "r241": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5624186-113959"
  },
  "r242": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5708773-113959"
  },
  "r243": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5708775-113959"
  },
  "r244": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5708775-113959"
  },
  "r245": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5708775-113959"
  },
  "r246": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4L",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=SL5708777-113959"
  },
  "r247": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=d3e41641-113959"
  },
  "r248": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=d3e41678-113959"
  },
  "r249": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109980867&loc=d3e41678-113959"
  },
  "r25": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.20)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r250": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "182",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109975725&loc=SL5629052-113961"
  },
  "r251": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "25",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=109977999&loc=d3e76258-113986"
  },
  "r252": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "815",
   "URI": "http://asc.fasb.org/topic&trid=2229140"
  },
  "r253": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19190-110258"
  },
  "r254": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r255": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r256": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r257": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r258": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(1)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r259": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(2)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r26": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(1))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r260": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r261": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r262": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r263": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r264": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258"
  },
  "r265": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=SL7498348-110258"
  },
  "r266": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=99377789&loc=d3e19279-110258"
  },
  "r267": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "820",
   "URI": "http://asc.fasb.org/topic&trid=2155941"
  },
  "r268": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=109250915&loc=d3e13433-108611"
  },
  "r269": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=109250915&loc=d3e13467-108611"
  },
  "r27": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(2))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r270": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=109250915&loc=d3e13476-108611"
  },
  "r271": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=109250915&loc=d3e13537-108611"
  },
  "r272": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=109250915&loc=d3e13572-108611"
  },
  "r273": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=109250915&loc=d3e13587-108611"
  },
  "r274": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14064-108612"
  },
  "r275": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14064-108612"
  },
  "r276": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14172-108612"
  },
  "r277": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14172-108612"
  },
  "r278": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14172-108612"
  },
  "r279": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14210-108612"
  },
  "r28": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(5))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r280": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14217-108612"
  },
  "r281": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=98513438&loc=d3e33268-110906"
  },
  "r282": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=6450988&loc=d3e26243-108391"
  },
  "r283": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=114775744&loc=d3e28541-108399"
  },
  "r284": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=114775744&loc=d3e28551-108399"
  },
  "r285": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=114775744&loc=d3e28555-108399"
  },
  "r286": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=114775985&loc=d3e28878-108400"
  },
  "r287": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r288": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r289": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r29": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r290": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39599-107864"
  },
  "r291": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39603-107864"
  },
  "r292": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39622-107864"
  },
  "r293": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39678-107864"
  },
  "r294": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39691-107864"
  },
  "r295": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "850",
   "URI": "http://asc.fasb.org/topic&trid=2122745"
  },
  "r296": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "852",
   "URI": "http://asc.fasb.org/extlink&oid=6918054&loc=d3e56071-112765"
  },
  "r297": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "855",
   "URI": "http://asc.fasb.org/extlink&oid=6842918&loc=SL6314017-165662"
  },
  "r298": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "855",
   "URI": "http://asc.fasb.org/topic&trid=2122774"
  },
  "r299": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "15",
   "SubTopic": "10",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=108778291&loc=d3e94415-111705"
  },
  "r3": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=82887183&loc=d3e7018-107765"
  },
  "r30": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.25)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r300": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109254164&loc=SL51821473-162134"
  },
  "r301": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109247956&loc=d3e107207-111719"
  },
  "r302": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109247956&loc=d3e107207-111719"
  },
  "r303": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109247956&loc=d3e107207-111719"
  },
  "r304": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109247956&loc=d3e107207-111719"
  },
  "r305": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109247956&loc=d3e107207-111719"
  },
  "r306": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(4)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109247956&loc=d3e107207-111719"
  },
  "r307": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109247956&loc=d3e107314-111719"
  },
  "r308": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109247956&loc=d3e107314-111719"
  },
  "r309": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109247956&loc=SL51823488-111719"
  },
  "r31": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.28,29)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r310": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109247956&loc=SL51823488-111719"
  },
  "r311": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=66007379&loc=d3e113888-111728"
  },
  "r312": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(1)(i)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109249958&loc=SL6224234-111729"
  },
  "r313": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109249958&loc=SL6224234-111729"
  },
  "r314": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109249958&loc=SL34722452-111729"
  },
  "r315": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "50",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=6469459&loc=d3e122501-111745"
  },
  "r316": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=68078379&loc=d3e122596-111746"
  },
  "r317": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(c)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=68078379&loc=d3e122596-111746"
  },
  "r318": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(d)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=68078379&loc=d3e122596-111746"
  },
  "r319": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=68078379&loc=d3e122625-111746"
  },
  "r32": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29-31)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r320": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=68078379&loc=d3e122625-111746"
  },
  "r321": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)(i)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=68078379&loc=d3e122625-111746"
  },
  "r322": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)(ii)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=68078379&loc=d3e122625-111746"
  },
  "r323": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=68078379&loc=d3e122625-111746"
  },
  "r324": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(6)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=68078379&loc=d3e122739-111746"
  },
  "r325": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "860",
   "URI": "http://asc.fasb.org/topic&trid=2197590"
  },
  "r326": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e61929-109447"
  },
  "r327": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e61929-109447"
  },
  "r328": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e62059-109447"
  },
  "r329": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e62059-109447"
  },
  "r33": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.3,4)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r330": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e62395-109447"
  },
  "r331": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e62395-109447"
  },
  "r332": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e62479-109447"
  },
  "r333": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e62479-109447"
  },
  "r334": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "35A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=SL6807758-109447"
  },
  "r335": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "35A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=SL6807758-109447"
  },
  "r336": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(c)(1)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e61872-109447"
  },
  "r337": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(c)(2)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e61872-109447"
  },
  "r338": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "940",
   "URI": "http://asc.fasb.org/extlink&oid=68072869&loc=d3e41242-110953"
  },
  "r339": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "320",
   "Topic": "940",
   "URI": "http://asc.fasb.org/extlink&oid=35711157&loc=d3e42546-110969"
  },
  "r34": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.8)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r340": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "940",
   "URI": "http://asc.fasb.org/subtopic&trid=2176304"
  },
  "r341": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(1)(a))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r342": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10)(4))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r343": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r344": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(11))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r345": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(13))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r346": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(15)(1))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r347": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(15)(5))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r348": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(16))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r349": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(17))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r35": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=49176635&loc=d3e9760-107771"
  },
  "r350": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(23))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r351": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(4))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r352": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(5))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r353": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(6))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r354": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(8))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r355": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.1)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r356": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.13(1))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r357": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.13,16)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r358": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.15(1),(5))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r359": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.15(3))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r36": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r360": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.15(3),(4))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r361": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.17)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878"
  },
  "r362": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(14)(d))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=114873765&loc=SL114874048-224260"
  },
  "r363": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(15))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=114873765&loc=SL114874048-224260"
  },
  "r364": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(22))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=114873765&loc=SL114874048-224260"
  },
  "r365": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(23))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=114873765&loc=SL114874048-224260"
  },
  "r366": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.1)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=114873765&loc=SL114874048-224260"
  },
  "r367": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.1-12)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=114873765&loc=SL114874048-224260"
  },
  "r368": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.10)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=114873765&loc=SL114874048-224260"
  },
  "r369": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.13(h))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=114873765&loc=SL114874048-224260"
  },
  "r37": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r370": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.14(d))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=114873765&loc=SL114874048-224260"
  },
  "r371": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.2)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=114873765&loc=SL114874048-224260"
  },
  "r372": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.4)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=114873765&loc=SL114874048-224260"
  },
  "r373": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.7)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=114873765&loc=SL114874048-224260"
  },
  "r374": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.8)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=114873765&loc=SL114874048-224260"
  },
  "r375": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.9)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=114873765&loc=SL114874048-224260"
  },
  "r376": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "942",
   "URI": "http://asc.fasb.org/subtopic&trid=2209399"
  },
  "r377": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "405",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6957935&loc=d3e64057-112817"
  },
  "r378": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Subparagraph": "(c)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823"
  },
  "r379": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823"
  },
  "r38": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r380": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Subparagraph": "(c)(1)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=84167132&loc=SL5958568-112826"
  },
  "r381": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=84167132&loc=SL5958570-112826"
  },
  "r382": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1G",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=84167132&loc=SL5958577-112826"
  },
  "r383": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1H",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "505",
   "Subparagraph": "(c)(2)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=84167132&loc=d3e65071-112826"
  },
  "r384": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(16))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r385": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(1)(d))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r386": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(1)(g))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r387": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(10))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r388": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(12))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r389": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(15)(5))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r39": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(2)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r390": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(15)(a))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r391": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16)(a))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r392": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r393": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(19))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r394": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(2))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r395": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(4))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r396": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(25))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r397": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.(a),19)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r398": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.(a),2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r399": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.1(d))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r4": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(17))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r40": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r400": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.15)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r401": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.17)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r402": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.3)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910"
  },
  "r403": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(18))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=114873790&loc=SL114874131-224263"
  },
  "r404": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(19))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=114873790&loc=SL114874131-224263"
  },
  "r405": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(3)(a))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=114873790&loc=SL114874131-224263"
  },
  "r406": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(8))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=114873790&loc=SL114874131-224263"
  },
  "r407": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04.2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=114873790&loc=SL114874131-224263"
  },
  "r408": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04.3(a))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=114873790&loc=SL114874131-224263"
  },
  "r409": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04.4)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=114873790&loc=SL114874131-224263"
  },
  "r41": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r410": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4H",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=99384497&loc=SL65671331-158438"
  },
  "r411": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=6484115&loc=d3e19393-158473"
  },
  "r412": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(c)",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=99383244&loc=d3e12121-115841"
  },
  "r413": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(13))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=6488278&loc=d3e603758-122996"
  },
  "r414": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04.12(3))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=6488278&loc=d3e603758-122996"
  },
  "r415": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "220",
   "Subparagraph": "(k)",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=114873831&loc=SL114874205-224268"
  },
  "r416": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-07.2(a),(b),(c),(d))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=114873854&loc=SL114874292-224272"
  },
  "r417": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12(2)(i))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=50485924&loc=d3e611133-123010"
  },
  "r418": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12.Column B)",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=50485924&loc=d3e611133-123010"
  },
  "r419": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12C(1)(a))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=50485924&loc=d3e611225-123010"
  },
  "r42": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225877-175312"
  },
  "r420": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12C.Column B)",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=50485924&loc=d3e611225-123010"
  },
  "r421": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13(1))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=50485924&loc=d3e611282-123010"
  },
  "r422": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-14.Column B)",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=50485924&loc=d3e611322-123010"
  },
  "r423": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column A))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=50485924&loc=d3e611379-123010"
  },
  "r424": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "946",
   "URI": "http://asc.fasb.org/subtopic&trid=2324412"
  },
  "r425": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(a)",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=6490092&loc=d3e47080-110998"
  },
  "r426": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=6490092&loc=d3e47080-110998"
  },
  "r427": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=6490092&loc=d3e47214-110998"
  },
  "r428": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=6490092&loc=d3e47304-110998"
  },
  "r429": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Column B))",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=6589523&loc=d3e617274-123014"
  },
  "r43": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226008-175313"
  },
  "r430": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Column G))",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=6589523&loc=d3e617274-123014"
  },
  "r431": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Column H))",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=6589523&loc=d3e617274-123014"
  },
  "r432": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 3))",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=6589523&loc=d3e617274-123014"
  },
  "r433": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 4))",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=6589523&loc=d3e617274-123014"
  },
  "r434": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29)",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=6589523&loc=d3e617274-123014"
  },
  "r435": {
   "Name": "Regulation 12B",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r436": {
   "Article": "12",
   "Footnote": "2",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12"
  },
  "r437": {
   "Article": "12",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "13",
   "Sentence": "Column B"
  },
  "r438": {
   "Footnote": "3",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29"
  },
  "r439": {
   "Footnote": "4",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29"
  },
  "r44": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226016-175313"
  },
  "r440": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column B",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29"
  },
  "r441": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column H",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29"
  },
  "r442": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29"
  },
  "r443": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(m)",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "(1)(iii)",
   "Subsection": "08"
  },
  "r45": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226024-175313"
  },
  "r46": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226000-175313"
  },
  "r47": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226003-175313"
  },
  "r48": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226006-175313"
  },
  "r49": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=SL7669619-108580"
  },
  "r5": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(19))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r50": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=114867106&loc=SL7669625-108580"
  },
  "r51": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(210.5-03(11))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r52": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(10))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r53": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(20))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r54": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(21))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r55": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(b)(4))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r56": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(b)(7)(c))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r57": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(b)(9)(a))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r58": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.1(e))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r59": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.2)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r6": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(2))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r60": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.3)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r61": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.7(a),(b))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r62": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.7(c),9(a))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r63": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.8)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r64": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.9)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227"
  },
  "r65": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3151-108585"
  },
  "r66": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3179-108585"
  },
  "r67": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3179-108585"
  },
  "r68": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3213-108585"
  },
  "r69": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3255-108585"
  },
  "r7": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(20))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r70": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3255-108585"
  },
  "r71": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3291-108585"
  },
  "r72": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3291-108585"
  },
  "r73": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3291-108585"
  },
  "r74": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3291-108585"
  },
  "r75": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3367-108585"
  },
  "r76": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3367-108585"
  },
  "r77": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3461-108585"
  },
  "r78": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3521-108585"
  },
  "r79": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3536-108585"
  },
  "r8": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(22))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r80": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3536-108585"
  },
  "r81": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3536-108585"
  },
  "r82": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3602-108585"
  },
  "r83": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3602-108585"
  },
  "r84": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3602-108585"
  },
  "r85": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3044-108585"
  },
  "r86": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=109223946&loc=d3e3098-108585"
  },
  "r87": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=98513485&loc=d3e4297-108586"
  },
  "r88": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=98513485&loc=d3e4304-108586"
  },
  "r89": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=98513485&loc=d3e4313-108586"
  },
  "r9": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(24))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682"
  },
  "r90": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=98513485&loc=d3e4332-108586"
  },
  "r91": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=98513485&loc=SL98516268-108586"
  },
  "r92": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "230",
   "URI": "http://asc.fasb.org/topic&trid=2134446"
  },
  "r93": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=84158767&loc=d3e18780-107790"
  },
  "r94": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(d)(1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r95": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(d))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r96": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r97": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(k))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r98": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(iii))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  },
  "r99": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(d)(1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690"
  }
 },
 "version": "2.1"
}
