{
 "instance": {
  "c485bpos.htm": {
   "axisCustom": 0,
   "axisStandard": 4,
   "contextCount": 322,
   "dts": {
    "calculationLink": {
     "local": [
      "c485bpos-20220225_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "c485bpos-20220225_def.xml"
     ]
    },
    "inline": {
     "local": [
      "c485bpos.htm"
     ]
    },
    "labelLink": {
     "local": [
      "c485bpos-20220225_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "c485bpos-20220225_pre.xml"
     ]
    },
    "schema": {
     "local": [
      "c485bpos-20220225.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",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/2006/xbrldi-2006.xsd",
      "http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd",
      "http://www.xbrl.org/dtr/type/numeric-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/deprecated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd",
      "https://xbrl.sec.gov/rr/2018/rr-2018-01-31.xsd"
     ]
    }
   },
   "elementCount": 254,
   "entityCount": 1,
   "hidden": {
    "http://xbrl.sec.gov/dei/2020-01-31": 7,
    "http://xbrl.sec.gov/rr/2018-01-31": 320,
    "total": 327
   },
   "keyCustom": 0,
   "keyStandard": 210,
   "memberCustom": 138,
   "memberStandard": 2,
   "nsprefix": "cik0000787441",
   "nsuri": "http://www.mainstayinvestments.com/20211031",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:EntityRegistrantName",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01001 - Document - Document and Entity Information {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
     "shortName": "Document and Entity Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:EntityRegistrantName",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R10": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006902Member_S000006902Summary5Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01010 - Document - Risk/Return Summary (MainStay MacKay International Equity Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
     "shortName": "Risk/Return Summary (MainStay MacKay International Equity Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R106": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006896Member_S000006896Summary34Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01106 - Document - Risk/Return Summary (MainStay MacKay High Yield Corporate Bond Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
     "shortName": "Risk/Return Summary (MainStay MacKay High Yield Corporate Bond Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R107": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006896Member_S000006896Summary34Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01107 - Disclosure - Risk/Return Detail Data (MainStay MacKay High Yield Corporate Bond Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
     "shortName": "Risk/Return Detail Data (MainStay MacKay High Yield Corporate Bond Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006896Member_S000006896Summary34Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R11": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006902Member_S000006902Summary5Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01011 - Disclosure - Risk/Return Detail Data (MainStay MacKay International Equity Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
     "shortName": "Risk/Return Detail Data (MainStay MacKay International Equity Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006902Member_S000006902Summary5Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R114": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006894Member_S000006894Summary36Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01114 - Document - Risk/Return Summary (MainStay MacKay Strategic Bond Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
     "shortName": "Risk/Return Summary (MainStay MacKay Strategic Bond Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R115": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006894Member_S000006894Summary36Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01115 - Disclosure - Risk/Return Detail Data (MainStay MacKay Strategic Bond Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
     "shortName": "Risk/Return Detail Data (MainStay MacKay Strategic Bond Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006894Member_S000006894Summary36Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R122": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006895Member_S000006895Summary38Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01122 - Document - Risk/Return Summary (MainStay MacKay U.S. Infrastructure Bond Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
     "shortName": "Risk/Return Summary (MainStay MacKay U.S. Infrastructure Bond Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R123": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006895Member_S000006895Summary38Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01123 - Disclosure - Risk/Return Detail Data (MainStay MacKay U.S. Infrastructure Bond Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
     "shortName": "Risk/Return Detail Data (MainStay MacKay U.S. Infrastructure Bond Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006895Member_S000006895Summary38Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R130": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006898Member_S000006898Summary43Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01130 - Document - Risk/Return Summary (MainStay MacKay Tax Free Bond Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
     "shortName": "Risk/Return Summary (MainStay MacKay Tax Free Bond Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R131": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006898Member_S000006898Summary43Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01131 - Disclosure - Risk/Return Detail Data (MainStay MacKay Tax Free Bond Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
     "shortName": "Risk/Return Detail Data (MainStay MacKay Tax Free Bond Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006898Member_S000006898Summary43Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R138": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006897Member_S000006897Summary44Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01138 - Document - Risk/Return Summary (MainStay Money Market Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
     "shortName": "Risk/Return Summary (MainStay Money Market Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R139": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006897Member_S000006897Summary44Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01139 - Disclosure - Risk/Return Detail Data (MainStay Money Market Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
     "shortName": "Risk/Return Detail Data (MainStay Money Market Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:RiskNarrativeTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006897Member_S000006897Summary44Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskLoseMoney",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R146": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006900Member_S000006900Summary45Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01146 - Document - Risk/Return Summary (MainStay Income Builder Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
     "shortName": "Risk/Return Summary (MainStay Income Builder Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R147": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006900Member_S000006900Summary45Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01147 - Disclosure - Risk/Return Detail Data (MainStay Income Builder Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
     "shortName": "Risk/Return Detail Data (MainStay Income Builder Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006900Member_S000006900Summary45Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R154": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006899Member_S000006899Summary46Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01154 - Document - Risk/Return Summary (MainStay MacKay Convertible Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
     "shortName": "Risk/Return Summary (MainStay MacKay Convertible Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R155": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006899Member_S000006899Summary46Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01155 - Disclosure - Risk/Return Detail Data (MainStay MacKay Convertible Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
     "shortName": "Risk/Return Detail Data (MainStay MacKay Convertible Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006899Member_S000006899Summary46Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R18": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006905Member_S000006905Summary11Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01018 - Document - Risk/Return Summary (MainStay Winslow Large Cap Growth Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
     "shortName": "Risk/Return Summary (MainStay Winslow Large Cap Growth Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006905Member_S000006905Summary11Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01019 - Disclosure - Risk/Return Detail Data (MainStay Winslow Large Cap Growth Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
     "shortName": "Risk/Return Detail Data (MainStay Winslow Large Cap Growth Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006905Member_S000006905Summary11Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006905Member_S000006905Summary3Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01002 - Document - Risk/Return Summary (MainStay Winslow Large Cap Growth Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
     "shortName": "Risk/Return Summary (MainStay Winslow Large Cap Growth Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006902Member_S000006902Summary13Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01026 - Document - Risk/Return Summary (MainStay MacKay International Equity Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
     "shortName": "Risk/Return Summary (MainStay MacKay International Equity Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R27": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006902Member_S000006902Summary13Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01027 - Disclosure - Risk/Return Detail Data (MainStay MacKay International Equity Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
     "shortName": "Risk/Return Detail Data (MainStay MacKay International Equity Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006902Member_S000006902Summary13Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R3": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006905Member_S000006905Summary3Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01003 - Disclosure - Risk/Return Detail Data (MainStay Winslow Large Cap Growth Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
     "shortName": "Risk/Return Detail Data (MainStay Winslow Large Cap Growth Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006905Member_S000006905Summary3Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R34": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006901Member_S000006901Summary17Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01034 - Document - Risk/Return Summary (MainStay Candriam Emerging Markets Debt Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
     "shortName": "Risk/Return Summary (MainStay Candriam Emerging Markets Debt Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R35": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006901Member_S000006901Summary17Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01035 - Disclosure - Risk/Return Detail Data (MainStay Candriam Emerging Markets Debt Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
     "shortName": "Risk/Return Detail Data (MainStay Candriam Emerging Markets Debt Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006901Member_S000006901Summary17Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R42": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006896Member_S000006896Summary19Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01042 - Document - Risk/Return Summary (MainStay MacKay High Yield Corporate Bond Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
     "shortName": "Risk/Return Summary (MainStay MacKay High Yield Corporate Bond Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006896Member_S000006896Summary19Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01043 - Disclosure - Risk/Return Detail Data (MainStay MacKay High Yield Corporate Bond Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
     "shortName": "Risk/Return Detail Data (MainStay MacKay High Yield Corporate Bond Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006896Member_S000006896Summary19Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006894Member_S000006894Summary21Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01050 - Document - Risk/Return Summary (MainStay MacKay Strategic Bond Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
     "shortName": "Risk/Return Summary (MainStay MacKay Strategic Bond Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R51": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006894Member_S000006894Summary21Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01051 - Disclosure - Risk/Return Detail Data (MainStay MacKay Strategic Bond Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
     "shortName": "Risk/Return Detail Data (MainStay MacKay Strategic Bond Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006894Member_S000006894Summary21Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R58": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006895Member_S000006895Summary23Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01058 - Document - Risk/Return Summary (MainStay MacKay U.S. Infrastructure Bond Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
     "shortName": "Risk/Return Summary (MainStay MacKay U.S. Infrastructure Bond Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R59": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006895Member_S000006895Summary23Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01059 - Disclosure - Risk/Return Detail Data (MainStay MacKay U.S. Infrastructure Bond Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
     "shortName": "Risk/Return Detail Data (MainStay MacKay U.S. Infrastructure Bond Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006895Member_S000006895Summary23Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R66": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006898Member_S000006898Summary28Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01066 - Document - Risk/Return Summary (MainStay MacKay Tax Free Bond Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
     "shortName": "Risk/Return Summary (MainStay MacKay Tax Free Bond Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R67": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006898Member_S000006898Summary28Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01067 - Disclosure - Risk/Return Detail Data (MainStay MacKay Tax Free Bond Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
     "shortName": "Risk/Return Detail Data (MainStay MacKay Tax Free Bond Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006898Member_S000006898Summary28Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R74": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006897Member_S000006897Summary29Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01074 - Document - Risk/Return Summary (MainStay Money Market Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
     "shortName": "Risk/Return Summary (MainStay Money Market Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R75": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006897Member_S000006897Summary29Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01075 - Disclosure - Risk/Return Detail Data (MainStay Money Market Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
     "shortName": "Risk/Return Detail Data (MainStay Money Market Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:RiskNarrativeTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006897Member_S000006897Summary29Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskLoseMoney",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R82": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006900Member_S000006900Summary30Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01082 - Document - Risk/Return Summary (MainStay Income Builder Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
     "shortName": "Risk/Return Summary (MainStay Income Builder Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R83": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006900Member_S000006900Summary30Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01083 - Disclosure - Risk/Return Detail Data (MainStay Income Builder Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
     "shortName": "Risk/Return Detail Data (MainStay Income Builder Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006900Member_S000006900Summary30Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R90": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006899Member_S000006899Summary31Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01090 - Document - Risk/Return Summary (MainStay MacKay Convertible Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
     "shortName": "Risk/Return Summary (MainStay MacKay Convertible Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R91": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006899Member_S000006899Summary31Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01091 - Disclosure - Risk/Return Detail Data (MainStay MacKay Convertible Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
     "shortName": "Risk/Return Detail Data (MainStay MacKay Convertible Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006899Member_S000006899Summary31Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "R98": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006901Member_S000006901Summary32Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "01098 - Document - Risk/Return Summary (MainStay Candriam Emerging Markets Debt Fund) {Unlabeled}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRSummary98",
     "shortName": "Risk/Return Summary (MainStay Candriam Emerging Markets Debt Fund)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R99": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006901Member_S000006901Summary32Member",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "01099 - Disclosure - Risk/Return Detail Data (MainStay Candriam Emerging Markets Debt Fund) {Elements}",
     "role": "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
     "shortName": "Risk/Return Detail Data (MainStay Candriam Emerging Markets Debt Fund)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "rr:PortfolioTurnoverTextBlock",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006901Member_S000006901Summary32Member",
      "decimals": "INF",
      "lang": null,
      "name": "rr:PortfolioTurnoverRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "pure",
      "xsiNil": "false"
     }
    },
    "S1": {
     "firstAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:ProspectusDate",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "true",
     "longName": "000000124 - Disclosure - Document and Entity Information",
     "section": 0,
     "shortName": "Document and Entity Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:ProspectusDate",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S10": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006898Member_S000006898Summary28Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000113439 - Disclosure - Prospectus Summary, MainStay MacKay Tax Free Bond Fund",
     "section": 9,
     "shortName": "Prospectus Summary, MainStay MacKay Tax Free Bond Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006898Member_S000006898Summary28Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S11": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006897Member_S000006897Summary29Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000115115 - Disclosure - Prospectus Summary, MainStay Money Market Fund",
     "section": 10,
     "shortName": "Prospectus Summary, MainStay Money Market Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006897Member_S000006897Summary29Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S12": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006900Member_S000006900Summary30Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000116383 - Disclosure - Prospectus Summary, MainStay Income Builder Fund",
     "section": 11,
     "shortName": "Prospectus Summary, MainStay Income Builder Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006900Member_S000006900Summary30Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S13": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006899Member_S000006899Summary31Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000118217 - Disclosure - Prospectus Summary, MainStay MacKay Convertible Fund",
     "section": 12,
     "shortName": "Prospectus Summary, MainStay MacKay Convertible Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006899Member_S000006899Summary31Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S14": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006901Member_S000006901Summary32Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000177729 - Disclosure - Prospectus Summary, MainStay Candriam Emerging Markets Debt Fund",
     "section": 13,
     "shortName": "Prospectus Summary, MainStay Candriam Emerging Markets Debt Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006901Member_S000006901Summary32Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S15": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006896Member_S000006896Summary34Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000180519 - Disclosure - Prospectus Summary, MainStay MacKay High Yield Corporate Bond Fund",
     "section": 14,
     "shortName": "Prospectus Summary, MainStay MacKay High Yield Corporate Bond Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006896Member_S000006896Summary34Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S16": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006894Member_S000006894Summary36Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000183526 - Disclosure - Prospectus Summary, MainStay MacKay Strategic Bond Fund",
     "section": 15,
     "shortName": "Prospectus Summary, MainStay MacKay Strategic Bond Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006894Member_S000006894Summary36Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S17": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006895Member_S000006895Summary38Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000187432 - Disclosure - Prospectus Summary, MainStay MacKay U.S. Infrastructure Bond Fund",
     "section": 16,
     "shortName": "Prospectus Summary, MainStay MacKay U.S. Infrastructure Bond Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006895Member_S000006895Summary38Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S18": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006898Member_S000006898Summary43Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000193700 - Disclosure - Prospectus Summary, MainStay MacKay Tax Free Bond Fund",
     "section": 17,
     "shortName": "Prospectus Summary, MainStay MacKay Tax Free Bond Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006898Member_S000006898Summary43Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S19": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006897Member_S000006897Summary44Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000195276 - Disclosure - Prospectus Summary, MainStay Money Market Fund",
     "section": 18,
     "shortName": "Prospectus Summary, MainStay Money Market Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006897Member_S000006897Summary44Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S2": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006905Member_S000006905Summary3Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000003473 - Disclosure - Prospectus Summary, MainStay Winslow Large Cap Growth Fund",
     "section": 1,
     "shortName": "Prospectus Summary, MainStay Winslow Large Cap Growth Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006905Member_S000006905Summary3Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S20": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006900Member_S000006900Summary45Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000196427 - Disclosure - Prospectus Summary, MainStay Income Builder Fund",
     "section": 19,
     "shortName": "Prospectus Summary, MainStay Income Builder Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006900Member_S000006900Summary45Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S21": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006899Member_S000006899Summary46Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000198260 - Disclosure - Prospectus Summary, MainStay MacKay Convertible Fund",
     "section": 20,
     "shortName": "Prospectus Summary, MainStay MacKay Convertible Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006899Member_S000006899Summary46Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S3": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006902Member_S000006902Summary5Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000007145 - Disclosure - Prospectus Summary, MainStay MacKay International Equity Fund",
     "section": 2,
     "shortName": "Prospectus Summary, MainStay MacKay International Equity Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006902Member_S000006902Summary5Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S4": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006905Member_S000006905Summary11Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000051504 - Disclosure - Prospectus Summary, MainStay Winslow Large Cap Growth Fund",
     "section": 3,
     "shortName": "Prospectus Summary, MainStay Winslow Large Cap Growth Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006905Member_S000006905Summary11Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S5": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006902Member_S000006902Summary13Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000055072 - Disclosure - Prospectus Summary, MainStay MacKay International Equity Fund",
     "section": 4,
     "shortName": "Prospectus Summary, MainStay MacKay International Equity Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006902Member_S000006902Summary13Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S6": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006901Member_S000006901Summary17Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000096434 - Disclosure - Prospectus Summary, MainStay Candriam Emerging Markets Debt Fund",
     "section": 5,
     "shortName": "Prospectus Summary, MainStay Candriam Emerging Markets Debt Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006901Member_S000006901Summary17Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S7": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006896Member_S000006896Summary19Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000099459 - Disclosure - Prospectus Summary, MainStay MacKay High Yield Corporate Bond Fund",
     "section": 6,
     "shortName": "Prospectus Summary, MainStay MacKay High Yield Corporate Bond Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006896Member_S000006896Summary19Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S8": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006894Member_S000006894Summary21Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000102648 - Disclosure - Prospectus Summary, MainStay MacKay Strategic Bond Fund",
     "section": 7,
     "shortName": "Prospectus Summary, MainStay MacKay Strategic Bond Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006894Member_S000006894Summary21Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S9": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006895Member_S000006895Summary23Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000106682 - Disclosure - Prospectus Summary, MainStay MacKay U.S. Infrastructure Bond Fund",
     "section": 8,
     "shortName": "Prospectus Summary, MainStay MacKay U.S. Infrastructure Bond Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "c485bpos.htm",
      "contextRef": "Context_S000006895Member_S000006895Summary23Member",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 140,
   "tag": {
    "cik0000787441_AverageLipperMoneyMarketFundMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Average Lipper Money Market Fund",
        "label": "cik0000787441_AverageLipperMoneyMarketFundMember [Member]",
        "terseLabel": "Average Lipper Money Market Fund"
       }
      }
     },
     "localname": "AverageLipperMoneyMarketFundMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_BlendedBenchmarkIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Blended Benchmark Index",
        "label": "cik0000787441_BlendedBenchmarkIndexMember [Member]",
        "terseLabel": "Blended Benchmark Index"
       }
      }
     },
     "localname": "BlendedBenchmarkIndexMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_Bloomberg5-10YearTaxableMunicipalBondIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bloomberg 5-10 Year Taxable Municipal Bond Index",
        "label": "cik0000787441_Bloomberg5-10YearTaxableMunicipalBondIndexMember [Member]",
        "terseLabel": "Bloomberg 5-10 Year Taxable Municipal Bond Index"
       }
      }
     },
     "localname": "Bloomberg5-10YearTaxableMunicipalBondIndexMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_BloombergMunicipalBondIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bloomberg Municipal Bond Index",
        "label": "cik0000787441_BloombergMunicipalBondIndexMember [Member]",
        "terseLabel": "Bloomberg Municipal Bond Index"
       }
      }
     },
     "localname": "BloombergMunicipalBondIndexMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_BloombergUSAggregateBondIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bloomberg U.S. Aggregate Bond Index",
        "label": "cik0000787441_BloombergUSAggregateBondIndexMember [Member]",
        "terseLabel": "Bloomberg U.S. Aggregate Bond Index"
       }
      }
     },
     "localname": "BloombergUSAggregateBondIndexMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018685Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class A",
        "label": "C 000018685 [Member]",
        "terseLabel": "Class A"
       }
      }
     },
     "localname": "C000018685Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018686Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class B",
        "label": "C 000018686 [Member]",
        "terseLabel": "Class B"
       }
      }
     },
     "localname": "C000018686Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule119",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule55",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018687Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class C",
        "label": "C 000018687 [Member]",
        "terseLabel": "Class C"
       }
      }
     },
     "localname": "C000018687Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule119",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule55",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018688Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class I",
        "label": "C 000018688 [Member]",
        "terseLabel": "Class I"
       }
      }
     },
     "localname": "C000018688Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018689Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class A",
        "label": "C 000018689 [Member]",
        "terseLabel": "Class A"
       }
      }
     },
     "localname": "C000018689Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018690Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class B",
        "label": "C 000018690 [Member]",
        "terseLabel": "Class B"
       }
      }
     },
     "localname": "C000018690Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule127",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule63",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018691Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class C",
        "label": "C 000018691 [Member]",
        "terseLabel": "Class C"
       }
      }
     },
     "localname": "C000018691Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule127",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule63",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018692Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class I",
        "label": "C 000018692 [Member]",
        "terseLabel": "Class I"
       }
      }
     },
     "localname": "C000018692Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018693Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class A",
        "label": "C 000018693 [Member]",
        "terseLabel": "Class A"
       }
      }
     },
     "localname": "C000018693Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018694Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class B",
        "label": "C 000018694 [Member]",
        "terseLabel": "Class B"
       }
      }
     },
     "localname": "C000018694Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule111",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule47",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018695Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class C",
        "label": "C 000018695 [Member]",
        "terseLabel": "Class C"
       }
      }
     },
     "localname": "C000018695Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule111",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule47",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018696Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class I",
        "label": "C 000018696 [Member]",
        "terseLabel": "Class I"
       }
      }
     },
     "localname": "C000018696Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018697Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class A",
        "label": "C 000018697 [Member]",
        "terseLabel": "Class A"
       }
      }
     },
     "localname": "C000018697Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule140",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018698Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class B",
        "label": "C 000018698 [Member]",
        "terseLabel": "Class B"
       }
      }
     },
     "localname": "C000018698Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule140",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule143",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule79",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018699Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class C",
        "label": "C 000018699 [Member]",
        "terseLabel": "Class C"
       }
      }
     },
     "localname": "C000018699Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule140",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule143",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule79",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018700Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class A",
        "label": "C 000018700 [Member]",
        "terseLabel": "Class A"
       }
      }
     },
     "localname": "C000018700Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018701Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class B",
        "label": "C 000018701 [Member]",
        "terseLabel": "Class B"
       }
      }
     },
     "localname": "C000018701Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule135",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule71",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018702Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class C",
        "label": "C 000018702 [Member]",
        "terseLabel": "Class C"
       }
      }
     },
     "localname": "C000018702Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule135",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule71",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018703Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class A",
        "label": "C 000018703 [Member]",
        "terseLabel": "Class A"
       }
      }
     },
     "localname": "C000018703Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule156",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018704Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class B",
        "label": "C 000018704 [Member]",
        "terseLabel": "Class B"
       }
      }
     },
     "localname": "C000018704Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule156",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule159",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule95",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018705Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class C",
        "label": "C 000018705 [Member]",
        "terseLabel": "Class C"
       }
      }
     },
     "localname": "C000018705Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule156",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule159",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule95",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018706Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class A",
        "label": "C 000018706 [Member]",
        "terseLabel": "Class A"
       }
      }
     },
     "localname": "C000018706Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018707Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class B",
        "label": "C 000018707 [Member]",
        "terseLabel": "Class B"
       }
      }
     },
     "localname": "C000018707Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule151",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule87",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018708Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class C",
        "label": "C 000018708 [Member]",
        "terseLabel": "Class C"
       }
      }
     },
     "localname": "C000018708Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule151",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule87",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018709Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class I",
        "label": "C 000018709 [Member]",
        "terseLabel": "Class I"
       }
      }
     },
     "localname": "C000018709Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018710Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class A",
        "label": "C 000018710 [Member]",
        "terseLabel": "Class A"
       }
      }
     },
     "localname": "C000018710Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule100",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018711Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class B",
        "label": "C 000018711 [Member]",
        "terseLabel": "Class B"
       }
      }
     },
     "localname": "C000018711Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule100",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule103",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule39",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018712Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class C",
        "label": "C 000018712 [Member]",
        "terseLabel": "Class C"
       }
      }
     },
     "localname": "C000018712Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule100",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule103",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule39",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018713Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class A",
        "label": "C 000018713 [Member]",
        "terseLabel": "Class A"
       }
      }
     },
     "localname": "C000018713Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018714Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class B",
        "label": "C 000018714 [Member]",
        "terseLabel": "Class B"
       }
      }
     },
     "localname": "C000018714Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule15",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule31",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018715Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class C",
        "label": "C 000018715 [Member]",
        "terseLabel": "Class C"
       }
      }
     },
     "localname": "C000018715Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule15",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule31",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018716Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class I",
        "label": "C 000018716 [Member]",
        "terseLabel": "Class I"
       }
      }
     },
     "localname": "C000018716Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018717Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R1",
        "label": "C 000018717 [Member]",
        "terseLabel": "Class R1"
       }
      }
     },
     "localname": "C000018717Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018718Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R2",
        "label": "C 000018718 [Member]",
        "terseLabel": "Class R2"
       }
      }
     },
     "localname": "C000018718Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018724Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class A",
        "label": "C 000018724 [Member]",
        "terseLabel": "Class A"
       }
      }
     },
     "localname": "C000018724Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018725Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class B",
        "label": "C 000018725 [Member]",
        "terseLabel": "Class B"
       }
      }
     },
     "localname": "C000018725Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule23",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule7",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018726Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class C",
        "label": "C 000018726 [Member]",
        "terseLabel": "Class C"
       }
      }
     },
     "localname": "C000018726Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule23",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule7",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018727Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class I",
        "label": "C 000018727 [Member]",
        "terseLabel": "Class I"
       }
      }
     },
     "localname": "C000018727Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018728Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R1",
        "label": "C 000018728 [Member]",
        "terseLabel": "Class R1"
       }
      }
     },
     "localname": "C000018728Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000018729Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R2",
        "label": "C 000018729 [Member]",
        "terseLabel": "Class R2"
       }
      }
     },
     "localname": "C000018729Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000030957Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R3",
        "label": "C 000030957 [Member]",
        "terseLabel": "Class R3"
       }
      }
     },
     "localname": "C000030957Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000030958Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R3",
        "label": "C 000030958 [Member]",
        "terseLabel": "Class R3"
       }
      }
     },
     "localname": "C000030958Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000052120Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class I",
        "label": "C 000052120 [Member]",
        "terseLabel": "Class I"
       }
      }
     },
     "localname": "C000052120Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule100",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000057099Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R2",
        "label": "C 000057099 [Member]",
        "terseLabel": "Class R2"
       }
      }
     },
     "localname": "C000057099Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000060790Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "INVESTOR CLASS",
        "label": "C 000060790 [Member]",
        "terseLabel": "INVESTOR CLASS"
       }
      }
     },
     "localname": "C000060790Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000060791Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "INVESTOR CLASS",
        "label": "C 000060791 [Member]",
        "terseLabel": "INVESTOR CLASS"
       }
      }
     },
     "localname": "C000060791Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000060792Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "INVESTOR CLASS",
        "label": "C 000060792 [Member]",
        "terseLabel": "INVESTOR CLASS"
       }
      }
     },
     "localname": "C000060792Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000060793Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "INVESTOR CLASS",
        "label": "C 000060793 [Member]",
        "terseLabel": "INVESTOR CLASS"
       }
      }
     },
     "localname": "C000060793Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule140",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000060794Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "INVESTOR CLASS",
        "label": "C 000060794 [Member]",
        "terseLabel": "INVESTOR CLASS"
       }
      }
     },
     "localname": "C000060794Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000060795Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "INVESTOR CLASS",
        "label": "C 000060795 [Member]",
        "terseLabel": "INVESTOR CLASS"
       }
      }
     },
     "localname": "C000060795Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule156",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000060796Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "INVESTOR CLASS",
        "label": "C 000060796 [Member]",
        "terseLabel": "INVESTOR CLASS"
       }
      }
     },
     "localname": "C000060796Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000060797Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "INVESTOR CLASS",
        "label": "C 000060797 [Member]",
        "terseLabel": "INVESTOR CLASS"
       }
      }
     },
     "localname": "C000060797Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule100",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000060798Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "INVESTOR CLASS",
        "label": "C 000060798 [Member]",
        "terseLabel": "INVESTOR CLASS"
       }
      }
     },
     "localname": "C000060798Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000060800Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "INVESTOR CLASS",
        "label": "C 000060800 [Member]",
        "terseLabel": "INVESTOR CLASS"
       }
      }
     },
     "localname": "C000060800Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000082082Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class I",
        "label": "C 000082082 [Member]",
        "terseLabel": "Class I"
       }
      }
     },
     "localname": "C000082082Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000087595Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class I",
        "label": "C 000087595 [Member]",
        "terseLabel": "Class I"
       }
      }
     },
     "localname": "C000087595Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule156",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000116272Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R1",
        "label": "C 000116272 [Member]",
        "terseLabel": "Class R1"
       }
      }
     },
     "localname": "C000116272Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000127160Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R6",
        "label": "C 000127160 [Member]",
        "terseLabel": "Class R6"
       }
      }
     },
     "localname": "C000127160Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000127162Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R6",
        "label": "C 000127162 [Member]",
        "terseLabel": "Class R6"
       }
      }
     },
     "localname": "C000127162Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000138226Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R2",
        "label": "C 000138226 [Member]",
        "terseLabel": "Class R2"
       }
      }
     },
     "localname": "C000138226Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000153007Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R2",
        "label": "C 000153007 [Member]",
        "terseLabel": "Class R2"
       }
      }
     },
     "localname": "C000153007Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000166834Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R3",
        "label": "C 000166834 [Member]",
        "terseLabel": "Class R3"
       }
      }
     },
     "localname": "C000166834Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000166835Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R3",
        "label": "C 000166835 [Member]",
        "terseLabel": "Class R3"
       }
      }
     },
     "localname": "C000166835Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000166836Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R3",
        "label": "C 000166836 [Member]",
        "terseLabel": "Class R3"
       }
      }
     },
     "localname": "C000166836Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000185554Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R6",
        "label": "C 000185554 [Member]",
        "terseLabel": "Class R6"
       }
      }
     },
     "localname": "C000185554Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000185556Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R6",
        "label": "C 000185556 [Member]",
        "terseLabel": "Class R6"
       }
      }
     },
     "localname": "C000185556Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000185560Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R6",
        "label": "C 000185560 [Member]",
        "terseLabel": "Class R6"
       }
      }
     },
     "localname": "C000185560Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000185563Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R6",
        "label": "C 000185563 [Member]",
        "terseLabel": "Class R6"
       }
      }
     },
     "localname": "C000185563Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000185564Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R6",
        "label": "C 000185564 [Member]",
        "terseLabel": "Class R6"
       }
      }
     },
     "localname": "C000185564Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000185566Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R6",
        "label": "C 000185566 [Member]",
        "terseLabel": "Class R6"
       }
      }
     },
     "localname": "C000185566Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000185568Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R6",
        "label": "C 000185568 [Member]",
        "terseLabel": "Class R6"
       }
      }
     },
     "localname": "C000185568Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000218293Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class R6",
        "label": "C 000218293 [Member]",
        "terseLabel": "Class R6"
       }
      }
     },
     "localname": "C000218293Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000221689Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SIMPLE CLASS",
        "label": "C 000221689 [Member]",
        "terseLabel": "SIMPLE CLASS"
       }
      }
     },
     "localname": "C000221689Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000221690Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SIMPLE CLASS",
        "label": "C 000221690 [Member]",
        "terseLabel": "SIMPLE CLASS"
       }
      }
     },
     "localname": "C000221690Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000221691Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SIMPLE CLASS",
        "label": "C 000221691 [Member]",
        "terseLabel": "SIMPLE CLASS"
       }
      }
     },
     "localname": "C000221691Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000221692Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SIMPLE CLASS",
        "label": "C 000221692 [Member]",
        "terseLabel": "SIMPLE CLASS"
       }
      }
     },
     "localname": "C000221692Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule140",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000221693Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class C2",
        "label": "C 000221693 [Member]",
        "terseLabel": "Class C2"
       }
      }
     },
     "localname": "C000221693Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule135",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule71",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000221694Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SIMPLE CLASS",
        "label": "C 000221694 [Member]",
        "terseLabel": "SIMPLE CLASS"
       }
      }
     },
     "localname": "C000221694Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000221695Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SIMPLE CLASS",
        "label": "C 000221695 [Member]",
        "terseLabel": "SIMPLE CLASS"
       }
      }
     },
     "localname": "C000221695Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000221696Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SIMPLE CLASS",
        "label": "C 000221696 [Member]",
        "terseLabel": "SIMPLE CLASS"
       }
      }
     },
     "localname": "C000221696Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000221697Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SIMPLE CLASS",
        "label": "C 000221697 [Member]",
        "terseLabel": "SIMPLE CLASS"
       }
      }
     },
     "localname": "C000221697Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000221698Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SIMPLE CLASS",
        "label": "C 000221698 [Member]",
        "terseLabel": "SIMPLE CLASS"
       }
      }
     },
     "localname": "C000221698Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_C000221700Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "SIMPLE CLASS",
        "label": "C 000221700 [Member]",
        "terseLabel": "SIMPLE CLASS"
       }
      }
     },
     "localname": "C000221700Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_ICEBofAUSConvertibleIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ICE BofA U.S. Convertible Index",
        "label": "cik0000787441_ICEBofAUSConvertibleIndexMember [Member]",
        "terseLabel": "ICE BofA U.S. Convertible Index"
       }
      }
     },
     "localname": "ICEBofAUSConvertibleIndexMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_ICEBofAUSDollar3-MonthDepositOfferedRateConstantMaturityIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ICE BofA U.S. Dollar 3-Month Deposit Offered Rate Constant Maturity Index",
        "label": "cik0000787441_ICEBofAUSDollar3-MonthDepositOfferedRateConstantMaturityIndexMember [Member]",
        "terseLabel": "ICE BofA U.S. Dollar 3-Month Deposit Offered Rate Constant Maturity Index"
       }
      }
     },
     "localname": "ICEBofAUSDollar3-MonthDepositOfferedRateConstantMaturityIndexMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_ICEBofAUSHighYieldConstrainedIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ICE BofA U.S. High Yield Constrained Index",
        "label": "cik0000787441_ICEBofAUSHighYieldConstrainedIndexMember [Member]",
        "terseLabel": "ICE BofA U.S. High Yield Constrained Index"
       }
      }
     },
     "localname": "ICEBofAUSHighYieldConstrainedIndexMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_JPMorganEMBIGlobalDiversifiedIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "JPMorgan EMBI Global Diversified Index",
        "label": "cik0000787441_JPMorganEMBIGlobalDiversifiedIndexMember [Member]",
        "terseLabel": "JPMorgan EMBI Global Diversified Index"
       }
      }
     },
     "localname": "JPMorganEMBIGlobalDiversifiedIndexMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_MSCIACWIExUSIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MSCI ACWI\u00ae Ex. U.S. Index",
        "label": "cik0000787441_MSCIACWIExUSIndexMember [Member]",
        "terseLabel": "MSCI ACWI\u00ae Ex. U.S. Index"
       }
      }
     },
     "localname": "MSCIACWIExUSIndexMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_MSCIEAFEIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MSCI EAFE Index\u00ae",
        "label": "cik0000787441_MSCIEAFEIndexMember [Member]",
        "terseLabel": "MSCI EAFE Index\u00ae"
       }
      }
     },
     "localname": "MSCIEAFEIndexMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_MSCIWorldIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MSCI World Index",
        "label": "cik0000787441_MSCIWorldIndexMember [Member]",
        "terseLabel": "MSCI World Index"
       }
      }
     },
     "localname": "MSCIWorldIndexMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_MorningstarNontraditionalBondCategoryAverageMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Morningstar Nontraditional Bond Category Average",
        "label": "cik0000787441_MorningstarNontraditionalBondCategoryAverageMember [Member]",
        "terseLabel": "Morningstar Nontraditional Bond Category Average"
       }
      }
     },
     "localname": "MorningstarNontraditionalBondCategoryAverageMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_Russell1000GrowthIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Russell 1000\u00ae Growth Index",
        "label": "cik0000787441_Russell1000GrowthIndexMember [Member]",
        "terseLabel": "Russell 1000\u00ae Growth Index"
       }
      }
     },
     "localname": "Russell1000GrowthIndexMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006894Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MainStay MacKay Strategic Bond Fund",
        "label": "S 000006894 [Member]",
        "terseLabel": "MainStay MacKay Strategic Bond Fund"
       }
      }
     },
     "localname": "S000006894Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule119",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule55",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006894Summary21Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006894 Summary21 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006894Summary21Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule55",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006894Summary36Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006894 Summary36 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006894Summary36Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule119",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006894SummaryMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006894 Summary [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006894SummaryMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006895Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MainStay MacKay U.S. Infrastructure Bond Fund",
        "label": "S 000006895 [Member]",
        "terseLabel": "MainStay MacKay U.S. Infrastructure Bond Fund"
       }
      }
     },
     "localname": "S000006895Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule127",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule63",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006895Summary23Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006895 Summary23 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006895Summary23Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule63",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006895Summary38Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006895 Summary38 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006895Summary38Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule127",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006895SummaryMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006895 Summary [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006895SummaryMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006896Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MainStay MacKay High Yield Corporate Bond Fund",
        "label": "S 000006896 [Member]",
        "terseLabel": "MainStay MacKay High Yield Corporate Bond Fund"
       }
      }
     },
     "localname": "S000006896Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule111",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule47",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006896Summary19Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006896 Summary19 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006896Summary19Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule47",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006896Summary34Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006896 Summary34 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006896Summary34Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule111",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006896SummaryMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006896 Summary [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006896SummaryMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006897Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MainStay Money Market Fund",
        "label": "S 000006897 [Member]",
        "terseLabel": "MainStay Money Market Fund"
       }
      }
     },
     "localname": "S000006897Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule140",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule143",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule79",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006897Summary29Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006897 Summary29 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006897Summary29Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule79",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006897Summary44Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006897 Summary44 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006897Summary44Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule140",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule143",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006897SummaryMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006897 Summary [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006897SummaryMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006898Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MainStay MacKay Tax Free Bond Fund",
        "label": "S 000006898 [Member]",
        "terseLabel": "MainStay MacKay Tax Free Bond Fund"
       }
      }
     },
     "localname": "S000006898Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule135",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule71",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006898Summary28Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006898 Summary28 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006898Summary28Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule71",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006898Summary43Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006898 Summary43 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006898Summary43Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule135",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006898SummaryMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006898 Summary [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006898SummaryMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006899Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MainStay MacKay Convertible Fund",
        "label": "S 000006899 [Member]",
        "terseLabel": "MainStay MacKay Convertible Fund"
       }
      }
     },
     "localname": "S000006899Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule156",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule159",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule95",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006899Summary31Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006899 Summary31 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006899Summary31Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule95",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006899Summary46Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006899 Summary46 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006899Summary46Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule156",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule159",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006899SummaryMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006899 Summary [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006899SummaryMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006900Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MainStay Income Builder Fund",
        "label": "S 000006900 [Member]",
        "terseLabel": "MainStay Income Builder Fund"
       }
      }
     },
     "localname": "S000006900Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule151",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule87",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006900Summary30Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006900 Summary30 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006900Summary30Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule87",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006900Summary45Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006900 Summary45 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006900Summary45Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule151",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006900SummaryMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006900 Summary [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006900SummaryMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006901Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MainStay Candriam Emerging Markets Debt Fund",
        "label": "S 000006901 [Member]",
        "terseLabel": "MainStay Candriam Emerging Markets Debt Fund"
       }
      }
     },
     "localname": "S000006901Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule100",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule103",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule39",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006901Summary17Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006901 Summary17 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006901Summary17Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule39",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006901Summary32Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006901 Summary32 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006901Summary32Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule100",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule103",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006901SummaryMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006901 Summary [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006901SummaryMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006902Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MainStay MacKay International Equity Fund",
        "label": "S 000006902 [Member]",
        "terseLabel": "MainStay MacKay International Equity Fund"
       }
      }
     },
     "localname": "S000006902Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule15",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule31",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006902Summary13Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006902 Summary13 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006902Summary13Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule31",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006902Summary5Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006902 Summary5 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006902Summary5Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule15",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006902SummaryMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006902 Summary [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006902SummaryMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006905Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MainStay Winslow Large Cap Growth Fund",
        "label": "S 000006905 [Member]",
        "terseLabel": "MainStay Winslow Large Cap Growth Fund"
       }
      }
     },
     "localname": "S000006905Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule23",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule7",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006905Summary11Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006905 Summary11 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006905Summary11Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule23",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006905Summary3Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006905 Summary3 [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006905Summary3Member",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule7",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_S000006905SummaryMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Summary",
        "label": "S 000006905 Summary [Member]",
        "terseLabel": "Prospectus Summary"
       }
      }
     },
     "localname": "S000006905SummaryMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "domainItemType"
    },
    "cik0000787441_SP500IndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "S&amp;P 500\u00ae Index",
        "label": "cik0000787441_SP500IndexMember [Member]",
        "terseLabel": "S&amp;P 500\u00ae Index"
       }
      }
     },
     "localname": "SP500IndexMember",
     "nsuri": "http://www.mainstayinvestments.com/20211031",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9"
     ],
     "xbrltype": "domainItemType"
    },
    "dei_AmendmentFlag": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission.",
        "label": "Amendment Flag",
        "terseLabel": "Amendment Flag"
       }
      }
     },
     "localname": "AmendmentFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentCreationDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The date the document was made available and submitted, in YYYY-MM-DD format. The date of submission, date of acceptance by the recipient, and the document effective date are all potentially different.",
        "label": "Document Creation Date",
        "terseLabel": "Document Creation Date"
       }
      }
     },
     "localname": "DocumentCreationDate",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "dateItemType"
    },
    "dei_DocumentDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of the document as assigned by the filer, corresponding to SEC document naming convention standards.",
        "label": "Prospectus",
        "terseLabel": "Prospectus"
       }
      }
     },
     "localname": "DocumentDomain",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule100",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule103",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule111",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule119",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule127",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule135",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule140",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule143",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule15",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule151",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule156",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule159",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule23",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule31",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule39",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule47",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule55",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule63",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule7",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule71",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule79",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule87",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule95",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "domainItemType"
    },
    "dei_DocumentEffectiveDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The date when a document, upon receipt and acceptance, becomes officially effective, in YYYY-MM-DD format. Usually it is a system-assigned date time value, but it may be declared by the submitter in some cases.",
        "label": "Document Effective Date",
        "terseLabel": "Document Effective Date"
       }
      }
     },
     "localname": "DocumentEffectiveDate",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "dateItemType"
    },
    "dei_DocumentInformationDocumentAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the domain members or categories in the table and the line items or concepts that complete the table.",
        "label": "Document [Axis]",
        "terseLabel": "Document [Axis]"
       }
      }
     },
     "localname": "DocumentInformationDocumentAxis",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule100",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule103",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule111",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule119",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule127",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule135",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule140",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule143",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule15",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule151",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule156",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule159",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule23",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule31",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule39",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule47",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule55",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule63",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule7",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule71",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule79",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule87",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule95",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "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 YYYY-MM-DD.",
        "label": "Document Period End Date",
        "terseLabel": "Document Period End Date"
       }
      }
     },
     "localname": "DocumentPeriodEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "submissionTypeItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r48"
     ],
     "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/2020-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "centralIndexKeyItemType"
    },
    "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."
       }
      }
     },
     "localname": "EntityDomain",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule100",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule103",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule111",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule119",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule127",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule135",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule140",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule143",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule15",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule151",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule156",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule159",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule23",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule31",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule39",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule47",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule55",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule63",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule7",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule71",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule79",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule87",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule95",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "domainItemType"
    },
    "dei_EntityInvCompanyType": {
     "auth_ref": [
      "r49"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "One of: N-1A (Mutual Fund), N-1 (Open-End Separate Account with No Variable Annuities), N-2 (Closed-End Investment Company), N-3 (Separate Account Registered as Open-End Management Investment Company), N-4 (Variable Annuity UIT Separate Account), N-5 (Small Business Investment Company), N-6 (Variable Life UIT Separate Account), S-1 or S-3 (Face Amount Certificate Company), S-6 (UIT, Non-Insurance Product).",
        "label": "EntityInvCompanyType",
        "terseLabel": "EntityInvCompanyType"
       }
      }
     },
     "localname": "EntityInvCompanyType",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "invCompanyType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r48"
     ],
     "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": "Registrant Name",
        "terseLabel": "Registrant Name"
       }
      }
     },
     "localname": "EntityRegistrantName",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_LegalEntityAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The set of legal entities associated with a report.",
        "label": "Series [Axis]",
        "terseLabel": "Series [Axis]"
       }
      }
     },
     "localname": "LegalEntityAxis",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule100",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule103",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule111",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule119",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule127",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule135",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule140",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule143",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule15",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule151",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule156",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule159",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule23",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule31",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule39",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule47",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule55",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule63",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule7",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule71",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule79",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule87",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule95",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "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/2020-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "tradingSymbolItemType"
    },
    "rr_AcquiredFundFeesAndExpensesOverAssets": {
     "auth_ref": [
      "r24"
     ],
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "order": 5.0,
       "parentTag": "rr_ExpensesOverAssets",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Annual Fund Operating Expenses."
       }
      }
     },
     "localname": "AcquiredFundFeesAndExpensesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_AfterTaxesOnDistributionsAndSalesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Calculate the taxes due on any distributions by the Fund by applying the tax rates specified in Instruction 4 to each component of the distributions on the reinvestment date (e.g., ordinary income, short-term capital gain, long-term capital gain). The taxable amount and tax character of each distribution should be as specified by the Fund on the dividend declaration date, but may be adjusted to reflect subsequent recharacterizations of distributions. Distributions should be adjusted to reflect the federal tax impact the distribution would have on an individual taxpayer on the reinvestment date. For example, assume no taxes are due on the portion of any distribution that would not result in federal income tax on an individual, e.g., tax-exempt interest or non-taxable returns of capital. The effect of applicable tax credits, such as the foreign tax credit, should be taken into account in accordance with federal tax law.",
        "label": "After Taxes on Distributions and Sales",
        "terseLabel": "After Taxes on Distributions and Sales"
       }
      }
     },
     "localname": "AfterTaxesOnDistributionsAndSalesMember",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "domainItemType"
    },
    "rr_AfterTaxesOnDistributionsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Calculate the taxes due on any distributions by the Fund by applying the tax rates specified in Instruction 4 to each component of the distributions on the reinvestment date (e.g., ordinary income, short-term capital gain, long-term capital gain). The taxable amount and tax character of each distribution should be as specified by the Fund on the dividend declaration date, but may be adjusted to reflect subsequent recharacterizations of distributions. Distributions should be adjusted to reflect the federal tax impact the distribution would have on an individual taxpayer on the reinvestment date. For example, assume no taxes are due on the portion of any distribution that would not result in federal income tax on an individual, e.g., tax-exempt interest or non-taxable returns of capital. The effect of applicable tax credits, such as the foreign tax credit, should be taken into account in accordance with federal tax law.",
        "label": "After Taxes on Distributions",
        "terseLabel": "After Taxes on Distributions"
       }
      }
     },
     "localname": "AfterTaxesOnDistributionsMember",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "domainItemType"
    },
    "rr_AnnualFundOperatingExpensesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contains a command for the SEC Viewer for the role corresponding to OperatingExpensesData.",
        "label": "Annual Fund Operating Expenses [Table]",
        "terseLabel": "Annual Fund Operating Expenses [Table]"
       }
      }
     },
     "localname": "AnnualFundOperatingExpensesTableTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_AnnualReturn2012": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.  When a Multiple Class Fund offers more than one Class in the prospectus, provide annual total returns in the bar chart for only one of those Classes. The Fund can select which Class to include (e.g., the oldest Class, the Class with the greatest net assets).",
        "label": "Annual Return 2012",
        "terseLabel": "Annual Return 2012"
       }
      }
     },
     "localname": "AnnualReturn2012",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2013": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.  When a Multiple Class Fund offers more than one Class in the prospectus, provide annual total returns in the bar chart for only one of those Classes. The Fund can select which Class to include (e.g., the oldest Class, the Class with the greatest net assets).",
        "label": "Annual Return 2013",
        "terseLabel": "Annual Return 2013"
       }
      }
     },
     "localname": "AnnualReturn2013",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2014": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.  When a Multiple Class Fund offers more than one Class in the prospectus, provide annual total returns in the bar chart for only one of those Classes. The Fund can select which Class to include (e.g., the oldest Class, the Class with the greatest net assets).",
        "label": "Annual Return 2014",
        "terseLabel": "Annual Return 2014"
       }
      }
     },
     "localname": "AnnualReturn2014",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2015": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.  When a Multiple Class Fund offers more than one Class in the prospectus, provide annual total returns in the bar chart for only one of those Classes. The Fund can select which Class to include (e.g., the oldest Class, the Class with the greatest net assets).",
        "label": "Annual Return 2015",
        "terseLabel": "Annual Return 2015"
       }
      }
     },
     "localname": "AnnualReturn2015",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2016": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.  When a Multiple Class Fund offers more than one Class in the prospectus, provide annual total returns in the bar chart for only one of those Classes. The Fund can select which Class to include (e.g., the oldest Class, the Class with the greatest net assets).",
        "label": "Annual Return 2016",
        "terseLabel": "Annual Return 2016"
       }
      }
     },
     "localname": "AnnualReturn2016",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2017": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.  When a Multiple Class Fund offers more than one Class in the prospectus, provide annual total returns in the bar chart for only one of those Classes. The Fund can select which Class to include (e.g., the oldest Class, the Class with the greatest net assets).",
        "label": "Annual Return 2017",
        "terseLabel": "Annual Return 2017"
       }
      }
     },
     "localname": "AnnualReturn2017",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2018": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.  When a Multiple Class Fund offers more than one Class in the prospectus, provide annual total returns in the bar chart for only one of those Classes. The Fund can select which Class to include (e.g., the oldest Class, the Class with the greatest net assets).",
        "label": "Annual Return 2018",
        "terseLabel": "Annual Return 2018"
       }
      }
     },
     "localname": "AnnualReturn2018",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2019": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.  When a Multiple Class Fund offers more than one Class in the prospectus, provide annual total returns in the bar chart for only one of those Classes. The Fund can select which Class to include (e.g., the oldest Class, the Class with the greatest net assets).",
        "label": "Annual Return 2019",
        "terseLabel": "Annual Return 2019"
       }
      }
     },
     "localname": "AnnualReturn2019",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2020": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.  When a Multiple Class Fund offers more than one Class in the prospectus, provide annual total returns in the bar chart for only one of those Classes. The Fund can select which Class to include (e.g., the oldest Class, the Class with the greatest net assets).",
        "label": "Annual Return 2020",
        "terseLabel": "Annual Return 2020"
       }
      }
     },
     "localname": "AnnualReturn2020",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2021": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.  When a Multiple Class Fund offers more than one Class in the prospectus, provide annual total returns in the bar chart for only one of those Classes. The Fund can select which Class to include (e.g., the oldest Class, the Class with the greatest net assets).",
        "label": "Annual Return 2021",
        "terseLabel": "Annual Return 2021"
       }
      }
     },
     "localname": "AnnualReturn2021",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AverageAnnualReturnInceptionDate": {
     "auth_ref": [
      "r43"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Return Before Taxes.",
        "label": "Inception Date",
        "terseLabel": "Inception Date"
       }
      }
     },
     "localname": "AverageAnnualReturnInceptionDate",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "dateItemType"
    },
    "rr_AverageAnnualReturnLabel": {
     "auth_ref": [
      "r40"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This item represents Average Annual Total Returns. If a Multiple Class Fund offers a Class in the prospectus that converts into another Class after a stated period, compute average annual total returns in the table by using the returns of the other Class for the period after conversion.",
        "label": "Label",
        "terseLabel": "Label"
       }
      }
     },
     "localname": "AverageAnnualReturnLabel",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_AverageAnnualReturnSinceInception": {
     "auth_ref": [
      "r40"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Return Before Taxes.",
        "label": "Since Inception",
        "terseLabel": "Since Inception"
       }
      }
     },
     "localname": "AverageAnnualReturnSinceInception",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AverageAnnualReturnYear01": {
     "auth_ref": [
      "r40"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Return Before Taxes.",
        "label": "1 Year",
        "terseLabel": "1 Year"
       }
      }
     },
     "localname": "AverageAnnualReturnYear01",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AverageAnnualReturnYear05": {
     "auth_ref": [
      "r40"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Return Before Taxes.",
        "label": "5 Years",
        "terseLabel": "5 Years"
       }
      }
     },
     "localname": "AverageAnnualReturnYear05",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AverageAnnualReturnYear10": {
     "auth_ref": [
      "r40"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Return Before Taxes.",
        "label": "10 Years",
        "terseLabel": "10 Years"
       }
      }
     },
     "localname": "AverageAnnualReturnYear10",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_BarChartAndPerformanceTableHeading": {
     "auth_ref": [
      "r36"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Risk/Return Bar Chart and Table.",
        "label": "Bar Chart and Performance Table [Heading]",
        "terseLabel": "Bar Chart and Performance Table [Heading]"
       }
      }
     },
     "localname": "BarChartAndPerformanceTableHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_BarChartClosingTextBlock": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.",
        "label": "Bar Chart Closing [Text Block]",
        "terseLabel": "Bar Chart Closing [Text Block]"
       }
      }
     },
     "localname": "BarChartClosingTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_BarChartDoesNotReflectSalesLoads": {
     "auth_ref": [
      "r37"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Include the bar chart and table required by Item 4 (b)(2)(ii) and (iii) of this section. Provide a brief explanation of how the information illustrates the variability of the Fund's returns (e.g., by stating that the information provides some indication of the risks of investing in the Fund by showing changes in the Fund's performance from year to year and by showing how the Fund's average annual returns for 1, 5, and 10 years compare with those of a broad measure of market performance). Provide a statement to the effect that the Fund's past performance (before and after taxes) is not necessarily an indication of how the Fund will perform in the future.  Provide annual total returns beginning with the earliest calendar year. Calculate annual returns using the Instructions to Item 8(a), except that the calculations should be based on calendar years. If a Fund's shares are sold subject to a sales load or account fees, state that sales loads or account fees are not reflected in the bar chart and that, if these amounts were reflected, returns would be less than those shown.",
        "label": "Bar Chart Does Not Reflect Sales Loads [Text]",
        "terseLabel": "Bar Chart Does Not Reflect Sales Loads [Text]"
       }
      }
     },
     "localname": "BarChartDoesNotReflectSalesLoads",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_BarChartHeading": {
     "auth_ref": [
      "r36"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Risk/Return Bar Chart and Table.",
        "label": "Bar Chart [Heading]",
        "terseLabel": "Bar Chart [Heading]"
       }
      }
     },
     "localname": "BarChartHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_BarChartHighestQuarterlyReturn": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.",
        "label": "Highest Quarterly Return",
        "terseLabel": "Highest Quarterly Return"
       }
      }
     },
     "localname": "BarChartHighestQuarterlyReturn",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_BarChartHighestQuarterlyReturnDate": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.",
        "label": "Highest Quarterly Return, Date",
        "terseLabel": "Highest Quarterly Return, Date"
       }
      }
     },
     "localname": "BarChartHighestQuarterlyReturnDate",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "dateItemType"
    },
    "rr_BarChartLowestQuarterlyReturn": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.",
        "label": "Lowest Quarterly Return",
        "terseLabel": "Lowest Quarterly Return"
       }
      }
     },
     "localname": "BarChartLowestQuarterlyReturn",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_BarChartLowestQuarterlyReturnDate": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.",
        "label": "Lowest Quarterly Return, Date",
        "terseLabel": "Lowest Quarterly Return, Date"
       }
      }
     },
     "localname": "BarChartLowestQuarterlyReturnDate",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "dateItemType"
    },
    "rr_BarChartTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contains a command for the SEC Viewer for the role corresponding to BarChartData.",
        "label": "Bar Chart [Table]",
        "terseLabel": "Bar Chart [Table]"
       }
      }
     },
     "localname": "BarChartTableTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_Component1OtherExpensesOverAssets": {
     "auth_ref": [
      "r15"
     ],
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "order": 1.0,
       "parentTag": "rr_OtherExpensesOverAssets",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Fund may subdivide this caption into no more than three subcaptions that identify the largest expense or expenses comprising \"Other Expenses,\" but must include a total of all \"Other Expenses.\" Alternatively, the Fund may include the components of \"Other Expenses\" in a parenthetical to the caption.",
        "label": "Interest Expense on Securities Sold Short"
       }
      }
     },
     "localname": "Component1OtherExpensesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53"
     ],
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_Component2OtherExpensesOverAssets": {
     "auth_ref": [
      "r23"
     ],
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "order": 2.0,
       "parentTag": "rr_OtherExpensesOverAssets",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Fund may subdivide this caption into no more than three subcaptions that identify the largest expense or expenses comprising \"Other Expenses,\" but must include a total of all \"Other Expenses.\" Alternatively, the Fund may include the components of \"Other Expenses\" in a parenthetical to the caption.",
        "label": "Broker Fees and Charges on Short Sales"
       }
      }
     },
     "localname": "Component2OtherExpensesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53"
     ],
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_Component3OtherExpensesOverAssets": {
     "auth_ref": [
      "r15"
     ],
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "order": 3.0,
       "parentTag": "rr_OtherExpensesOverAssets",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Fund may subdivide this caption into no more than three subcaptions that identify the largest expense or expenses comprising \"Other Expenses,\" but must include a total of all \"Other Expenses.\" Alternatively, the Fund may include the components of \"Other Expenses\" in a parenthetical to the caption.",
        "label": "Remainder of Other Expenses"
       }
      }
     },
     "localname": "Component3OtherExpensesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53"
     ],
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_DistributionAndService12b1FeesOverAssets": {
     "auth_ref": [
      "r26"
     ],
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "order": 2.0,
       "parentTag": "rr_ExpensesOverAssets",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Distribution [and/or Service] (12b-1) Fees\" include all distribution or other expenses incurred during the most recent fiscal year under a plan adopted pursuant to rule 12b-1 [17 CFR 270.12b-1]. Under an appropriate caption or a subcaption of \"Other Expenses,\" disclose the amount of any distribution or similar expenses deducted from the Fund's assets other than pursuant to a rule 12b-1 plan.",
        "label": "Distribution and/or Service (12b-1) Fees"
       }
      }
     },
     "localname": "DistributionAndService12b1FeesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93"
     ],
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_DistributionOrSimilarNon12b1FeesOverAssets": {
     "auth_ref": [
      "r13"
     ],
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "order": 3.0,
       "parentTag": "rr_ExpensesOverAssets",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Distribution [and/or Service] (12b-1) Fees\" include all distribution or other expenses incurred during the most recent fiscal year under a plan adopted pursuant to rule 12b-1 [17 CFR 270.12b-1]. Under an appropriate caption or a subcaption of \"Other Expenses,\" disclose the amount of any distribution or similar expenses deducted from the Fund's assets other than pursuant to a rule 12b-1 plan."
       }
      }
     },
     "localname": "DistributionOrSimilarNon12b1FeesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_ExpenseBreakpointDiscounts": {
     "auth_ref": [
      "r9"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Include the narrative explanations in the order indicated. A Fund may modify the narrative explanations if the explanation contains comparable information to that shown. The narrative explanation regarding sales charge discounts is only required by a Fund that offers such discounts and should specify the minimum level of investment required to qualify for a discount.",
        "label": "Expense Breakpoint Discounts [Text]",
        "terseLabel": "Expense Breakpoint Discounts [Text]"
       }
      }
     },
     "localname": "ExpenseBreakpointDiscounts",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_ExpenseBreakpointMinimumInvestmentRequiredAmount": {
     "auth_ref": [
      "r9"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the minimum level of investment required to qualify for discounted sales charges or fund expenses (SEC Form N-1A 2006-09-14 A.3.instructions.1.b).",
        "label": "Expense Breakpoint, Minimum Investment Required [Amount]",
        "terseLabel": "Expense Breakpoint, Minimum Investment Required [Amount]"
       }
      }
     },
     "localname": "ExpenseBreakpointMinimumInvestmentRequiredAmount",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "monetaryItemType"
    },
    "rr_ExpenseExampleByYearCaption": {
     "auth_ref": [
      "r6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Example assumes that you invest $10,000 in the Fund for the time periods indicated and then you redeem all of your shares at the end of those periods. The Example also assumes that your investment has a 5% return per year and that the Fund's operating expenses remained the same. Although your actual costs may be higher or lower.",
        "label": "Expense Example by, Year, Caption [Text]",
        "terseLabel": "Expense Example by, Year, Caption [Text]"
       }
      }
     },
     "localname": "ExpenseExampleByYearCaption",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_ExpenseExampleHeading": {
     "auth_ref": [
      "r18"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Heading for Expense Example.",
        "label": "Expense Example [Heading]",
        "terseLabel": "Expense Example [Heading]"
       }
      }
     },
     "localname": "ExpenseExampleHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_ExpenseExampleNarrativeTextBlock": {
     "auth_ref": [
      "r5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Example is intended to help you compare the cost of investing in the Fund with the cost of investing in other mutual funds.",
        "label": "Expense Example Narrative [Text Block]",
        "terseLabel": "Expense Example Narrative [Text Block]"
       }
      }
     },
     "localname": "ExpenseExampleNarrativeTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_ExpenseExampleNoRedemptionByYearCaption": {
     "auth_ref": [
      "r7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "You would pay the following expenses if you did not redeem your shares. Include the second 1-, 3-, 5-, and 10-year periods and related narrative explanation only if a sales charge (load) or other fee is charged upon redemption.",
        "label": "Expense Example, No Redemption, By Year, Caption [Text]",
        "terseLabel": "Expense Example, No Redemption, By Year, Caption [Text]"
       }
      }
     },
     "localname": "ExpenseExampleNoRedemptionByYearCaption",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_ExpenseExampleNoRedemptionTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contains a command for the SEC Viewer for the role corresponding to ExpenseExampleNoRedemption.",
        "label": "Expense Example, No Redemption [Table]",
        "terseLabel": "Expense Example, No Redemption [Table]"
       }
      }
     },
     "localname": "ExpenseExampleNoRedemptionTableTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_ExpenseExampleNoRedemptionYear01": {
     "auth_ref": [
      "r7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "You would pay the following expenses if you did not redeem your shares. Include the second 1-, 3-, 5-, and 10-year periods and related narrative explanation only if a sales charge (load) or other fee is charged upon redemption.",
        "label": "Expense Example, No Redemption, 1 Year",
        "terseLabel": "1 Year"
       }
      }
     },
     "localname": "ExpenseExampleNoRedemptionYear01",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule103",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule111",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule119",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule127",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule135",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule143",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule15",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule151",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule159",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule23",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule31",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule39",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule47",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule55",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule63",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule7",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule71",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule79",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule87",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule95"
     ],
     "xbrltype": "NonNegativeMonetaryType"
    },
    "rr_ExpenseExampleNoRedemptionYear03": {
     "auth_ref": [
      "r7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "You would pay the following expenses if you did not redeem your shares. Include the second 1-, 3-, 5-, and 10-year periods and related narrative explanation only if a sales charge (load) or other fee is charged upon redemption.",
        "label": "Expense Example, No Redemption, 3 Years",
        "terseLabel": "3 Years"
       }
      }
     },
     "localname": "ExpenseExampleNoRedemptionYear03",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule103",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule111",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule119",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule127",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule135",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule143",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule15",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule151",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule159",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule23",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule31",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule39",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule47",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule55",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule63",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule7",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule71",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule79",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule87",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule95"
     ],
     "xbrltype": "NonNegativeMonetaryType"
    },
    "rr_ExpenseExampleNoRedemptionYear05": {
     "auth_ref": [
      "r19"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "You would pay the following expenses if you did not redeem your shares. Include the second 1-, 3-, 5-, and 10-year periods and related narrative explanation only if a sales charge (load) or other fee is charged upon redemption.",
        "label": "Expense Example, No Redemption, 5 Years",
        "terseLabel": "5 Years"
       }
      }
     },
     "localname": "ExpenseExampleNoRedemptionYear05",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule103",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule111",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule119",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule127",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule135",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule143",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule15",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule151",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule159",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule23",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule31",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule39",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule47",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule55",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule63",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule7",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule71",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule79",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule87",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule95"
     ],
     "xbrltype": "NonNegativeMonetaryType"
    },
    "rr_ExpenseExampleNoRedemptionYear10": {
     "auth_ref": [
      "r19"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "You would pay the following expenses if you did not redeem your shares. Include the second 1-, 3-, 5-, and 10-year periods and related narrative explanation only if a sales charge (load) or other fee is charged upon redemption.",
        "label": "Expense Example, No Redemption, 10 Years",
        "terseLabel": "10 Years"
       }
      }
     },
     "localname": "ExpenseExampleNoRedemptionYear10",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule103",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule111",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule119",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule127",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule135",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule143",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule15",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule151",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule159",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule23",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule31",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule39",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule47",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule55",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule63",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule7",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule71",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule79",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule87",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule95"
     ],
     "xbrltype": "NonNegativeMonetaryType"
    },
    "rr_ExpenseExampleWithRedemptionTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contains a command for the SEC Viewer for the role corresponding to ExpenseExample.",
        "label": "Expense Example, With Redemption [Table]",
        "terseLabel": "Expense Example, With Redemption [Table]"
       }
      }
     },
     "localname": "ExpenseExampleWithRedemptionTableTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_ExpenseExampleYear01": {
     "auth_ref": [
      "r18"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Example assumes that you invest $10,000 in the Fund for the time periods indicated and then you redeem all of your shares at the end of those periods. The Example also assumes that your investment has a 5% return per year and that the Fund's operating expenses remained the same. Although your actual costs may be higher or lower.",
        "label": "Expense Example, with Redemption, 1 Year",
        "terseLabel": "1 Year"
       }
      }
     },
     "localname": "ExpenseExampleYear01",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94"
     ],
     "xbrltype": "NonNegativeMonetaryType"
    },
    "rr_ExpenseExampleYear03": {
     "auth_ref": [
      "r6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Example assumes that you invest $10,000 in the Fund for the time periods indicated and then you redeem all of your shares at the end of those periods. The Example also assumes that your investment has a 5% return per year and that the Fund's operating expenses remained the same. Although your actual costs may be higher or lower.",
        "label": "Expense Example, with Redemption, 3 Years",
        "terseLabel": "3 Years"
       }
      }
     },
     "localname": "ExpenseExampleYear03",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94"
     ],
     "xbrltype": "NonNegativeMonetaryType"
    },
    "rr_ExpenseExampleYear05": {
     "auth_ref": [
      "r6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Example assumes that you invest $10,000 in the Fund for the time periods indicated and then you redeem all of your shares at the end of those periods. The Example also assumes that your investment has a 5% return per year and that the Fund's operating expenses remained the same. Although your actual costs may be higher or lower.",
        "label": "Expense Example, with Redemption, 5 Years",
        "terseLabel": "5 Years"
       }
      }
     },
     "localname": "ExpenseExampleYear05",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94"
     ],
     "xbrltype": "NonNegativeMonetaryType"
    },
    "rr_ExpenseExampleYear10": {
     "auth_ref": [
      "r6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Example assumes that you invest $10,000 in the Fund for the time periods indicated and then you redeem all of your shares at the end of those periods. The Example also assumes that your investment has a 5% return per year and that the Fund's operating expenses remained the same. Although your actual costs may be higher or lower.",
        "label": "Expense Example, with Redemption, 10 Years",
        "terseLabel": "10 Years"
       }
      }
     },
     "localname": "ExpenseExampleYear10",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94"
     ],
     "xbrltype": "NonNegativeMonetaryType"
    },
    "rr_ExpenseHeading": {
     "auth_ref": [
      "r10"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Risk/Return Summary Fee Table Includes the following information, in plain English under rule 421(d) under the Securities Act, after Item 2 Fees and expenses of the Fund This table describes the fees and expenses that you may pay if you buy and hold shared of the Fund. You may qualify for sales charge discounts if you and your family invest, or agree to invest in the future, at least $[_____] in [name of fund family] funds. Shareholder Fees (fees paid directly from your investment) Example This Example is intended to help you compare the cost of investing in the Fund with the cost of investing in other mutual funds. The Example assumes that you invest $10,000 in the Fund for the time periods indicated and then you redeem all of your shares at the end of those periods. The Example also assumes that your investment has a 5% return per year and that the Fund's operating expenses remained the same. Although your actual costs may be higher or lower, based on these assumptions your costs would be You would pay the following expenses if you did not redeem your shares The Example does not reflect sales charges (loads) on reinvested dividends [and other distributions]. If these sales charges (loads) were included, your costs would be higher. Portfolio Turnover The Fund pays transaction costs, such as commissions, when it buys and sells securities (or \"turns over\" its portfolio). A higher portfolio turnover may indicate higher transaction costs. These costs, which are not reflected in annual fund operating expenses or in the example, affect the Fund's performance. During the most recent fiscal year, the Fund's portfolio turnover rate was __% of the average value of its whole portfolio. Instructions.  A.3.instructions.6 New Funds. For purposes of this Item, a \"New Fund\" is a Fund that does not include in Form N-1A financial statements reporting operating results or that includes financial statements for the Fund's initial fiscal year reporting operating results for a period of 6 months or less. The following Instructions apply to New Funds.",
        "label": "Expense [Heading]",
        "terseLabel": "Expense [Heading]"
       }
      }
     },
     "localname": "ExpenseHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_ExpenseNarrativeTextBlock": {
     "auth_ref": [
      "r9"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This table describes the fees and expenses that you may pay if you buy and hold shared of the Fund. You may qualify for sales charge discounts if you and your family invest, or agree to invest in the future, at least $[_____] in [name of fund family] funds.  Include the narrative explanations in the order indicated. A Fund may modify the narrative explanations if the explanation contains comparable information to that shown. The narrative explanation regarding sales charge discounts is only required by a Fund that offers such discounts and should specify the minimum level of investment required to qualify for a discount. Modify the narrative explanation to state that Fund shares are sold on a national securities exchange at the end of the time periods indicated, and that brokerage commissions for buying and selling Fund shares through a broker are not reflected.",
        "label": "Expense Narrative [Text Block]",
        "terseLabel": "Expense Narrative [Text Block]"
       }
      }
     },
     "localname": "ExpenseNarrativeTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_ExpensesDeferredChargesTextBlock": {
     "auth_ref": [
      "r11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A Fund may include in a footnote to the table, if applicable, a tabular presentation showing the amount of deferred sales charges (loads) over time or a narrative explanation of the sales charges (loads) (e.g., __% in the first year after purchase, declining to __% in the __ year and eliminated thereafter).",
        "label": "Expenses Deferred Charges [Text Block]",
        "terseLabel": "Expenses Deferred Charges [Text Block]"
       }
      }
     },
     "localname": "ExpensesDeferredChargesTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_ExpensesOverAssets": {
     "auth_ref": [
      "r16"
     ],
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "order": 1.0,
       "parentTag": "rr_NetExpensesOverAssets",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Annual Fund Operating Expenses. If the Fund is a Feeder Fund, reflect the aggregate expenses of the Feeder Fund and the Master Fund in a single fee table using the captions provided. In a footnote to the fee table, state that the table and Example reflect the expenses of both the Feeder and Master Funds. If the prospectus offers more than one Class of a Multiple Class Fund or more than one Feeder Fund that invests in the same Master Fund, provide a separate response for each Class or Feeder Fund.  Base the percentages of \"Annual Fund Operating Expenses\" on amounts incurred during the Fund's most recent fiscal year, but include in expenses amounts that would have been incurred absent expense reimbursement or fee waiver arrangements. If the Fund has changed its fiscal year and, as a result, the most recent fiscal year is less than three months, use the fiscal year prior to the most recent fiscal year as the basis for determining \"Annual Fund Operating Expenses.\"",
        "label": "Total Annual Fund Operating Expenses"
       }
      }
     },
     "localname": "ExpensesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93"
     ],
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_FeeWaiverOrReimbursementOverAssets": {
     "auth_ref": [
      "r24"
     ],
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "order": 2.0,
       "parentTag": "rr_NetExpensesOverAssets",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Annual Fund Operating Expenses. If there were expense reimbursement or fee waiver arrangements that reduced any Fund operating expenses and will continue to reduce them for no less than one year from the effective date of the Fund's registration statement, a Fund may add two captions to the table one caption showing the amount of the expense reimbursement or fee waiver, and a second caption showing the Fund's net expenses after subtracting the fee reimbursement or expense waiver from the total fund operating expenses. The Fund should place these additional captions directly below the \"Total Annual Fund Operating Expenses\" caption of the table and should use appropriate descriptive captions, such as \"Fee Waiver [and/or Expense Reimbursement]\" and \"Total Annual Fund Operating Expenses After Fee Waiver [and/or Expense Reimbursement],\" respectively. If the Fund provides this disclosure, also disclose the period for which the expense reimbursement or fee waiver arrangement is expected to continue, and briefly describe who can terminate the arrangement and under what circumstances.",
        "label": "Waivers / Reimbursements"
       }
      }
     },
     "localname": "FeeWaiverOrReimbursementOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93"
     ],
     "xbrltype": "NonPositivePure4Type"
    },
    "rr_FeeWaiverOrReimbursementOverAssetsDateOfTermination": {
     "auth_ref": [
      "r17"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the date of expected termination of any expense reimbursement or fee waiver arrangements that reduce any Fund operating expenses (SEC Form N-1A 2006-09-14 A.3.table.1.11 Total Annual Fund Operating Expenses A.3.instructions.3.e).",
        "label": "Fee Waiver or Reimbursement over Assets, Date of Termination",
        "terseLabel": "Fee Waiver or Reimbursement over Assets, Date of Termination"
       }
      }
     },
     "localname": "FeeWaiverOrReimbursementOverAssetsDateOfTermination",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_HighestQuarterlyReturnLabel": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.",
        "label": "Highest Quarterly Return, Label",
        "terseLabel": "Label"
       }
      }
     },
     "localname": "HighestQuarterlyReturnLabel",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_LowestQuarterlyReturnLabel": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a bar chart showing the Fund's annual total returns for each of the last 10 calendar years (or for the life of the Fund if less than 10 years), but only for periods subsequent to the effective date of the Fund's registration statement. Present the corresponding numerical return adjacent to each bar. If the Fund's fiscal year is other than a calendar year, include the year-to-date return information as of the end of the most recent quarter in a footnote to the bar chart. Following the bar chart, disclose the Fund's highest and lowest return for a quarter during the 10 years or other period of the bar chart.",
        "label": "Lowest Quarterly Return, Label",
        "terseLabel": "Label"
       }
      }
     },
     "localname": "LowestQuarterlyReturnLabel",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_ManagementFeesOverAssets": {
     "auth_ref": [
      "r12"
     ],
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "order": 1.0,
       "parentTag": "rr_ExpensesOverAssets",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Management Fees include investment advisory fees (including any fees based on the Fund's performance), any other management fees payable to the investment adviser or its affiliates, and administrative fees payable to the investment adviser or its affiliates that are not included as \"Other Expenses.\"",
        "label": "Management Fees (as an annual percentage of the Fund's average daily net assets)"
       }
      }
     },
     "localname": "ManagementFeesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93"
     ],
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_MarketIndexPerformanceTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contains a command for the SEC Viewer for the role corresponding to MarketIndexPerformanceData.",
        "label": "Market Index Performance [Table]",
        "terseLabel": "Market Index Performance [Table]"
       }
      }
     },
     "localname": "MarketIndexPerformanceTableTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_MaximumDeferredSalesChargeOverOther": {
     "auth_ref": [
      "r11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maximum Deferred Sales Charge (Load) (as a percentage of ____)  \"Maximum Deferred Sales Charge (Load)\" includes the maximum total deferred sales charge (load) payable upon redemption, in installments, or both, expressed as a percentage of the amount or amounts stated in response to Item 7(a), except that, for a sales charge (load) based on net asset value at the time of purchase, show the sales charge (load) as a percentage of the offering price at the time of purchase. A Fund may include in a footnote to the table, if applicable, a tabular presentation showing the amount of deferred sales charges (loads) over time or a narrative explanation of the sales charges (loads) (e.g., __% in the first year after purchase, declining to __% in the __ year and eliminated thereafter).  If more than one type of sales charge (load) is imposed (e.g., a deferred sales charge (load) and a front-end sales charge (load)), the first caption in the table should read \"Maximum Sales Charge (Load)\" and show the maximum cumulative percentage. Show the percentage amounts and the terms of each sales charge (load) comprising that figure on separate lines below.",
        "label": "Maximum Deferred Sales Charge (as a percentage)",
        "terseLabel": "Maximum Deferred Sales Charge (as a percentage)"
       }
      }
     },
     "localname": "MaximumDeferredSalesChargeOverOther",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule100",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule140",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule156",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92"
     ],
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_MaximumSalesChargeImposedOnPurchasesOverOfferingPrice": {
     "auth_ref": [
      "r22"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maximum Deferred Sales Charge (Load) (as a percentage of ____)  A.3.instructions.2.a.i \"Maximum Deferred Sales Charge (Load)\" includes the maximum total deferred sales charge (load) payable upon redemption, in installments, or both, expressed as a percentage of the amount or amounts stated in response to Item 7(a), except that, for a sales charge (load) based on net asset value at the time of purchase, show the sales charge (load) as a percentage of the offering price at the time of purchase. A Fund may include in a footnote to the table, if applicable, a tabular presentation showing the amount of deferred sales charges (loads) over time or a narrative explanation of the sales charges (loads) (e.g., __% in the first year after purchase, declining to __% in the __ year and eliminated thereafter).  A.3.instructions.2.a.ii If more than one type of sales charge (load) is imposed (e.g., a deferred sales charge (load) and a front-end sales charge (load)), the first caption in the table should read \"Maximum Sales Charge (Load)\" and show the maximum cumulative percentage. Show the percentage amounts and the terms of each sales charge (load) comprising that figure on separate lines below.",
        "label": "Maximum Sales Charge Imposed on Purchases (as a percentage of Offering Price)",
        "terseLabel": "Maximum Sales Charge Imposed on Purchases (as a percentage of Offering Price)"
       }
      }
     },
     "localname": "MaximumSalesChargeImposedOnPurchasesOverOfferingPrice",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule100",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule140",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule156",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92"
     ],
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_NetExpensesOverAssets": {
     "auth_ref": [
      "r24"
     ],
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Annual Fund Operating Expenses.",
        "label": "Total Annual Fund Operating Expenses After Waivers / Reimbursements"
       }
      }
     },
     "localname": "NetExpensesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93"
     ],
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_ObjectiveHeading": {
     "auth_ref": [
      "r4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment Objectives/Goals. Disclose the Fund's investment objectives or goals. A Fund also may identify its type or category (e.g., that it is a Money Market Fund or a balanced fund).",
        "label": "Objective [Heading]",
        "terseLabel": "Objective [Heading]"
       }
      }
     },
     "localname": "ObjectiveHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_ObjectivePrimaryTextBlock": {
     "auth_ref": [
      "r4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment Objectives/Goals. Disclose the Fund's investment objectives or goals. A Fund also may identify its type or category (e.g., that it is a Money Market Fund or a balanced fund).",
        "label": "Objective, Primary [Text Block]",
        "terseLabel": "Objective, Primary [Text Block]"
       }
      }
     },
     "localname": "ObjectivePrimaryTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_ObjectiveSecondaryTextBlock": {
     "auth_ref": [
      "r4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment Objectives/Goals. Disclose the Fund's investment objectives or goals. A Fund also may identify its type or category (e.g., that it is a Money Market Fund or a balanced fund).",
        "label": "Objective, Secondary [Text Block]",
        "terseLabel": "Objective, Secondary [Text Block]"
       }
      }
     },
     "localname": "ObjectiveSecondaryTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_OperatingExpensesCaption": {
     "auth_ref": [
      "r25"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Annual Fund Operating Expenses (ongoing expenses that you pay each year as a percentage of the value of your investment)",
        "label": "Operating Expenses Caption [Text]",
        "terseLabel": "Operating Expenses Caption [Text]"
       }
      }
     },
     "localname": "OperatingExpensesCaption",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_OtherExpensesOverAssets": {
     "auth_ref": [
      "r14"
     ],
     "calculation": {
      "http://xbrl.sec.gov/rr/role/OperatingExpensesData": {
       "order": 4.0,
       "parentTag": "rr_ExpensesOverAssets",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "\"Other Expenses\" include all expenses not otherwise disclosed in the table that are deducted from the Fund's assets or charged to all shareholder accounts. The amount of expenses deducted from the Fund's assets are the amounts shown as expenses in the Fund's statement of operations (including increases resulting from complying with paragraph 2(g) of rule 6-07 of Regulation S-X [17 CFR 210.6-07]).  \"Other Expenses\" do not include extraordinary expenses as determined under generally accepted accounting principles (see Accounting Principles Board Opinion No. 30). If extraordinary expenses were incurred that materially affected the Fund's \"Other Expenses,\" disclose in a footnote to the table what \"Other Expenses\" would have been had the extraordinary expenses been included.",
        "label": "Other Expenses",
        "terseLabel": "Total Other Expenses"
       }
      }
     },
     "localname": "OtherExpensesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93"
     ],
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_PerformanceAdditionalMarketIndex": {
     "auth_ref": [
      "r37"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Include the bar chart and table required by paragraphs (b)(2)(ii) and (iii) of this section. Provide a brief explanation of how the information illustrates the variability of the Fund's returns (e.g., by stating that the information provides some indication of the risks of investing in the Fund by showing changes in the Fund's performance from year to year and by showing how the Fund's average annual returns for 1, 5, and 10 years compare with those of a broad measure of market performance). Provide a statement to the effect that the Fund's past performance (before and after taxes) is not necessarily an indication of how the Fund will perform in the future.",
        "label": "Performance Additional Market Index [Text]",
        "terseLabel": "Performance Additional Market Index [Text]"
       }
      }
     },
     "localname": "PerformanceAdditionalMarketIndex",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_PerformanceAvailabilityWebSiteAddress": {
     "auth_ref": [
      "r37"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If applicable, include a statement explaining that updated performance information is available and providing a Website address and/or toll-free (or collect) telephone number where the updated information may be obtained.",
        "label": "Performance Availability Website Address [Text]",
        "terseLabel": "Performance Availability Website Address [Text]"
       }
      }
     },
     "localname": "PerformanceAvailabilityWebSiteAddress",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_PerformanceInformationIllustratesVariabilityOfReturns": {
     "auth_ref": [
      "r37"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Include the bar chart and table required by paragraphs (b)(2)(ii) and (iii) of this section. Provide a brief explanation of how the information illustrates the variability of the Fund's returns (e.g., by stating that the information provides some indication of the risks of investing in the Fund by showing changes in the Fund's performance from year to year and by showing how the Fund's average annual returns for 1, 5, and 10 years compare with those of a broad measure of market performance). Provide a statement to the effect that the Fund's past performance (before and after taxes) is not necessarily an indication of how the Fund will perform in the future.",
        "label": "Performance Information Illustrates Variability of Returns [Text]",
        "terseLabel": "Performance Information Illustrates Variability of Returns [Text]"
       }
      }
     },
     "localname": "PerformanceInformationIllustratesVariabilityOfReturns",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_PerformanceMeasureAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Performance Measure Axis has members that distinguish different returns according to whether they are Before Taxes (the default), After Taxes on Distributions, After Taxes on Distributions and Sales, or are a pre-tax measure of returns based on a broadly available market index.",
        "label": "Performance Measure [Axis]",
        "terseLabel": "Performance Measure [Axis]"
       }
      }
     },
     "localname": "PerformanceMeasureAxis",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_PerformanceMeasureDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The default member of the Performance Measure axis. It represents any return that is measured before taxes.",
        "label": "Before Taxes",
        "terseLabel": "Before Taxes"
       }
      }
     },
     "localname": "PerformanceMeasureDomain",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "domainItemType"
    },
    "rr_PerformanceNarrativeTextBlock": {
     "auth_ref": [
      "r36"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Risk/Return Bar Chart and Table.",
        "label": "Performance Narrative [Text Block]",
        "terseLabel": "Performance Narrative [Text Block]"
       }
      }
     },
     "localname": "PerformanceNarrativeTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_PerformanceOneYearOrLess": {
     "auth_ref": [
      "r37",
      "r41"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For a Fund that provides annual total returns for only one calendar year or for a Fund that does not include the bar chart because it does not have annual returns for a full calendar year, modify, as appropriate, the narrative explanation required by stating that the information gives some indication of the risks of an investment in the Fund by comparing the Fund's performance with a broad measure of market performance). Provide a brief explanation of how the information illustrates the variability of the Fund's returns (e.g., by stating that the information provides some indication of the risks of investing in the Fund by showing changes in the Fund's performance from year to year and by showing how the Fund's average annual returns for 1, 5, and 10 years compare with those of a broad measure of market performance). Provide a statement to the effect that the Fund's past performance (before and after taxes) is not necessarily an indication of how the Fund will perform in the future.",
        "label": "Performance One Year or Less [Text]",
        "terseLabel": "Performance One Year or Less [Text]"
       }
      }
     },
     "localname": "PerformanceOneYearOrLess",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_PerformancePastDoesNotIndicateFuture": {
     "auth_ref": [
      "r37"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Include the bar chart and table required by paragraphs (b)(2)(ii) and (iii) of this section. Provide a brief explanation of how the information illustrates the variability of the Fund's returns (e.g., by stating that the information provides some indication of the risks of investing in the Fund by showing changes in the Fund's performance from year to year and by showing how the Fund's average annual returns for 1, 5, and 10 years compare with those of a broad measure of market performance). Provide a statement to the effect that the Fund's past performance (before and after taxes) is not necessarily an indication of how the Fund will perform in the future.",
        "label": "Performance Past Does Not Indicate Future [Text]",
        "terseLabel": "Performance Past Does Not Indicate Future [Text]"
       }
      }
     },
     "localname": "PerformancePastDoesNotIndicateFuture",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_PerformanceTableExplanationAfterTaxHigher": {
     "auth_ref": [
      "r47"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If average annual total return (after taxes on distributions and redemption) is higher than average annual total return, the reason for this result may be explained.",
        "label": "Performance Table Explanation after Tax Higher",
        "terseLabel": "Performance Table Explanation after Tax Higher"
       }
      }
     },
     "localname": "PerformanceTableExplanationAfterTaxHigher",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_PerformanceTableHeading": {
     "auth_ref": [
      "r42"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This item represents Average Annual Total Returns. If a Multiple Class Fund offers a Class in the prospectus that converts into another Class after a stated period, compute average annual total returns in the table by using the returns of the other Class for the period after conversion.",
        "label": "Performance Table Heading",
        "terseLabel": "Performance Table Heading"
       }
      }
     },
     "localname": "PerformanceTableHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_PerformanceTableNarrativeTextBlock": {
     "auth_ref": [
      "r44"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund has annual returns for at least one calendar year, provide a table showing the Fund's (A) average annual total return; (B) average annual total return (after taxes on distributions); and (C) average annual total return (after taxes on distributions and redemption). A Money Market Fund should show only the returns described in clause (A) of the preceding sentence. All returns should be shown for 1-, 5-, and 10- calendar year periods ending on the date of the most recently completed calendar year (or for the life of the Fund, if shorter), but only for periods subsequent to the effective date of the Fund's registration statement. The table also should show the returns of an appropriate broad-based securities market index as defined in Instruction 5 to Item 22(b)(7) for the same periods. A Fund that has been in existence for more than 10 years also may include returns for the life of the Fund. A Money Market Fund may provide the Fund's 7-day yield ending on the date of the most recent calendar year or disclose a toll-free (or collect) telephone number that investors can use to obtain the Fund's current 7-day yield. For a Fund (other than a Money Market Fund or a Fund described in General Instruction C.3.(d)(iii)), provide the information in the following table with the specified captions AVERAGE ANNUAL TOTAL RETURNS (For the periods ended December 31, _____). For a Fund that provides annual total returns for only one calendar year or for a Fund that does not include the bar chart because it does not have annual returns for a full calendar year, modify, as appropriate, the narrative explanation required by paragraph (c)(2)(i) (e.g., by stating that the information gives some indication of the risks of an investment in the Fund by comparing the Fund's performance with a broad measure of market performance).",
        "label": "Performance Table Narrative",
        "terseLabel": "Performance Table Narrative"
       }
      }
     },
     "localname": "PerformanceTableNarrativeTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_PerformanceTableNotRelevantToTaxDeferred": {
     "auth_ref": [
      "r45"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Provide a brief explanation that the actual after-tax returns depend on an investor's tax situation and may differ from those shown, and after-tax returns shown are not relevant to investors who hold their Fund shares through tax-deferred arrangements, such as 401(k) plans or individual retirement accounts.",
        "label": "Performance Table Not Relevant to Tax Deferred",
        "terseLabel": "Performance Table Not Relevant to Tax Deferred"
       }
      }
     },
     "localname": "PerformanceTableNotRelevantToTaxDeferred",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_PerformanceTableOneClassOfAfterTaxShown": {
     "auth_ref": [
      "r39",
      "r46"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Provide a brief explanation that if the Fund is a Multiple Class Fund that offers more than one Class in the prospectus, after-tax returns are shown for only one Class and after-tax returns for other Classes will vary.",
        "label": "Performance Table One Class of after Tax Shown [Text]",
        "terseLabel": "Performance Table One Class of after Tax Shown [Text]"
       }
      }
     },
     "localname": "PerformanceTableOneClassOfAfterTaxShown",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_PerformanceTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contains a command for the SEC Viewer for the role corresponding to PerformanceTableData.",
        "label": "Performance [Table]",
        "terseLabel": "Performance [Table]"
       }
      }
     },
     "localname": "PerformanceTableTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_PerformanceTableUsesHighestFederalRate": {
     "auth_ref": [
      "r39"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Provide a brief explanation that after-tax returns are calculated using the historical highest individual federal marginal income tax rates and do not reflect the impact of state and local taxes.",
        "label": "Performance Table Uses Highest Federal Rate",
        "terseLabel": "Performance Table Uses Highest Federal Rate"
       }
      }
     },
     "localname": "PerformanceTableUsesHighestFederalRate",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_PortfolioTurnoverHeading": {
     "auth_ref": [
      "r20"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclose the portfolio turnover rate provided in response to Item 14(a) for the most recent fiscal year (or for such shorter period as the Fund has been in operation). Disclose the period for which the information is provided if less than a full fiscal year. A Fund that is a Money Market Fund may omit the portfolio turnover information required by this Item.",
        "label": "Portfolio Turnover [Heading]",
        "terseLabel": "Portfolio Turnover [Heading]"
       }
      }
     },
     "localname": "PortfolioTurnoverHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_PortfolioTurnoverRate": {
     "auth_ref": [
      "r8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the rate of portfolio turnover presented as a percentage (SEC Form N-1A 2006-09-14 A.3.example.3 Portfolio Turnover  A.3.instructions.5 Portfolio Turnover).",
        "label": "Portfolio Turnover, Rate",
        "terseLabel": "Portfolio Turnover, Rate"
       }
      }
     },
     "localname": "PortfolioTurnoverRate",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_PortfolioTurnoverTextBlock": {
     "auth_ref": [
      "r8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclose the portfolio turnover rate provided in response to Item 14(a) for the most recent fiscal year (or for such shorter period as the Fund has been in operation). Disclose the period for which the information is provided if less than a full fiscal year. A Fund that is a Money Market Fund may omit the portfolio turnover information required by this Item.",
        "label": "Portfolio Turnover [Text Block]",
        "terseLabel": "Portfolio Turnover [Text Block]"
       }
      }
     },
     "localname": "PortfolioTurnoverTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_ProspectusDate": {
     "auth_ref": [
      "r2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The date of the prospectus.",
        "label": "Prospectus Date",
        "terseLabel": "Prospectus Date"
       }
      }
     },
     "localname": "ProspectusDate",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1"
     ],
     "xbrltype": "dateItemType"
    },
    "rr_ProspectusShareClassAxis": {
     "auth_ref": [
      "r0"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Share Class Axis.",
        "label": "Share Class [Axis]",
        "terseLabel": "Share Class [Axis]"
       }
      }
     },
     "localname": "ProspectusShareClassAxis",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule100",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule103",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule111",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule119",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule127",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule135",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule140",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule143",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule15",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule151",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule156",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule159",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule23",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule31",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule39",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule47",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule55",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule63",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule7",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule71",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule79",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule87",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule95",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_ProspectusTable": {
     "auth_ref": [
      "r0"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Table.",
        "label": "Prospectus:",
        "terseLabel": "Prospectus:"
       }
      }
     },
     "localname": "ProspectusTable",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "rr_RiskHeading": {
     "auth_ref": [
      "r28"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Narrative Risk Disclosure.",
        "label": "Risk [Heading]",
        "terseLabel": "Risk [Heading]"
       }
      }
     },
     "localname": "RiskHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_RiskLoseMoney": {
     "auth_ref": [
      "r29",
      "r31",
      "r32",
      "r33"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summarize the principal risks of investing in the Fund, including the risks to which the Fund's portfolio as a whole is subject and the circumstances reasonably likely to affect adversely the Fund's net asset value, yield, and total return. Unless the Fund is a Money Market Fund, disclose that loss of money is a risk of investing in the Fund. If the Fund is a Money Market Fund, include the following statement: \"You could lose money by investing in the Fund.\"",
        "label": "Risk Lose Money [Text]",
        "terseLabel": "Risk Lose Money [Text]"
       }
      }
     },
     "localname": "RiskLoseMoney",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_RiskMoneyMarketFundPriceFluctuates": {
     "auth_ref": [
      "r31"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Include the statement \"Because the share price of the Fund will fluctuate, when you sell your shares they may be worth more or less than what you originally paid for them.\"",
        "label": "Risk Money Market Fund Price Fluctuates [Text]",
        "terseLabel": "Risk Money Market Fund Price Fluctuates [Text]"
       }
      }
     },
     "localname": "RiskMoneyMarketFundPriceFluctuates",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_RiskNarrativeTextBlock": {
     "auth_ref": [
      "r30"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Narrative Risk Disclosure. A Fund may, in responding to this Item, describe the types of investors for whom the Fund is intended or the types of investment goals that may be consistent with an investment in the Fund.",
        "label": "Risk Narrative [Text Block]",
        "terseLabel": "Risk Narrative [Text Block]"
       }
      }
     },
     "localname": "RiskNarrativeTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_RiskNondiversifiedStatus": {
     "auth_ref": [
      "r35"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If applicable, state that the Fund is non-diversified, describe the effect of non-diversification (e.g., disclose that, compared with other funds, the Fund may invest a greater percentage of its assets in a particular issuer), and summarize the risks of investing in a non-diversified fund.",
        "label": "Risk Nondiversified Status [Text]",
        "terseLabel": "Risk Nondiversified Status [Text]"
       }
      }
     },
     "localname": "RiskNondiversifiedStatus",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_RiskNotInsuredDepositoryInstitution": {
     "auth_ref": [
      "r34"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "If the Fund is advised by or sold through an insured depository institution, state that \"An investment in the Fund is not a deposit of the bank and is not insured or guaranteed by the Federal Deposit Insurance Corporation or any other government agency.\"",
        "label": "Risk Not Insured Depository Institution [Text]",
        "terseLabel": "Risk Not Insured Depository Institution [Text]"
       }
      }
     },
     "localname": "RiskNotInsuredDepositoryInstitution",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_RiskReturnAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk/Return:",
        "terseLabel": "Risk/Return:"
       }
      }
     },
     "localname": "RiskReturnAbstract",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule100",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule103",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule111",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule119",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule127",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule135",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule140",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule143",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule15",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule151",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule156",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule159",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule23",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule31",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule39",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule47",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule55",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule63",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule7",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule71",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule79",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule87",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule95",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_RiskReturnHeading": {
     "auth_ref": [
      "r3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Risk/Return Summary Investment Objectives/Goals Include the following information, in plain English under rule 421(d) under the Securities Act, in the order and subject matter indicated",
        "label": "Risk/Return [Heading]",
        "terseLabel": "Risk/Return [Heading]"
       }
      }
     },
     "localname": "RiskReturnHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_ShareClassDomain": {
     "auth_ref": [
      "r1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "All members of this domain must be elements with name starting with \"C\" and consisting of a 9-digit Fund share class CIK."
       }
      }
     },
     "localname": "ShareClassDomain",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/DocumentAndEntityInformation1",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart104",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart112",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart120",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart128",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart136",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart144",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart152",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart16",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart160",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart24",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart32",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart40",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart48",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart56",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart64",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart72",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart8",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart80",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart88",
      "http://www.mainstayinvestments.com/20211031/role/RRBarChart96",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule100",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule101",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule102",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule103",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule105",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule108",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule109",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule110",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule111",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule113",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule116",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule117",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule118",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule119",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule12",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule121",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule124",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule125",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule126",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule127",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule129",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule13",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule132",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule133",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule134",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule135",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule137",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule14",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule140",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule141",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule142",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule143",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule145",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule148",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule149",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule15",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule150",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule151",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule153",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule156",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule157",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule158",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule159",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule161",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule17",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule20",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule21",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule22",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule23",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule25",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule28",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule29",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule30",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule31",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule33",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule36",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule37",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule38",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule39",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule4",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule41",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule44",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule45",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule46",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule47",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule49",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule5",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule52",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule53",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule54",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule55",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule57",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule6",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule60",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule61",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule62",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule63",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule65",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule68",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule69",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule7",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule70",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule71",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule73",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule76",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule77",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule78",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule79",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule81",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule84",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule85",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule86",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule87",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule89",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule9",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule92",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule93",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule94",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule95",
      "http://www.mainstayinvestments.com/20211031/role/RRSchedule97"
     ],
     "xbrltype": "domainItemType"
    },
    "rr_ShareholderFeesCaption": {
     "auth_ref": [
      "r21"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Shareholder Fees (fees paid directly from your investment).",
        "label": "Shareholder Fees Caption [Text]",
        "terseLabel": "Shareholder Fees Caption [Text]"
       }
      }
     },
     "localname": "ShareholderFeesCaption",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_ShareholderFeesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contains a command for the SEC Viewer for the role corresponding to ShareholderFeesData.",
        "label": "Shareholder Fees [Table]",
        "terseLabel": "Shareholder Fees [Table]"
       }
      }
     },
     "localname": "ShareholderFeesTableTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_StrategyHeading": {
     "auth_ref": [
      "r27"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Principal investment strategies of the Fund. Summarize how the Fund intends to achieve its investment objectives by identifying the Fund's principal investment strategies (including the type or types of securities in which the Fund invests or will invest principally) and any policy to concentrate in securities of issuers in a particular industry or group of industries.",
        "label": "Strategy [Heading]",
        "terseLabel": "Strategy [Heading]"
       }
      }
     },
     "localname": "StrategyHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_StrategyNarrativeTextBlock": {
     "auth_ref": [
      "r27"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Principal investment strategies of the Fund. Summarize how the Fund intends to achieve its investment objectives by identifying the Fund's principal investment strategies (including the type or types of securities in which the Fund invests or will invest principally) and any policy to concentrate in securities of issuers in a particular industry or group of industries.",
        "label": "Strategy Narrative [Text Block]",
        "terseLabel": "Strategy Narrative [Text Block]"
       }
      }
     },
     "localname": "StrategyNarrativeTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary10",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary106",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary114",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary122",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary130",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary138",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary146",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary154",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary18",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary2",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary26",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary34",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary42",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary50",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary58",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary66",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary74",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary82",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary90",
      "http://www.mainstayinvestments.com/20211031/role/RRSummary98"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_StrategyPortfolioConcentration": {
     "auth_ref": [
      "r27"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Principal investment strategies of the Fund. Summarize how the Fund intends to achieve its investment objectives by identifying the Fund's principal investment strategies (including the type or types of securities in which the Fund invests or will invest principally) and any policy to concentrate in securities of issuers in a particular industry or group of industries.",
        "label": "Strategy Portfolio Concentration [Text]",
        "terseLabel": "Strategy Portfolio Concentration [Text]"
       }
      }
     },
     "localname": "StrategyPortfolioConcentration",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData107",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData11",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData115",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData123",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData131",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData139",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData147",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData155",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData19",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData27",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData3",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData35",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData43",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData51",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData59",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData67",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData75",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData83",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData91",
      "http://www.mainstayinvestments.com/20211031/role/RRDetailData99"
     ],
     "xbrltype": "stringItemType"
    }
   },
   "unitCount": 2
  }
 },
 "std_ref": {
  "r0": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Publisher": "SEC"
  },
  "r1": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "1",
   "Subsection": "a"
  },
  "r10": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "d",
   "Subsection": "instructions"
  },
  "r11": {
   "Chapter": "A",
   "Clause": "i",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "a",
   "Subsection": "instructions"
  },
  "r12": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "3",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "a",
   "Subsection": "instructions"
  },
  "r13": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "3",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "b",
   "Subsection": "instructions"
  },
  "r14": {
   "Chapter": "A",
   "Clause": "i",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "3",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "c",
   "Subsection": "instructions"
  },
  "r15": {
   "Chapter": "A",
   "Clause": "iii",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "3",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "c",
   "Subsection": "instructions"
  },
  "r16": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "3",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "d",
   "Subsection": "instructions"
  },
  "r17": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "3",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "e",
   "Subsection": "instructions"
  },
  "r18": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "4",
   "Publisher": "SEC",
   "Section": "3",
   "Subsection": "instructions"
  },
  "r19": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "4",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "f",
   "Subsection": "instructions"
  },
  "r2": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "3",
   "Publisher": "SEC",
   "Section": "1",
   "Subsection": "a"
  },
  "r20": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "5",
   "Publisher": "SEC",
   "Section": "3",
   "Subsection": "instructions"
  },
  "r21": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "3",
   "Subsection": "table"
  },
  "r22": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "1",
   "Subsection": "table"
  },
  "r23": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "10",
   "Subsection": "table"
  },
  "r24": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "11",
   "Subsection": "table"
  },
  "r25": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "7",
   "Subsection": "table"
  },
  "r26": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "9",
   "Subsection": "table"
  },
  "r27": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Publisher": "SEC",
   "Section": "4",
   "Subsection": "a"
  },
  "r28": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "4",
   "Subsection": "b"
  },
  "r29": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "i",
   "Subsection": "b"
  },
  "r3": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Publisher": "SEC",
   "Section": "2"
  },
  "r30": {
   "Chapter": "A",
   "Clause": "instruction",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "i",
   "Subsection": "b"
  },
  "r31": {
   "Chapter": "A",
   "Clause": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "ii",
   "Subsection": "b"
  },
  "r32": {
   "Chapter": "A",
   "Clause": "B",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "ii",
   "Subsection": "b"
  },
  "r33": {
   "Chapter": "A",
   "Clause": "C",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "ii",
   "Subsection": "b"
  },
  "r34": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "iii",
   "Subsection": "b"
  },
  "r35": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "iv",
   "Subsection": "b"
  },
  "r36": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subsection": "b"
  },
  "r37": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "i",
   "Subsection": "b"
  },
  "r38": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "ii",
   "Subsection": "b"
  },
  "r39": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "iii",
   "Subsection": "b"
  },
  "r4": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Publisher": "SEC",
   "Section": "2",
   "Subsection": "a"
  },
  "r40": {
   "Chapter": "A",
   "Clause": "1",
   "Exhibit": "2",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "iii",
   "Subsection": "b"
  },
  "r41": {
   "Chapter": "A",
   "Clause": "1",
   "Exhibit": "b",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "instructions",
   "Subsection": "b"
  },
  "r42": {
   "Chapter": "A",
   "Clause": "3",
   "Exhibit": "c",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "instructions",
   "Subsection": "b"
  },
  "r43": {
   "Chapter": "A",
   "Clause": "4",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "instructions",
   "Subsection": "b"
  },
  "r44": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "iv",
   "Subsection": "b"
  },
  "r45": {
   "Chapter": "A",
   "Clause": "B",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "iv",
   "Subsection": "b"
  },
  "r46": {
   "Chapter": "A",
   "Clause": "C",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "iv",
   "Subsection": "b"
  },
  "r47": {
   "Chapter": "A",
   "Clause": "D",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "iv",
   "Subsection": "b"
  },
  "r48": {
   "Name": "Regulation 12B",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r49": {
   "Name": "Regulation S-T",
   "Number": "232",
   "Publisher": "SEC",
   "Section": "313"
  },
  "r5": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "1",
   "Subsection": "example"
  },
  "r6": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "2",
   "Subsection": "example"
  },
  "r7": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "1",
   "Subsection": "example"
  },
  "r8": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "3",
   "Publisher": "SEC",
   "Section": "3",
   "Subsection": "example"
  },
  "r9": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "b",
   "Subsection": "instructions"
  }
 },
 "version": "2.1"
}
