Annual report pursuant to Section 13 and 15(d)

Senior, Senior Subordinated, Convertible Senior Notes (Details Textual)

v2.4.1.9
Senior, Senior Subordinated, Convertible Senior Notes (Details Textual) (USD $)
12 Months Ended
Dec. 31, 2014
Dec. 31, 2013
Dec. 31, 2012
Mar. 31, 2013
Apr. 30, 2012
Nov. 30, 2013
Dec. 31, 2010
Debt Instrument [Line Items]              
Percentage of wholly owned subsidiary 100.00%mth_PercentageOfWhollyOwnedSubsidiaries            
Loss on early extinguishment of debt $ 0us-gaap_GainsLossesOnExtinguishmentOfDebt $ 3,796,000us-gaap_GainsLossesOnExtinguishmentOfDebt $ 5,772,000us-gaap_GainsLossesOnExtinguishmentOfDebt        
7.731% senior subordinated notes due 2017 [Member]              
Debt Instrument [Line Items]              
Debt instrument, stated rate 7.731%us-gaap_DebtInstrumentInterestRateStatedPercentage
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorSubordinatedNotesDueTwoThousandSeventeenMember
7.731%us-gaap_DebtInstrumentInterestRateStatedPercentage
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorSubordinatedNotesDueTwoThousandSeventeenMember
         
Debt Instrument Maturity Year 2017            
Aggregate principal amount repurchased       99,800,000us-gaap_DebtInstrumentRepurchasedFaceAmount
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorSubordinatedNotesDueTwoThousandSeventeenMember
26,100,000us-gaap_DebtInstrumentRepurchasedFaceAmount
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorSubordinatedNotesDueTwoThousandSeventeenMember
   
4.50% senior notes due 2018 [Member]              
Debt Instrument [Line Items]              
Debt instrument, stated rate 4.50%us-gaap_DebtInstrumentInterestRateStatedPercentage
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandEighteenMemberDomain
4.50%us-gaap_DebtInstrumentInterestRateStatedPercentage
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandEighteenMemberDomain
         
Debt Instrument Maturity Year 2018 2018          
Aggregate principal amount of offering 175,000,000us-gaap_DebtInstrumentFaceAmount
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandEighteenMemberDomain
           
7.00% senior notes due 2022 [Member]              
Debt Instrument [Line Items]              
Debt instrument, stated rate 7.00%us-gaap_DebtInstrumentInterestRateStatedPercentage
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandTwentyTwoMember
7.00%us-gaap_DebtInstrumentInterestRateStatedPercentage
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandTwentyTwoMember
         
Debt Instrument Maturity Year 2022 2022          
Aggregate principal amount of offering         300,000,000us-gaap_DebtInstrumentFaceAmount
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandTwentyTwoMember
   
6.25% senior notes due 2015 [Member]              
Debt Instrument [Line Items]              
Debt instrument, stated rate 6.25%us-gaap_DebtInstrumentInterestRateStatedPercentage
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandFifteenMember
           
Debt Instrument Maturity Year 2015            
Aggregate principal amount repurchased         285,000,000us-gaap_DebtInstrumentRepurchasedFaceAmount
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandFifteenMember
   
7.15% senior notes due 2020 [Member]              
Debt Instrument [Line Items]              
Debt instrument, stated rate 7.15%us-gaap_DebtInstrumentInterestRateStatedPercentage
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandTwentyMember
7.15%us-gaap_DebtInstrumentInterestRateStatedPercentage
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandTwentyMember
         
Debt Instrument Maturity Year 2020 2020          
Debt Instrument, Unamortized Premium 2,986,000us-gaap_DebtInstrumentUnamortizedPremium
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandTwentyMember
3,555,000us-gaap_DebtInstrumentUnamortizedPremium
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandTwentyMember
         
Aggregate principal amount of offering 200,000,000us-gaap_DebtInstrumentFaceAmount
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandTwentyMember
           
Add-on to existing 7.15% senior notes           100,000,000mth_Addontoexisting7.15seniornotes
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandTwentyMember
 
Percent of debt instrument par value issued           106.699%mth_Percentofdebtinstrumentparvalueissued
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandTwentyMember
97.567%mth_Percentofdebtinstrumentparvalueissued
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandTwentyMember
Debt Instrument, Interest Rate, Effective Percentage           5.875%us-gaap_DebtInstrumentInterestRateEffectivePercentage
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandTwentyMember
7.50%us-gaap_DebtInstrumentInterestRateEffectivePercentage
/ us-gaap_LongtermDebtTypeAxis
= mth_SeniorNotesDueTwoThousandTwentyMember
1.875% convertible senior notes due 2032 [Member]              
Debt Instrument [Line Items]              
Debt instrument, stated rate 1.875%us-gaap_DebtInstrumentInterestRateStatedPercentage
/ us-gaap_LongtermDebtTypeAxis
= mth_ConvertibleSeniorNotesDueTwoThousandThirtyTwoMemberMember
1.875%us-gaap_DebtInstrumentInterestRateStatedPercentage
/ us-gaap_LongtermDebtTypeAxis
= mth_ConvertibleSeniorNotesDueTwoThousandThirtyTwoMemberMember
         
Debt Instrument Maturity Year 2032 2032          
Aggregate principal amount of offering 126,500,000us-gaap_DebtInstrumentFaceAmount
/ us-gaap_LongtermDebtTypeAxis
= mth_ConvertibleSeniorNotesDueTwoThousandThirtyTwoMemberMember
           
Debt instrument, convertible, conversion ratio 17.1985us-gaap_DebtInstrumentConvertibleConversionRatio1
/ us-gaap_LongtermDebtTypeAxis
= mth_ConvertibleSeniorNotesDueTwoThousandThirtyTwoMemberMember
           
Debt Instrument Convertible Conversion Ratio Basis Principal Amount $ 1,000mth_DebtInstrumentConvertibleConversionRatioBasisPrincipalAmount
/ us-gaap_LongtermDebtTypeAxis
= mth_ConvertibleSeniorNotesDueTwoThousandThirtyTwoMemberMember
           
Debt instrument, convertible, conversion price $ 58.14us-gaap_DebtInstrumentConvertibleConversionPrice1
/ us-gaap_LongtermDebtTypeAxis
= mth_ConvertibleSeniorNotesDueTwoThousandThirtyTwoMemberMember
           
Conversion premium 47.50%mth_ConversionPremium
/ us-gaap_LongtermDebtTypeAxis
= mth_ConvertibleSeniorNotesDueTwoThousandThirtyTwoMemberMember