<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.19.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>303</ContextCount>
  <ElementCount>376</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>80</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Condensed Consolidated Balance Sheets (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/StatementCondensedConsolidatedBalanceSheetsUnaudited</Role>
      <ShortName>Condensed Consolidated Balance Sheets (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - Condensed Consolidated Balance Sheets (unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Condensed Consolidated Statements of Operations (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/StatementCondensedConsolidatedStatementsOfOperationsUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Operations (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Condensed Consolidated Statements of Comprehensive Loss (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveLossUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Loss (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - Condensed Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Statement - Condensed Consolidated Statements of Stockholders' Equity(Deficit) (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/StatementCondensedConsolidatedStatementsOfStockholdersEquityDeficitUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Stockholders' Equity(Deficit) (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Disclosure - Description of Business and Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureDescriptionOfBusinessAndSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Disclosure - Cash Equivalents and Marketable Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureCashEquivalentsAndMarketableSecurities</Role>
      <ShortName>Cash Equivalents and Marketable Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Fair Value of Assets and Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureFairValueOfAssetsAndLiabilities</Role>
      <ShortName>Fair Value of Assets and Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Derivative Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureDerivativeInstruments</Role>
      <ShortName>Derivative Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Balance Sheet Components</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureBalanceSheetComponents</Role>
      <ShortName>Balance Sheet Components</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Business Combinations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureBusinessCombinations</Role>
      <ShortName>Business Combinations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Goodwill And Intangible Assets, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsNet</Role>
      <ShortName>Goodwill And Intangible Assets, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Equity Incentive Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureEquityIncentivePlans</Role>
      <ShortName>Equity Incentive Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Net Loss Per Share Attributable to Common Stockholders</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureNetLossPerShareAttributableToCommonStockholders</Role>
      <ShortName>Net Loss Per Share Attributable to Common Stockholders</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Description of Business and Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureDescriptionOfBusinessAndSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.medallia.com/20190731/taxonomy/role/DisclosureDescriptionOfBusinessAndSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>19</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Description of Business and Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureDescriptionOfBusinessAndSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.medallia.com/20190731/taxonomy/role/DisclosureDescriptionOfBusinessAndSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Cash Equivalents and Marketable Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureCashEquivalentsAndMarketableSecuritiesTables</Role>
      <ShortName>Cash Equivalents and Marketable Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.medallia.com/20190731/taxonomy/role/DisclosureCashEquivalentsAndMarketableSecurities</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Fair Value of Assets and Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureFairValueOfAssetsAndLiabilitiesTables</Role>
      <ShortName>Fair Value of Assets and Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.medallia.com/20190731/taxonomy/role/DisclosureFairValueOfAssetsAndLiabilities</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Derivative Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureDerivativeInstrumentsTables</Role>
      <ShortName>Derivative Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.medallia.com/20190731/taxonomy/role/DisclosureDerivativeInstruments</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Balance Sheet Components (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureBalanceSheetComponentsTables</Role>
      <ShortName>Balance Sheet Components (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.medallia.com/20190731/taxonomy/role/DisclosureBalanceSheetComponents</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Business Combinations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureBusinessCombinationsTables</Role>
      <ShortName>Business Combinations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.medallia.com/20190731/taxonomy/role/DisclosureBusinessCombinations</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Goodwill And Intangible Assets, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsNetTables</Role>
      <ShortName>Goodwill And Intangible Assets, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.medallia.com/20190731/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsNet</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Equity Incentive Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureEquityIncentivePlansTables</Role>
      <ShortName>Equity Incentive Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.medallia.com/20190731/taxonomy/role/DisclosureEquityIncentivePlans</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Net Loss Per Share Attributable to Common Stockholders (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureNetLossPerShareAttributableToCommonStockholdersTables</Role>
      <ShortName>Net Loss Per Share Attributable to Common Stockholders (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.medallia.com/20190731/taxonomy/role/DisclosureNetLossPerShareAttributableToCommonStockholders</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Description of Business and Summary of Significant Accounting Policies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureDescriptionOfBusinessAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Description of Business and Summary of Significant Accounting Policies - Additional Information (Details1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureDescriptionOfBusinessAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails1</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies - Additional Information (Details1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Description of Business and Summary of Significant Accounting Policies - Summary of Revenue by Geographic Area (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureDescriptionOfBusinessAndSummaryOfSignificantAccountingPoliciesSummaryOfRevenueByGeographicAreaDetails</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies - Summary of Revenue by Geographic Area (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Cash Equivalents and Marketable Securities - Summary of Cash Equivalents and Marketable Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureCashEquivalentsAndMarketableSecuritiesSummaryOfCashEquivalentsAndMarketableSecuritiesDetails</Role>
      <ShortName>Cash Equivalents and Marketable Securities - Summary of Cash Equivalents and Marketable Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Cash Equivalents and Marketable Securities - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureCashEquivalentsAndMarketableSecuritiesAdditionalInformationDetails</Role>
      <ShortName>Cash Equivalents and Marketable Securities - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Fair Value of Assets and Liabilities - Fair Value of Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureFairValueOfAssetsAndLiabilitiesFairValueOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails</Role>
      <ShortName>Fair Value of Assets and Liabilities - Fair Value of Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Derivative Instruments - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureDerivativeInstrumentsAdditionalInformationDetails</Role>
      <ShortName>Derivative Instruments - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Derivative Instruments - Summary of Fair Values of Outstanding Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureDerivativeInstrumentsSummaryOfFairValuesOfOutstandingDerivativeInstrumentsDetails</Role>
      <ShortName>Derivative Instruments - Summary of Fair Values of Outstanding Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Derivative Instruments - Summary of Gains (Losses) Associated with Foreign Currency Forward Contracts Designated as Cash Flow Hedges (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureDerivativeInstrumentsSummaryOfGainsLossesAssociatedWithForeignCurrencyForwardContractsDesignatedAsCashFlowHedgesDetails</Role>
      <ShortName>Derivative Instruments - Summary of Gains (Losses) Associated with Foreign Currency Forward Contracts Designated as Cash Flow Hedges (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Derivative Instruments - Summary of Gains (Losses) Associated with Foreign Currency Forward Contracts Not Designated as Cash Flow Hedges (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureDerivativeInstrumentsSummaryOfGainsLossesAssociatedWithForeignCurrencyForwardContractsNotDesignatedAsCashFlowHedgesDetails</Role>
      <ShortName>Derivative Instruments - Summary of Gains (Losses) Associated with Foreign Currency Forward Contracts Not Designated as Cash Flow Hedges (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Derivative Instruments - Summary of Offsetting Arrangements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureDerivativeInstrumentsSummaryOfOffsettingArrangementsDetails</Role>
      <ShortName>Derivative Instruments - Summary of Offsetting Arrangements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Balance Sheet Components - Summary of Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureBalanceSheetComponentsSummaryOfPropertyAndEquipmentDetails</Role>
      <ShortName>Balance Sheet Components - Summary of Property and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Balance Sheet Components - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureBalanceSheetComponentsAdditionalInformationDetails</Role>
      <ShortName>Balance Sheet Components - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100420 - Disclosure - Balance Sheet Components - Summary of Accrued Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureBalanceSheetComponentsSummaryOfAccruedCompensationDetails</Role>
      <ShortName>Balance Sheet Components - Summary of Accrued Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Business Combinations - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureBusinessCombinationsAdditionalInformationDetails</Role>
      <ShortName>Business Combinations - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Business Combinations - Schedule of Acquisition Consideration and Related Fair Values of Assets Acquired and Liabilities Assumed (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureBusinessCombinationsScheduleOfAcquisitionConsiderationAndRelatedFairValuesOfAssetsAcquiredAndLiabilitiesAssumedDetails</Role>
      <ShortName>Business Combinations - Schedule of Acquisition Consideration and Related Fair Values of Assets Acquired and Liabilities Assumed (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Goodwill and Intangible Assets, Net - Schedule of Changes in the Carrying Value of Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsNetScheduleOfChangesInCarryingValueOfGoodwillDetails</Role>
      <ShortName>Goodwill and Intangible Assets, Net - Schedule of Changes in the Carrying Value of Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Goodwill and Intangible Assets, Net - Schedule of Carrying Amount of Intangible Asset, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsNetScheduleOfCarryingAmountOfIntangibleAssetNetDetails</Role>
      <ShortName>Goodwill and Intangible Assets, Net - Schedule of Carrying Amount of Intangible Asset, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Goodwill and Intangible Assets, Net - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsNetAdditionalInformationDetails</Role>
      <ShortName>Goodwill and Intangible Assets, Net - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Goodwill and Intangible Assets, Net - Estimated Aggregate Future Amortization Expense of Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsNetEstimatedAggregateFutureAmortizationExpenseOfIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Intangible Assets, Net - Estimated Aggregate Future Amortization Expense of Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100490 - Disclosure - Commitments and Contingencies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureCommitmentsAndContingenciesAdditionalInformationDetails</Role>
      <ShortName>Commitments and Contingencies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Income Taxes - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetails</Role>
      <ShortName>Income Taxes - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Equity Incentive Plans - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureEquityIncentivePlansAdditionalInformationDetails</Role>
      <ShortName>Equity Incentive Plans - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Equity Incentive Plans - Schedule of 2019 Plan Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureEquityIncentivePlansScheduleOf2019PlanActivityDetails</Role>
      <ShortName>Equity Incentive Plans - Schedule of 2019 Plan Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Equity Incentive Plans - Summary of Stock-based Compensation Expense by Classification in Unaudited Condensed Consolidated Statements of Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureEquityIncentivePlansSummaryOfStockBasedCompensationExpenseByClassificationInUnauditedCondensedConsolidatedStatementsOfOperationsDetails</Role>
      <ShortName>Equity Incentive Plans - Summary of Stock-based Compensation Expense by Classification in Unaudited Condensed Consolidated Statements of Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Equity Incentive Plans - Schedule of Estimated Fair Value of Stock Option Granted to Employees (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureEquityIncentivePlansScheduleOfEstimatedFairValueOfStockOptionGrantedToEmployeesDetails</Role>
      <ShortName>Equity Incentive Plans - Schedule of Estimated Fair Value of Stock Option Granted to Employees (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100550 - Disclosure - Equity Incentive Plans - Summary of Stock Option Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureEquityIncentivePlansSummaryOfStockOptionActivityDetails</Role>
      <ShortName>Equity Incentive Plans - Summary of Stock Option Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100560 - Disclosure - Equity Incentive Plans - Summary of Restricted Stock Unit Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureEquityIncentivePlansSummaryOfRestrictedStockUnitActivityDetails</Role>
      <ShortName>Equity Incentive Plans - Summary of Restricted Stock Unit Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Equity Incentive Plans - Schedule of Estimated Fair Value of ESPP Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureEquityIncentivePlansScheduleOfEstimatedFairValueOfESPPShareDetails</Role>
      <ShortName>Equity Incentive Plans - Schedule of Estimated Fair Value of ESPP Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Net Loss Per Share Attributable to Common Stockholders - Schedule of Basic and Diluted Net Loss Per Share Attributable to Common Stockholders (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureNetLossPerShareAttributableToCommonStockholdersScheduleOfBasicAndDilutedNetLossPerShareAttributableToCommonStockholdersDetails</Role>
      <ShortName>Net Loss Per Share Attributable to Common Stockholders - Schedule of Basic and Diluted Net Loss Per Share Attributable to Common Stockholders (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="mdla-20190731.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100590 - Disclosure - Net Loss Per Share Attributable to Common Stockholders - Schedule of Potential Shares of Common Stock Equivalents Excluded From Computation of Diluted Net Loss Per Share Attributable to Common Stockholders (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.medallia.com/20190731/taxonomy/role/DisclosureNetLossPerShareAttributableToCommonStockholdersScheduleOfPotentialSharesOfCommonStockEquivalentsExcludedFromComputationOfDilutedNetLossPerShareAttributableToCommonStockholdersDetails</Role>
      <ShortName>Net Loss Per Share Attributable to Common Stockholders - Schedule of Potential Shares of Common Stock Equivalents Excluded From Computation of Diluted Net Loss Per Share Attributable to Common Stockholders (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>mdla-20190731.xml</File>
    <File>mdla-20190731.xsd</File>
    <File>mdla-20190731_cal.xml</File>
    <File>mdla-20190731_def.xml</File>
    <File>mdla-20190731_lab.xml</File>
    <File>mdla-20190731_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://xbrl.sec.gov/country/2017-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2019-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
