<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>84</ContextCount>
  <ElementCount>76</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>7</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>2</UnitCount>
  <MyReports>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>995300 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>995301 - Statement - Statements of Net Assets Available for Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/StatementsofNetAssetsAvailableforBenefits</Role>
      <ShortName>Statements of Net Assets Available for Benefits</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>995302 - Statement - Statement of Changes in Net Assets Available for Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/StatementofChangesinNetAssetsAvailableforBenefits</Role>
      <ShortName>Statement of Changes in Net Assets Available for Benefits</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>995303 - Disclosure - General description of the Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/GeneraldescriptionofthePlan</Role>
      <ShortName>General description of the Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>995304 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/SummaryofSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>995305 - Disclosure - Investment Contract with Insurance Company</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/InvestmentContractwithInsuranceCompany</Role>
      <ShortName>Investment Contract with Insurance Company</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>995306 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>995307 - Disclosure - Party in Interest Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/PartyinInterestTransactions</Role>
      <ShortName>Party in Interest Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>995308 - Disclosure - Tax Status of the Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/TaxStatusofthePlan</Role>
      <ShortName>Tax Status of the Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>995309 - Disclosure - Concentration of Risks and Uncertainties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/ConcentrationofRisksandUncertainties</Role>
      <ShortName>Concentration of Risks and Uncertainties</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>995310 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995311 - Disclosure - Magyar Bank 401(k) Profit Sharing Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/MagyarBank401kProfitSharingPlan</Role>
      <ShortName>Magyar Bank 401(k) Profit Sharing Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>996312 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/SummaryofSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://may.com/20251231/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>13</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>996313 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://may.com/20251231/role/FairValueMeasurements</ParentRole>
      <Position>14</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>996314 - Disclosure - Magyar Bank 401(k) Profit Sharing Plan (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/MagyarBank401kProfitSharingPlanTables</Role>
      <ShortName>Magyar Bank 401(k) Profit Sharing Plan (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://may.com/20251231/role/MagyarBank401kProfitSharingPlan</ParentRole>
      <Position>15</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>996315 - Disclosure - General Description of the Plan - (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/GeneralDescriptionofthePlanDetails</Role>
      <ShortName>General Description of the Plan - (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>996316 - Disclosure - Investment Contract with Insurance Company (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/InvestmentContractwithInsuranceCompanyDetails</Role>
      <ShortName>Investment Contract with Insurance Company (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://may.com/20251231/role/InvestmentContractwithInsuranceCompany</ParentRole>
      <Position>17</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>996317 - Disclosure - Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/FairValueMeasurementsDetails</Role>
      <ShortName>Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://may.com/20251231/role/FairValueMeasurementsTables</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>996318 - Disclosure - Fair Value Measurements - Schedule of Fair Value Hierarchy, the Plan’s Assets at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/FairValueMeasurementsScheduleofFairValueHierarchythePlansAssetsatFairValueDetails</Role>
      <ShortName>Fair Value Measurements - Schedule of Fair Value Hierarchy, the Plan’s Assets at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>996319 - Disclosure - Party in Interest Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/PartyinInterestTransactionsDetails</Role>
      <ShortName>Party in Interest Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://may.com/20251231/role/PartyinInterestTransactions</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>996320 - Disclosure - Tax Status of the Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/TaxStatusofthePlanDetails</Role>
      <ShortName>Tax Status of the Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://may.com/20251231/role/TaxStatusofthePlan</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="ea0295334-11k_magyar.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>996321 - Disclosure - Schedule of Profit Sharing Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://may.com/20251231/role/ScheduleofProfitSharingPlanDetails</Role>
      <ShortName>Schedule of Profit Sharing Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="11-K" isDefinitelyFs="true" isUsgaap="true" original="ea0295334-11k_magyar.htm">ea0295334-11k_magyar.htm</File>
    <File>mgyr-20251231.xsd</File>
    <File>mgyr-20251231_cal.xml</File>
    <File>mgyr-20251231_def.xml</File>
    <File>mgyr-20251231_lab.xml</File>
    <File>mgyr-20251231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="184">http://fasb.org/us-gaap-ebp/2026</BaseTaxonomy>
    <BaseTaxonomy items="11">http://xbrl.sec.gov/dei/2026</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
