{
 "instance": {
  "d64930d485bpos.htm": {
   "axisCustom": 0,
   "axisStandard": 4,
   "contextCount": 84,
   "dts": {
    "calculationLink": {
     "local": [
      "gsvit-20210430_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "gsvit-20210430_def.xml"
     ]
    },
    "inline": {
     "local": [
      "d64930d485bpos.htm"
     ]
    },
    "labelLink": {
     "local": [
      "gsvit-20210430_lab.xml"
     ],
     "remote": [
      "https://xbrl.sec.gov/rr/2018/rr-doc-2018-01-31.xml",
      "https://xbrl.sec.gov/dei/2020/dei-doc-2020-01-31.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "gsvit-20210430_pre.xml"
     ]
    },
    "referenceLink": {
     "remote": [
      "https://xbrl.sec.gov/rr/2018/rr-ref-2018-01-31.xml",
      "https://xbrl.sec.gov/dei/2020/dei-ref-2020-01-31.xml"
     ]
    },
    "schema": {
     "local": [
      "gsvit-20210430.xsd"
     ],
     "remote": [
      "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",
      "https://xbrl.sec.gov/rr/2018/rr-2018-01-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2006/xbrldi-2006.xsd",
      "http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd",
      "http://www.xbrl.org/dtr/type/numeric-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/net-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/deprecated-2009-12-16.xsd"
     ]
    }
   },
   "elementCount": 156,
   "entityCount": 1,
   "hidden": {
    "http://xbrl.sec.gov/dei/2020-01-31": 4,
    "http://xbrl.sec.gov/rr/2018-01-31": 345,
    "total": 349
   },
   "keyCustom": 0,
   "keyStandard": 168,
   "memberCustom": 57,
   "memberStandard": 0,
   "nsprefix": "gsvit",
   "nsuri": "http://www.gsamfunds.com/20210430",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:EntityRegistrantName",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0001 - Document - Document and Entity Information  {Elements}",
     "role": "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements",
     "shortName": "Document and Entity Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021",
      "decimals": null,
      "lang": "en-US",
      "name": "dei:DocumentEffectiveDate",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R103": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000035992MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0103 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Global Trends Allocation Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Global Trends Allocation Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000035992MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R104": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009360MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0104 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Growth Opportunities Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
     "shortName": "Risk/Return Summary- Goldman Sachs Growth Opportunities Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R109": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009360MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0109 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Growth Opportunities Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Growth Opportunities Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009360MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R110": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009362MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0110 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs High Quality Floating Rate Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
     "shortName": "Risk/Return Summary- Goldman Sachs High Quality Floating Rate Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R115": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009362MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0115 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs High Quality Floating Rate Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
     "shortName": "Risk/Return Detail Data- Goldman Sachs High Quality Floating Rate Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009362MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R116": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009357MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0116 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Large Cap Value Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
     "shortName": "Risk/Return Summary- Goldman Sachs Large Cap Value Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R121": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009357MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0121 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Large Cap Value Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Large Cap Value Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009357MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R122": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009358MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0122 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Mid Cap Value Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
     "shortName": "Risk/Return Summary- Goldman Sachs Mid Cap Value Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R127": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009358MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0127 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Mid Cap Value Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Mid Cap Value Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009358MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R128": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009354MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0128 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Government Money Market Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
     "shortName": "Risk/Return Summary- Goldman Sachs Government Money Market Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R13": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_AdvisorMemberdeiDocumentInformationDocumentAxis_S000044541MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0013 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Multi-Strategy Alternatives Portfolio (Advisor)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Multi-Strategy Alternatives Portfolio (Advisor)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_AdvisorMemberdeiDocumentInformationDocumentAxis_S000044541MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R133": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009354MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0133 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Government Money Market Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Government Money Market Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009354MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R134": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000044541MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0134 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Multi-Strategy Alternatives Portfolio (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
     "shortName": "Risk/Return Summary- Goldman Sachs Multi-Strategy Alternatives Portfolio (Service)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R139": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000044541MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0139 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Multi-Strategy Alternatives Portfolio (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Multi-Strategy Alternatives Portfolio (Service)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000044541MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R14": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009353MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0014 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Core Fixed Income Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
     "shortName": "Risk/Return Summary- Goldman Sachs Core Fixed Income Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R140": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009356MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0140 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Strategic Growth Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
     "shortName": "Risk/Return Summary- Goldman Sachs Strategic Growth Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R145": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009356MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0145 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Strategic Growth Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Strategic Growth Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009356MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R146": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009359MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0146 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs International Equity Insights Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
     "shortName": "Risk/Return Summary- Goldman Sachs International Equity Insights Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R151": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009359MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0151 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs International Equity Insights Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
     "shortName": "Risk/Return Detail Data- Goldman Sachs International Equity Insights Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009359MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R152": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009352MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0152 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs U.S. Equity Insights Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService",
     "shortName": "Risk/Return Summary- Goldman Sachs U.S. Equity Insights Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R157": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009352MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0157 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs U.S. Equity Insights Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
     "shortName": "Risk/Return Detail Data- Goldman Sachs U.S. Equity Insights Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009352MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R158": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009355MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0158 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Small Cap Equity Insights Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
     "shortName": "Risk/Return Summary- Goldman Sachs Small Cap Equity Insights Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R163": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009355MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0163 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Small Cap Equity Insights Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Small Cap Equity Insights Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009355MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R164": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:EntityRegistrantName",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "040000 - Disclosure - Risk/Return Detail Data {Elements}",
     "role": "http://xbrl.sec.gov/rr/role/RiskReturnDetailData",
     "shortName": "Risk/Return Detail Data",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009353MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0019 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Core Fixed Income Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Core Fixed Income Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009353MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_AdvisorMemberdeiDocumentInformationDocumentAxis_S000009362MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0002 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs High Quality Floating Rate Fund (Advisor)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
     "shortName": "Risk/Return Summary- Goldman Sachs High Quality Floating Rate Fund (Advisor)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R20": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000035992MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0020 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Global Trends Allocation Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
     "shortName": "Risk/Return Summary- Goldman Sachs Global Trends Allocation Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R25": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000035992MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0025 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Global Trends Allocation Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Global Trends Allocation Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000035992MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009360MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0026 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Growth Opportunities Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
     "shortName": "Risk/Return Summary- Goldman Sachs Growth Opportunities Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R31": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009360MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0031 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Growth Opportunities Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Growth Opportunities Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009360MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R32": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009362MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0032 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs High Quality Floating Rate Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
     "shortName": "Risk/Return Summary- Goldman Sachs High Quality Floating Rate Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R37": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009362MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0037 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs High Quality Floating Rate Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
     "shortName": "Risk/Return Detail Data- Goldman Sachs High Quality Floating Rate Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009362MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R38": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009357MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0038 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Large Cap Value Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
     "shortName": "Risk/Return Summary- Goldman Sachs Large Cap Value Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009357MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0043 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Large Cap Value Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Large Cap Value Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009357MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R44": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009358MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0044 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Mid Cap Value Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
     "shortName": "Risk/Return Summary- Goldman Sachs Mid Cap Value Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R49": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009358MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0049 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Mid Cap Value Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Mid Cap Value Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009358MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009354MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0050 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Government Money Market Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
     "shortName": "Risk/Return Summary- Goldman Sachs Government Money Market Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R55": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009354MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0055 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Government Money Market Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Government Money Market Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009354MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R56": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000044541MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0056 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Multi-Strategy Alternatives Portfolio (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
     "shortName": "Risk/Return Summary- Goldman Sachs Multi-Strategy Alternatives Portfolio (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R61": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000044541MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0061 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Multi-Strategy Alternatives Portfolio (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Multi-Strategy Alternatives Portfolio (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000044541MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R62": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009356MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0062 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Strategic Growth Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
     "shortName": "Risk/Return Summary- Goldman Sachs Strategic Growth Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R67": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009356MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0067 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Strategic Growth Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Strategic Growth Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009356MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R68": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009359MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0068 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs International Equity Insights Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
     "shortName": "Risk/Return Summary- Goldman Sachs International Equity Insights Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R7": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_AdvisorMemberdeiDocumentInformationDocumentAxis_S000009362MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0007 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs High Quality Floating Rate Fund (Advisor)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
     "shortName": "Risk/Return Detail Data- Goldman Sachs High Quality Floating Rate Fund (Advisor)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_AdvisorMemberdeiDocumentInformationDocumentAxis_S000009362MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R73": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009359MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0073 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs International Equity Insights Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
     "shortName": "Risk/Return Detail Data- Goldman Sachs International Equity Insights Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009359MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R74": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009355MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0074 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Small Cap Equity Insights Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
     "shortName": "Risk/Return Summary- Goldman Sachs Small Cap Equity Insights Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R79": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009355MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0079 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Small Cap Equity Insights Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Small Cap Equity Insights Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009355MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R8": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_AdvisorMemberdeiDocumentInformationDocumentAxis_S000044541MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0008 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Multi-Strategy Alternatives Portfolio (Advisor)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
     "shortName": "Risk/Return Summary- Goldman Sachs Multi-Strategy Alternatives Portfolio (Advisor)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R80": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009353MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0080 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Core Fixed Income Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
     "shortName": "Risk/Return Summary- Goldman Sachs Core Fixed Income Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R85": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009353MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0085 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Core Fixed Income Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Core Fixed Income Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009353MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R86": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009352MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0086 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs U.S. Equity Insights Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
     "shortName": "Risk/Return Summary- Goldman Sachs U.S. Equity Insights Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R91": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009352MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0091 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs U.S. Equity Insights Fund (Institutional)",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
     "shortName": "Risk/Return Detail Data- Goldman Sachs U.S. Equity Insights Fund (Institutional)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009352MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R92": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009361MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0092 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Equity Index Fund",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
     "shortName": "Risk/Return Summary- Goldman Sachs Equity Index Fund",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R97": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009361MemberdeiLegalEntityAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "0097 - Disclosure - Risk/Return Detail Data {Elements} - Goldman Sachs Equity Index Fund",
     "role": "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
     "shortName": "Risk/Return Detail Data- Goldman Sachs Equity Index Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009361MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:FeeWaiverOrReimbursementOverAssetsDateOfTermination",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R98": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000035992MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "false",
     "longName": "0098 - Document - Risk/Return Summary {Unlabeled} - Goldman Sachs Global Trends Allocation Fund (Service)",
     "role": "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
     "shortName": "Risk/Return Summary- Goldman Sachs Global Trends Allocation Fund (Service)",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "S1": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021",
      "decimals": null,
      "lang": "en-US",
      "name": "dei:DocumentEffectiveDate",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "true",
     "longName": "000001246 - Disclosure - Document and Entity Information",
     "section": 0,
     "shortName": "Document and Entity Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021",
      "decimals": null,
      "lang": "en-US",
      "name": "dei:DocumentEffectiveDate",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S10": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009354MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000020711 - Disclosure - Institutional, Goldman Sachs Government Money Market Fund",
     "section": 9,
     "shortName": "Institutional, Goldman Sachs Government Money Market Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009354MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S11": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000044541MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000022244 - Disclosure - Institutional, Goldman Sachs Multi-Strategy Alternatives Portfolio",
     "section": 10,
     "shortName": "Institutional, Goldman Sachs Multi-Strategy Alternatives Portfolio",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000044541MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S12": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009356MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000025572 - Disclosure - Institutional, Goldman Sachs Strategic Growth Fund",
     "section": 11,
     "shortName": "Institutional, Goldman Sachs Strategic Growth Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009356MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S13": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009359MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000027814 - Disclosure - Institutional, Goldman Sachs International Equity Insights Fund",
     "section": 12,
     "shortName": "Institutional, Goldman Sachs International Equity Insights Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009359MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S14": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009355MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000029899 - Disclosure - Institutional, Goldman Sachs Small Cap Equity Insights Fund",
     "section": 13,
     "shortName": "Institutional, Goldman Sachs Small Cap Equity Insights Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009355MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S15": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009353MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000031833 - Disclosure - Service, Goldman Sachs Core Fixed Income Fund",
     "section": 14,
     "shortName": "Service, Goldman Sachs Core Fixed Income Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009353MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S16": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009352MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000034398 - Disclosure - Institutional, Goldman Sachs U.S. Equity Insights Fund",
     "section": 15,
     "shortName": "Institutional, Goldman Sachs U.S. Equity Insights Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009352MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S17": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009361MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000036310 - Disclosure - Goldman Sachs Equity Index Fund",
     "section": 16,
     "shortName": "Goldman Sachs Equity Index Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009361MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S18": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000035992MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000038182 - Disclosure - Service, Goldman Sachs Global Trends Allocation Fund",
     "section": 17,
     "shortName": "Service, Goldman Sachs Global Trends Allocation Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000035992MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S19": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009360MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000040414 - Disclosure - Service, Goldman Sachs Growth Opportunities Fund",
     "section": 18,
     "shortName": "Service, Goldman Sachs Growth Opportunities Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009360MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S2": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_AdvisorMemberdeiDocumentInformationDocumentAxis_S000009362MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000001578 - Disclosure - Advisor, Goldman Sachs High Quality Floating Rate Fund",
     "section": 1,
     "shortName": "Advisor, Goldman Sachs High Quality Floating Rate Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_AdvisorMemberdeiDocumentInformationDocumentAxis_S000009362MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S20": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009362MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000042613 - Disclosure - Service, Goldman Sachs High Quality Floating Rate Fund",
     "section": 19,
     "shortName": "Service, Goldman Sachs High Quality Floating Rate Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009362MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S21": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009357MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000044889 - Disclosure - Service, Goldman Sachs Large Cap Value Fund",
     "section": 20,
     "shortName": "Service, Goldman Sachs Large Cap Value Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009357MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S22": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009358MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000047134 - Disclosure - Service, Goldman Sachs Mid Cap Value Fund",
     "section": 21,
     "shortName": "Service, Goldman Sachs Mid Cap Value Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009358MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S23": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009354MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000049416 - Disclosure - Service, Goldman Sachs Government Money Market Fund",
     "section": 22,
     "shortName": "Service, Goldman Sachs Government Money Market Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009354MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S24": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000044541MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000050999 - Disclosure - Service, Goldman Sachs Multi-Strategy Alternatives Portfolio",
     "section": 23,
     "shortName": "Service, Goldman Sachs Multi-Strategy Alternatives Portfolio",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000044541MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S25": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009356MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000054429 - Disclosure - Service, Goldman Sachs Strategic Growth Fund",
     "section": 24,
     "shortName": "Service, Goldman Sachs Strategic Growth Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009356MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S26": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009359MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000056941 - Disclosure - Service, Goldman Sachs International Equity Insights Fund",
     "section": 25,
     "shortName": "Service, Goldman Sachs International Equity Insights Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009359MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S27": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009352MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000059065 - Disclosure - Service, Goldman Sachs U.S. Equity Insights Fund",
     "section": 26,
     "shortName": "Service, Goldman Sachs U.S. Equity Insights Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009352MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S28": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009355MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000061029 - Disclosure - Service, Goldman Sachs Small Cap Equity Insights Fund",
     "section": 27,
     "shortName": "Service, Goldman Sachs Small Cap Equity Insights Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_S000009355MemberdeiLegalEntityAxis_ServiceMemberdeiDocumentInformationDocumentAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S3": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_AdvisorMemberdeiDocumentInformationDocumentAxis_S000044541MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000003868 - Disclosure - Advisor, Goldman Sachs Multi-Strategy Alternatives Portfolio",
     "section": 2,
     "shortName": "Advisor, Goldman Sachs Multi-Strategy Alternatives Portfolio",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_AdvisorMemberdeiDocumentInformationDocumentAxis_S000044541MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S4": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009353MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000007242 - Disclosure - Institutional, Goldman Sachs Core Fixed Income Fund",
     "section": 3,
     "shortName": "Institutional, Goldman Sachs Core Fixed Income Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009353MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S5": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000035992MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000009743 - Disclosure - Institutional, Goldman Sachs Global Trends Allocation Fund",
     "section": 4,
     "shortName": "Institutional, Goldman Sachs Global Trends Allocation Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000035992MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S6": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009360MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000011927 - Disclosure - Institutional, Goldman Sachs Growth Opportunities Fund",
     "section": 5,
     "shortName": "Institutional, Goldman Sachs Growth Opportunities Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009360MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S7": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009362MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000014087 - Disclosure - Institutional, Goldman Sachs High Quality Floating Rate Fund",
     "section": 6,
     "shortName": "Institutional, Goldman Sachs High Quality Floating Rate Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009362MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S8": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009357MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000016326 - Disclosure - Institutional, Goldman Sachs Large Cap Value Fund",
     "section": 7,
     "shortName": "Institutional, Goldman Sachs Large Cap Value Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009357MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "S9": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009358MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "RR_Summaries",
     "isDefault": "false",
     "longName": "000018514 - Disclosure - Institutional, Goldman Sachs Mid Cap Value Fund",
     "section": 8,
     "shortName": "Institutional, Goldman Sachs Mid Cap Value Fund",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d64930d485bpos.htm",
      "contextRef": "P04_30_2021To04_30_2021_InstitutionalMemberdeiDocumentInformationDocumentAxis_S000009358MemberdeiLegalEntityAxis",
      "decimals": null,
      "lang": "en-US",
      "name": "rr:RiskReturnHeading",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 57,
   "tag": {
    "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"
       }
      }
     },
     "localname": "AmendmentFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements"
     ],
     "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"
       }
      }
     },
     "localname": "DocumentCreationDate",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements",
      "http://xbrl.sec.gov/rr/role/RiskReturnDetailData"
     ],
     "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"
       }
      }
     },
     "localname": "DocumentDomain",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "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"
       }
      }
     },
     "localname": "DocumentEffectiveDate",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements"
     ],
     "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]"
       }
      }
     },
     "localname": "DocumentInformationDocumentAxis",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "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"
       }
      }
     },
     "localname": "DocumentPeriodEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements"
     ],
     "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"
       }
      }
     },
     "localname": "DocumentType",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements"
     ],
     "xbrltype": "submissionTypeItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r39"
     ],
     "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"
       }
      }
     },
     "localname": "EntityCentralIndexKey",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements"
     ],
     "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.",
        "label": "Series"
       }
      }
     },
     "localname": "EntityDomain",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "dei_EntityInvCompanyType": {
     "auth_ref": [
      "r40"
     ],
     "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": "Entity Inv Company Type"
       }
      }
     },
     "localname": "EntityInvCompanyType",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements"
     ],
     "xbrltype": "invCompanyType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r39"
     ],
     "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"
       }
      }
     },
     "localname": "EntityRegistrantName",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements",
      "http://xbrl.sec.gov/rr/role/RiskReturnDetailData"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_LegalEntityAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The set of legal entities associated with a report.",
        "label": "Series [Axis]"
       }
      }
     },
     "localname": "LegalEntityAxis",
     "nsuri": "http://xbrl.sec.gov/dei/2020-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "gsvit_AdvisorMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Advisor [Member]",
        "terseLabel": "Advisor"
       }
      }
     },
     "localname": "AdvisorMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_BloombergBarclaysUsAggregateBondIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bloomberg Barclays US Aggregate Bond Index [Member]",
        "terseLabel": "Bloomberg Barclays U.S. Aggregate Bond Index (reflects no deduction for fees or expenses)"
       }
      }
     },
     "localname": "BloombergBarclaysUsAggregateBondIndexMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_BloombergBarclaysUsTreasuryIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bloomberg Barclays US Treasury Index [Member]",
        "terseLabel": "Bloomberg Barclays U.S. Treasury Index (Total Return, USD, Unhedged) (reflects no deduction for fees or expenses)"
       }
      }
     },
     "localname": "BloombergBarclaysUsTreasuryIndexMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025633Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025633 [Member]",
        "terseLabel": "Institutional Shares",
        "verboseLabel": "Institutional"
       }
      }
     },
     "localname": "C000025633Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025634Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025634 [Member]",
        "verboseLabel": "Service Shares"
       }
      }
     },
     "localname": "C000025634Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025636Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025636 [Member]",
        "terseLabel": "Service Shares",
        "verboseLabel": "Service"
       }
      }
     },
     "localname": "C000025636Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025638Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025638 [Member]",
        "terseLabel": "Service Shares",
        "verboseLabel": "Service"
       }
      }
     },
     "localname": "C000025638Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025640Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025640 [Member]",
        "terseLabel": "Institutional Shares",
        "verboseLabel": "Institutional"
       }
      }
     },
     "localname": "C000025640Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025641Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025641 [Member]",
        "verboseLabel": "Service Shares"
       }
      }
     },
     "localname": "C000025641Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025643Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025643 [Member]",
        "terseLabel": "Institutional",
        "verboseLabel": "Institutional Shares"
       }
      }
     },
     "localname": "C000025643Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025644Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025644 [Member]",
        "verboseLabel": "Service Shares"
       }
      }
     },
     "localname": "C000025644Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025646Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025646 [Member]",
        "terseLabel": "Institutional",
        "verboseLabel": "Institutional Shares"
       }
      }
     },
     "localname": "C000025646Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025647Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025647 [Member]",
        "terseLabel": "Service",
        "verboseLabel": "Service Shares"
       }
      }
     },
     "localname": "C000025647Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025649Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025649 [Member]",
        "terseLabel": "Institutional",
        "verboseLabel": "Institutional Shares"
       }
      }
     },
     "localname": "C000025649Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025650Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025650 [Member]",
        "terseLabel": "Service",
        "verboseLabel": "Service Shares"
       }
      }
     },
     "localname": "C000025650Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025652Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025652 [Member]",
        "terseLabel": "Institutional",
        "verboseLabel": "Institutional Shares"
       }
      }
     },
     "localname": "C000025652Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025653Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025653 [Member]",
        "verboseLabel": "Service Shares"
       }
      }
     },
     "localname": "C000025653Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025655Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025655 [Member]",
        "terseLabel": "Service",
        "verboseLabel": "Service Shares"
       }
      }
     },
     "localname": "C000025655Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025657Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025657 [Member]",
        "terseLabel": "Service Shares",
        "verboseLabel": "Service"
       }
      }
     },
     "localname": "C000025657Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000025659Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025659 [Member]",
        "terseLabel": "Service",
        "verboseLabel": "Service Shares"
       }
      }
     },
     "localname": "C000025659Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000110307Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000110307 [Member]",
        "terseLabel": "Service",
        "verboseLabel": "Service Shares"
       }
      }
     },
     "localname": "C000110307Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000126077Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000126077 [Member]",
        "terseLabel": "Institutional Shares",
        "verboseLabel": "Institutional"
       }
      }
     },
     "localname": "C000126077Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000128922Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000128922 [Member]",
        "terseLabel": "Institutional",
        "verboseLabel": "Institutional Shares"
       }
      }
     },
     "localname": "C000128922Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000128923Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000128923 [Member]",
        "terseLabel": "Institutional",
        "verboseLabel": "Institutional Shares"
       }
      }
     },
     "localname": "C000128923Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000133599Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000133599 [Member]",
        "terseLabel": "Institutional Shares",
        "verboseLabel": "Institutional"
       }
      }
     },
     "localname": "C000133599Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000133600Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000133600 [Member]",
        "terseLabel": "Institutional Shares",
        "verboseLabel": "Institutional"
       }
      }
     },
     "localname": "C000133600Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000138559Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000138559 [Member]",
        "terseLabel": "Institutional Shares",
        "verboseLabel": "Institutional"
       }
      }
     },
     "localname": "C000138559Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000138560Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000138560 [Member]",
        "terseLabel": "Service",
        "verboseLabel": "Service Shares"
       }
      }
     },
     "localname": "C000138560Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000141036Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000141036 [Member]",
        "terseLabel": "Advisor",
        "verboseLabel": "Advisor Shares"
       }
      }
     },
     "localname": "C000141036Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_C000148078Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000148078 [Member]",
        "verboseLabel": "Advisor Shares"
       }
      }
     },
     "localname": "C000148078Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_IceBofamlThreemonthLiborConstantMaturityIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "ICE BofAML ThreeMonth LIBOR Constant Maturity Index [Member]",
        "terseLabel": "ICE BofAML Three-Month LIBOR Constant Maturity Index (reflects no deduction for fees or expenses)"
       }
      }
     },
     "localname": "IceBofamlThreemonthLiborConstantMaturityIndexMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_IceBofamlThreemonthUsTreasuryBillIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "ICE BofAML ThreeMonth US Treasury Bill Index [Member]",
        "terseLabel": "ICE BofAML Three-Month U.S. Treasury Bill Index (reflects no deduction for fees or expenses)",
        "verboseLabel": "ICE BofAML Three-Month U.S. Treasury Bill Index (reflects no deduction for fees or expenses"
       }
      }
     },
     "localname": "IceBofamlThreemonthUsTreasuryBillIndexMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_InstitutionalMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Institutional [Member]",
        "terseLabel": "Institutional"
       }
      }
     },
     "localname": "InstitutionalMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_MsciEafeStandardIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "MSCI EAFE Standard Index [Member]",
        "terseLabel": "MSCI EAFE Standard Index (Net, USD, Unhedged; reflects no deduction for fees or expenses)"
       }
      }
     },
     "localname": "MsciEafeStandardIndexMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_MsciWorldIndexnetUsdHedgedMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "MSCI World Index Net USD Hedged [Member]",
        "terseLabel": "MSCI World Index (Net, USD, Hedged) (reflects no deduction for fees or expenses)"
       }
      }
     },
     "localname": "MsciWorldIndexnetUsdHedgedMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_Russell1000GrowthIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Russell 1000 Growth Index [Member]",
        "terseLabel": "Russell 1000\u00ae Growth Index (reflects no deduction for fees or expenses)"
       }
      }
     },
     "localname": "Russell1000GrowthIndexMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_Russell1000ValueIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Russell 1000 Value Index [Member]",
        "terseLabel": "Russell 1000\u00ae Value Index (reflects no deduction for fees or expenses)"
       }
      }
     },
     "localname": "Russell1000ValueIndexMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_Russell2000IndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Russell 2000 Index [Member]",
        "terseLabel": "Russell 2000\u00ae Index (reflects no deduction for fees or expenses)"
       }
      }
     },
     "localname": "Russell2000IndexMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_RussellMidcapGrowthIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Russell Midcap Growth Index [Member]",
        "terseLabel": "Russell Midcap\u00ae Growth Index (reflects no deduction for fees or expenses)"
       }
      }
     },
     "localname": "RussellMidcapGrowthIndexMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_RussellMidcapValueIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Russell Midcap Value Index [Member]",
        "terseLabel": "Russell Midcap\u00ae Value Index (reflects no deduction for fees or expenses)"
       }
      }
     },
     "localname": "RussellMidcapValueIndexMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_S000009352Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "S000009352 [Member]",
        "terseLabel": "Goldman Sachs U.S. Equity Insights Fund"
       }
      }
     },
     "localname": "S000009352Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_S000009353Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "S000009353 [Member]",
        "terseLabel": "Goldman Sachs Core Fixed Income Fund"
       }
      }
     },
     "localname": "S000009353Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_S000009354Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "S000009354 [Member]",
        "terseLabel": "Goldman Sachs Government Money Market Fund"
       }
      }
     },
     "localname": "S000009354Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_S000009355Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "S000009355 [Member]",
        "terseLabel": "Goldman Sachs Small Cap Equity Insights Fund"
       }
      }
     },
     "localname": "S000009355Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_S000009356Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "S000009356 [Member]",
        "terseLabel": "Goldman Sachs Strategic Growth Fund"
       }
      }
     },
     "localname": "S000009356Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_S000009357Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "S000009357 [Member]",
        "terseLabel": "Goldman Sachs Large Cap Value Fund"
       }
      }
     },
     "localname": "S000009357Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_S000009358Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "S000009358 [Member]",
        "terseLabel": "Goldman Sachs Mid Cap Value Fund"
       }
      }
     },
     "localname": "S000009358Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_S000009359Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "S000009359 [Member]",
        "terseLabel": "Goldman Sachs International Equity Insights Fund"
       }
      }
     },
     "localname": "S000009359Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_S000009360Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "S000009360 [Member]",
        "terseLabel": "Goldman Sachs Growth Opportunities Fund"
       }
      }
     },
     "localname": "S000009360Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_S000009361Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "S000009361 [Member]",
        "terseLabel": "Goldman Sachs Equity Index Fund"
       }
      }
     },
     "localname": "S000009361Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_S000009362Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "S000009362 [Member]",
        "terseLabel": "Goldman Sachs High Quality Floating Rate Fund"
       }
      }
     },
     "localname": "S000009362Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_S000035992Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "S000035992 [Member]",
        "terseLabel": "Goldman Sachs Global Trends Allocation Fund"
       }
      }
     },
     "localname": "S000035992Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_S000044541Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "S000044541 [Member]",
        "terseLabel": "Goldman Sachs Multi-Strategy Alternatives Portfolio"
       }
      }
     },
     "localname": "S000044541Member",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_SP500IndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "S P 500 Index [Member]",
        "terseLabel": "S&amp;P 500\u00ae Index (reflects no deduction for fees or expenses)"
       }
      }
     },
     "localname": "SP500IndexMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_ServiceMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Service [Member]",
        "terseLabel": "Service"
       }
      }
     },
     "localname": "ServiceMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_SixtyMsciWorldFortyBloombergBarclaysUsTreasuryIndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sixty MSCI World Forty Bloomberg Barclays US Treasury Index [Member]",
        "terseLabel": "60% MSCI World / 40% Bloomberg Barclays U.S. Treasury Index"
       }
      }
     },
     "localname": "SixtyMsciWorldFortyBloombergBarclaysUsTreasuryIndexMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "gsvit_Sp500IndexMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "SP 500 Index [Member]",
        "terseLabel": "S&amp;P 500\u00ae Index (reflects no deduction for fees or expenses)"
       }
      }
     },
     "localname": "Sp500IndexMember",
     "nsuri": "http://www.gsamfunds.com/20210430",
     "presentation": [
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional"
     ],
     "xbrltype": "domainItemType"
    },
    "rr_AcquiredFundFeesAndExpensesOverAssets": {
     "auth_ref": [
      "r20"
     ],
     "calculation": {
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor": {
       "order": 7.0,
       "parentTag": "rr_ExpensesOverAssets",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Annual Fund Operating Expenses.",
        "label": "Acquired Fund Fees and Expenses",
        "terseLabel": "Acquired Fund Fees and Expenses",
        "verboseLabel": "Acquired (Underlying) Fund Fees and Expenses"
       }
      }
     },
     "localname": "AcquiredFundFeesAndExpensesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService"
     ],
     "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"
       }
      }
     },
     "localname": "AfterTaxesOnDistributionsAndSalesMember",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "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"
       }
      }
     },
     "localname": "AfterTaxesOnDistributionsMember",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "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]"
       }
      }
     },
     "localname": "AnnualFundOperatingExpensesTableTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_AnnualReturn2011": {
     "auth_ref": [
      "r36"
     ],
     "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 2011",
        "terseLabel": "2011"
       }
      }
     },
     "localname": "AnnualReturn2011",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2012": {
     "auth_ref": [
      "r34"
     ],
     "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": "2012"
       }
      }
     },
     "localname": "AnnualReturn2012",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2013": {
     "auth_ref": [
      "r34"
     ],
     "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": "2013"
       }
      }
     },
     "localname": "AnnualReturn2013",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2014": {
     "auth_ref": [
      "r34"
     ],
     "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": "2014"
       }
      }
     },
     "localname": "AnnualReturn2014",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2015": {
     "auth_ref": [
      "r34"
     ],
     "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": "2015"
       }
      }
     },
     "localname": "AnnualReturn2015",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2016": {
     "auth_ref": [
      "r34"
     ],
     "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": "2016"
       }
      }
     },
     "localname": "AnnualReturn2016",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2017": {
     "auth_ref": [
      "r34"
     ],
     "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": "2017"
       }
      }
     },
     "localname": "AnnualReturn2017",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2018": {
     "auth_ref": [
      "r34"
     ],
     "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": "2018"
       }
      }
     },
     "localname": "AnnualReturn2018",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2019": {
     "auth_ref": [
      "r34"
     ],
     "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": "2019"
       }
      }
     },
     "localname": "AnnualReturn2019",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AnnualReturn2020": {
     "auth_ref": [
      "r34"
     ],
     "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": "2020"
       }
      }
     },
     "localname": "AnnualReturn2020",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AverageAnnualReturnAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average Annual Return:"
       }
      }
     },
     "localname": "AverageAnnualReturnAbstract",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_AverageAnnualReturnInceptionDate": {
     "auth_ref": [
      "r38"
     ],
     "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.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "dateItemType"
    },
    "rr_AverageAnnualReturnSinceInception": {
     "auth_ref": [
      "r35"
     ],
     "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.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AverageAnnualReturnYear01": {
     "auth_ref": [
      "r35"
     ],
     "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.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AverageAnnualReturnYear05": {
     "auth_ref": [
      "r35"
     ],
     "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.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_AverageAnnualReturnYear10": {
     "auth_ref": [
      "r35"
     ],
     "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.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_BarChartAndPerformanceTableHeading": {
     "auth_ref": [
      "r32"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Risk/Return Bar Chart and Table.",
        "label": "Bar Chart and Performance Table [Heading]"
       }
      }
     },
     "localname": "BarChartAndPerformanceTableHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_BarChartClosingTextBlock": {
     "auth_ref": [
      "r34"
     ],
     "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]"
       }
      }
     },
     "localname": "BarChartClosingTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_BarChartHeading": {
     "auth_ref": [
      "r32"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Risk/Return Bar Chart and Table.",
        "label": "Bar Chart [Heading]"
       }
      }
     },
     "localname": "BarChartHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_BarChartHighestQuarterlyReturn": {
     "auth_ref": [
      "r34"
     ],
     "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"
       }
      }
     },
     "localname": "BarChartHighestQuarterlyReturn",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_BarChartHighestQuarterlyReturnDate": {
     "auth_ref": [
      "r34"
     ],
     "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"
       }
      }
     },
     "localname": "BarChartHighestQuarterlyReturnDate",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "dateItemType"
    },
    "rr_BarChartLowestQuarterlyReturn": {
     "auth_ref": [
      "r34"
     ],
     "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"
       }
      }
     },
     "localname": "BarChartLowestQuarterlyReturn",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_BarChartLowestQuarterlyReturnDate": {
     "auth_ref": [
      "r34"
     ],
     "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"
       }
      }
     },
     "localname": "BarChartLowestQuarterlyReturnDate",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "dateItemType"
    },
    "rr_BarChartTableAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bar Chart Table:"
       }
      }
     },
     "localname": "BarChartTableAbstract",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "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]"
       }
      }
     },
     "localname": "BarChartTableTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_Component1OtherExpensesOverAssets": {
     "auth_ref": [
      "r12"
     ],
     "calculation": {
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor": {
       "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": "Component1 Other Expenses",
        "terseLabel": "Service Fees"
       }
      }
     },
     "localname": "Component1OtherExpensesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor"
     ],
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_Component2OtherExpensesOverAssets": {
     "auth_ref": [
      "r19"
     ],
     "calculation": {
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor": {
       "order": 4.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": "Component2 Other Expenses",
        "terseLabel": "All Other Expenses"
       }
      }
     },
     "localname": "Component2OtherExpensesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor"
     ],
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_CoregistrantAxis": {
     "auth_ref": [
      "r0"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Coregistrant Axis may be used to distinguish disclosures that belong to registrants having different Central Index Key (CIK) values that nevertheless all present in the same filing.",
        "label": "Coregistrant [Axis]"
       }
      }
     },
     "localname": "CoregistrantAxis",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_CoregistrantDomain": {
     "auth_ref": [
      "r1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The default member of the Coregistrant axis. It represents any disclosure that applies to the registrant whose Central Index Key (CIK) is that of the default context.",
        "label": "Coregistrant [Domain]"
       }
      }
     },
     "localname": "CoregistrantDomain",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "rr_DistributionAndService12b1FeesOverAssets": {
     "auth_ref": [
      "r22"
     ],
     "calculation": {
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor": {
       "order": 6.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 Service (12b-1) Fees",
        "terseLabel": "Distribution (12b-1) Fees",
        "verboseLabel": "Distribution and Service (12b-1) Fees"
       }
      }
     },
     "localname": "DistributionAndService12b1FeesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_ExpenseExampleAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Example:"
       }
      }
     },
     "localname": "ExpenseExampleAbstract",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_ExpenseExampleHeading": {
     "auth_ref": [
      "r17"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Heading for Expense Example.",
        "label": "Expense Example [Heading]"
       }
      }
     },
     "localname": "ExpenseExampleHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "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]"
       }
      }
     },
     "localname": "ExpenseExampleNarrativeTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "textBlockItemType"
    },
    "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]"
       }
      }
     },
     "localname": "ExpenseExampleNoRedemptionTableTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "textBlockItemType"
    },
    "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]"
       }
      }
     },
     "localname": "ExpenseExampleWithRedemptionTableTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_ExpenseExampleYear01": {
     "auth_ref": [
      "r17"
     ],
     "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.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "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.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "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.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "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.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "NonNegativeMonetaryType"
    },
    "rr_ExpenseHeading": {
     "auth_ref": [
      "r9"
     ],
     "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]"
       }
      }
     },
     "localname": "ExpenseHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_ExpenseNarrativeTextBlock": {
     "auth_ref": [
      "r8"
     ],
     "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]"
       }
      }
     },
     "localname": "ExpenseNarrativeTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_ExpensesNotCorrelatedToRatioDueToAcquiredFundFees": {
     "auth_ref": [
      "r16"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Fund may clarify in a footnote to the fee table that the total annual fund operating expenses under Item 3 do not correlate to the ratio of expenses to average net assets given in response to Item 8, which reflects the operating expenses of the Fund and does not include Acquired Fund fees and expenses.",
        "label": "Expenses Not Correlated to Ratio Due to Acquired Fund Fees [Text]"
       }
      }
     },
     "localname": "ExpensesNotCorrelatedToRatioDueToAcquiredFundFees",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_ExpensesOverAssets": {
     "auth_ref": [
      "r13"
     ],
     "calculation": {
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor": {
       "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": "Expenses (as a percentage of Assets)",
        "terseLabel": "Total Annual Fund Operating Expenses",
        "totalLabel": "Total Annual Fund Operating Expenses"
       }
      }
     },
     "localname": "ExpensesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_ExpensesRestatedToReflectCurrent": {
     "auth_ref": [
      "r14"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "In a footnote to the table, disclose that the expense information in the table has been restated to reflect current fees.",
        "label": "Expenses Restated to Reflect Current [Text]"
       }
      }
     },
     "localname": "ExpensesRestatedToReflectCurrent",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_FeeWaiverOrReimbursementOverAssets": {
     "auth_ref": [
      "r20"
     ],
     "calculation": {
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor": {
       "order": 8.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": "Fee Waiver or Reimbursement",
        "terseLabel": "Expense Limitation",
        "verboseLabel": "Fee Waiver and Expense Limitation"
       }
      }
     },
     "localname": "FeeWaiverOrReimbursementOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "NonPositivePure4Type"
    },
    "rr_FeeWaiverOrReimbursementOverAssetsDateOfTermination": {
     "auth_ref": [
      "r15"
     ],
     "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"
       }
      }
     },
     "localname": "FeeWaiverOrReimbursementOverAssetsDateOfTermination",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_HighestQuarterlyReturnLabel": {
     "auth_ref": [
      "r34"
     ],
     "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"
       }
      }
     },
     "localname": "HighestQuarterlyReturnLabel",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_LowestQuarterlyReturnLabel": {
     "auth_ref": [
      "r34"
     ],
     "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"
       }
      }
     },
     "localname": "LowestQuarterlyReturnLabel",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_ManagementFeesOverAssets": {
     "auth_ref": [
      "r10"
     ],
     "calculation": {
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor": {
       "order": 5.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 a percentage of Assets)",
        "terseLabel": "Management Fees"
       }
      }
     },
     "localname": "ManagementFeesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_NetExpensesOverAssets": {
     "auth_ref": [
      "r20"
     ],
     "calculation": {
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Annual Fund Operating Expenses.",
        "label": "Net Expenses (as a percentage of Assets)",
        "terseLabel": "Total Annual Fund Operating Expenses After Expense Limitation",
        "totalLabel": "Total Annual Fund Operating Expenses After Fee Waiver and Expense Limitation",
        "verboseLabel": "Total Annual Fund Operating Expenses After Fee Waiver and Expense Limitation"
       }
      }
     },
     "localname": "NetExpensesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "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]"
       }
      }
     },
     "localname": "ObjectiveHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "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]"
       }
      }
     },
     "localname": "ObjectivePrimaryTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_OperatingExpensesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Expenses:"
       }
      }
     },
     "localname": "OperatingExpensesAbstract",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_OperatingExpensesCaption": {
     "auth_ref": [
      "r21"
     ],
     "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]"
       }
      }
     },
     "localname": "OperatingExpensesCaption",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_OtherExpensesOverAssets": {
     "auth_ref": [
      "r11"
     ],
     "calculation": {
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor": {
       "order": 2.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 (as a percentage of Assets):",
        "terseLabel": "Other Expenses",
        "totalLabel": "Other Expenses"
       }
      }
     },
     "localname": "OtherExpensesOverAssets",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "NonNegativePure4Type"
    },
    "rr_PerformanceAvailabilityWebSiteAddress": {
     "auth_ref": [
      "r33"
     ],
     "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]"
       }
      }
     },
     "localname": "PerformanceAvailabilityWebSiteAddress",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_PerformanceInformationIllustratesVariabilityOfReturns": {
     "auth_ref": [
      "r33"
     ],
     "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]"
       }
      }
     },
     "localname": "PerformanceInformationIllustratesVariabilityOfReturns",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "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]"
       }
      }
     },
     "localname": "PerformanceMeasureAxis",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "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"
       }
      }
     },
     "localname": "PerformanceMeasureDomain",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "rr_PerformanceNarrativeTextBlock": {
     "auth_ref": [
      "r32"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Risk/Return Bar Chart and Table.",
        "label": "Performance Narrative [Text Block]"
       }
      }
     },
     "localname": "PerformanceNarrativeTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_PerformancePastDoesNotIndicateFuture": {
     "auth_ref": [
      "r33"
     ],
     "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]"
       }
      }
     },
     "localname": "PerformancePastDoesNotIndicateFuture",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_PerformanceTableHeading": {
     "auth_ref": [
      "r37"
     ],
     "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"
       }
      }
     },
     "localname": "PerformanceTableHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "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]"
       }
      }
     },
     "localname": "PerformanceTableTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_PortfolioTurnoverHeading": {
     "auth_ref": [
      "r18"
     ],
     "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]"
       }
      }
     },
     "localname": "PortfolioTurnoverHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_PortfolioTurnoverRate": {
     "auth_ref": [
      "r7"
     ],
     "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"
       }
      }
     },
     "localname": "PortfolioTurnoverRate",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "pureItemType"
    },
    "rr_PortfolioTurnoverTextBlock": {
     "auth_ref": [
      "r7"
     ],
     "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]"
       }
      }
     },
     "localname": "PortfolioTurnoverTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_ProspectusDate": {
     "auth_ref": [
      "r2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The date of the prospectus.",
        "label": "Prospectus Date"
       }
      }
     },
     "localname": "ProspectusDate",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements",
      "http://xbrl.sec.gov/rr/role/RiskReturnDetailData"
     ],
     "xbrltype": "dateItemType"
    },
    "rr_ProspectusLineItems": {
     "auth_ref": [
      "r0"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prospectus [Line Items]"
       }
      }
     },
     "localname": "ProspectusLineItems",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_ProspectusShareClassAxis": {
     "auth_ref": [
      "r0"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Share Class Axis.",
        "label": "Share Class [Axis]"
       }
      }
     },
     "localname": "ProspectusShareClassAxis",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_ProspectusTable": {
     "auth_ref": [
      "r0"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Prospectus Table.",
        "label": "Prospectus:"
       }
      }
     },
     "localname": "ProspectusTable",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "xbrltype": "stringItemType"
    },
    "rr_RiskHeading": {
     "auth_ref": [
      "r24"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Narrative Risk Disclosure.",
        "label": "Risk [Heading]"
       }
      }
     },
     "localname": "RiskHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_RiskLoseMoney": {
     "auth_ref": [
      "r25",
      "r27",
      "r28",
      "r29"
     ],
     "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]"
       }
      }
     },
     "localname": "RiskLoseMoney",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_RiskMoneyMarketFundMayNotPreserveDollar": {
     "auth_ref": [
      "r28",
      "r29"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Include the statement \"Although the Fund seeks to preserve the value of your investment at $1.00 per share, it cannot guarantee it will do so.\"",
        "label": "Risk Money Market Fund May Not Preserve Dollar [Text]"
       }
      }
     },
     "localname": "RiskMoneyMarketFundMayNotPreserveDollar",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_RiskMoneyMarketFundSponsorMayNotProvideSupport": {
     "auth_ref": [
      "r27",
      "r28",
      "r29"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Include the statement \"The Fund's sponsor has no legal obligation to provide financial support to the Fund, and you should not expect that the sponsor will provide financial support to the Fund at any time.\"",
        "label": "Risk Money Market Fund Sponsor May Not Provide Support [Text]"
       }
      }
     },
     "localname": "RiskMoneyMarketFundSponsorMayNotProvideSupport",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_RiskNarrativeTextBlock": {
     "auth_ref": [
      "r26"
     ],
     "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]"
       }
      }
     },
     "localname": "RiskNarrativeTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_RiskNondiversifiedStatus": {
     "auth_ref": [
      "r31"
     ],
     "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]"
       }
      }
     },
     "localname": "RiskNondiversifiedStatus",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_RiskNotInsuredDepositoryInstitution": {
     "auth_ref": [
      "r30"
     ],
     "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]"
       }
      }
     },
     "localname": "RiskNotInsuredDepositoryInstitution",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_RiskReturnAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk/Return:"
       }
      }
     },
     "localname": "RiskReturnAbstract",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "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]"
       }
      }
     },
     "localname": "RiskReturnHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "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.",
        "label": "Share Classes"
       }
      }
     },
     "localname": "ShareClassDomain",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualFundOperatingExpensesGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AnnualTotalReturnsBarChartGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/AverageAnnualTotalReturnsTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/DocumentAndEntityInformationElements",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/ExpenseExampleTransposedGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "domainItemType"
    },
    "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]"
       }
      }
     },
     "localname": "ShareholderFeesTableTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "textBlockItemType"
    },
    "rr_StrategyHeading": {
     "auth_ref": [
      "r23"
     ],
     "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]"
       }
      }
     },
     "localname": "StrategyHeading",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "stringItemType"
    },
    "rr_StrategyNarrativeTextBlock": {
     "auth_ref": [
      "r23"
     ],
     "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]"
       }
      }
     },
     "localname": "StrategyNarrativeTextBlock",
     "nsuri": "http://xbrl.sec.gov/rr/2018-01-31",
     "presentation": [
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnDetailDataElementsGoldmanSachsUSEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsCoreFixedIncomeFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsEquityIndexFund",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGlobalTrendsAllocationFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGovernmentMoneyMarketFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsGrowthOpportunitiesFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsHighQualityFloatingRateFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsInternationalEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsLargeCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMidCapValueFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioAdvisor",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsMultiStrategyAlternativesPortfolioService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsSmallCapEquityInsightsFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsStrategicGrowthFundService",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundInstitutional",
      "http://www.gsamfunds.com/role/RiskReturnSummaryUnlabeledGoldmanSachsUSEquityInsightsFundService"
     ],
     "xbrltype": "textBlockItemType"
    }
   },
   "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": "3",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "a",
   "Subsection": "instructions"
  },
  "r11": {
   "Chapter": "A",
   "Clause": "i",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "3",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "c",
   "Subsection": "instructions"
  },
  "r12": {
   "Chapter": "A",
   "Clause": "iii",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "3",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "c",
   "Subsection": "instructions"
  },
  "r13": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "3",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "d",
   "Subsection": "instructions"
  },
  "r14": {
   "Chapter": "A",
   "Clause": "ii",
   "Exhibit": "B",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "3",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "d",
   "Subsection": "instructions"
  },
  "r15": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "3",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "e",
   "Subsection": "instructions"
  },
  "r16": {
   "Chapter": "A",
   "Clause": "vii",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "3",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "f",
   "Subsection": "instructions"
  },
  "r17": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "4",
   "Publisher": "SEC",
   "Section": "3",
   "Subsection": "instructions"
  },
  "r18": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "5",
   "Publisher": "SEC",
   "Section": "3",
   "Subsection": "instructions"
  },
  "r19": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "10",
   "Subsection": "table"
  },
  "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": "1",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "11",
   "Subsection": "table"
  },
  "r21": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "7",
   "Subsection": "table"
  },
  "r22": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "9",
   "Subsection": "table"
  },
  "r23": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Publisher": "SEC",
   "Section": "4",
   "Subsection": "a"
  },
  "r24": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "4",
   "Subsection": "b"
  },
  "r25": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "i",
   "Subsection": "b"
  },
  "r26": {
   "Chapter": "A",
   "Clause": "instruction",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "i",
   "Subsection": "b"
  },
  "r27": {
   "Chapter": "A",
   "Clause": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "ii",
   "Subsection": "b"
  },
  "r28": {
   "Chapter": "A",
   "Clause": "B",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "ii",
   "Subsection": "b"
  },
  "r29": {
   "Chapter": "A",
   "Clause": "C",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "ii",
   "Subsection": "b"
  },
  "r3": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Publisher": "SEC",
   "Section": "2"
  },
  "r30": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "iii",
   "Subsection": "b"
  },
  "r31": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "iv",
   "Subsection": "b"
  },
  "r32": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subsection": "b"
  },
  "r33": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "i",
   "Subsection": "b"
  },
  "r34": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "ii",
   "Subsection": "b"
  },
  "r35": {
   "Chapter": "A",
   "Clause": "1",
   "Exhibit": "2",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "iii",
   "Subsection": "b"
  },
  "r36": {
   "Chapter": "A",
   "Clause": "3",
   "Exhibit": "a",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "instructions",
   "Subsection": "b"
  },
  "r37": {
   "Chapter": "A",
   "Clause": "3",
   "Exhibit": "c",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "instructions",
   "Subsection": "b"
  },
  "r38": {
   "Chapter": "A",
   "Clause": "4",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "2",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "instructions",
   "Subsection": "b"
  },
  "r39": {
   "Name": "Regulation 12B",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r4": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Publisher": "SEC",
   "Section": "2",
   "Subsection": "a"
  },
  "r40": {
   "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": "3",
   "Publisher": "SEC",
   "Section": "3",
   "Subsection": "example"
  },
  "r8": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "b",
   "Subsection": "instructions"
  },
  "r9": {
   "Chapter": "A",
   "Name": "Form",
   "Number": "N-1A",
   "Paragraph": "1",
   "Publisher": "SEC",
   "Section": "3",
   "Subparagraph": "d",
   "Subsection": "instructions"
  }
 },
 "version": "2.1"
}
