<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="temf-20260831.xsd" xlink:type="simple"/>
    <context id="c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000809708</identifier>
        </entity>
        <period>
            <startDate>2025-09-01</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <dei:DocumentType contextRef="c0" id="ixv-27945">N-CSR</dei:DocumentType>
    <dei:EntityRegistrantName contextRef="c0" id="ixv-40">Templeton Emerging Markets Fund</dei:EntityRegistrantName>
    <dei:DocumentPeriodEndDate contextRef="c0" id="ixv-79">2026-08-31</dei:DocumentPeriodEndDate>
    <dei:EntityCentralIndexKey contextRef="c0" id="ixv-27948">0000809708</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="c0" id="ixv-27949">false</dei:AmendmentFlag>
</xbrl>
