<?xml version="1.0" encoding="UTF-8"?>
<edgarSubmission xmlns="http://www.sec.gov/edgar/thirteenffiler" xmlns:com="http://www.sec.gov/edgar/common">
  <headerData>
    <submissionType>13F-HR</submissionType>
    <filerInfo>
      <liveTestFlag>LIVE</liveTestFlag>
      <flags>
        <confirmingCopyFlag>false</confirmingCopyFlag>
        <returnCopyFlag>true</returnCopyFlag>
        <overrideInternetFlag>false</overrideInternetFlag>
      </flags>
      <filer>
        <credentials>
          <cik>0001423080</cik>
          <ccc>XXXXXXXX</ccc>
        </credentials>
      </filer>
      <periodOfReport>09-30-2019</periodOfReport>
    </filerInfo>
  </headerData>
  <formData>
    <coverPage>
      <reportCalendarOrQuarter>09-30-2019</reportCalendarOrQuarter>
      <filingManager>
        <name>Yorktown Energy Partners VII, L.P.</name>
        <address>
          <com:street1>410 PARK AVENUE</com:street1>
          <com:street2>19TH FLOOR</com:street2>
          <com:city>NEW YORK</com:city>
          <com:stateOrCountry>NY</com:stateOrCountry>
          <com:zipCode>10022</com:zipCode>
        </address>
      </filingManager>
      <reportType>13F HOLDINGS REPORT</reportType>
      <form13FFileNumber>028-17368</form13FFileNumber>
      <provideInfoForInstruction5>Y</provideInfoForInstruction5>
      <additionalInformation>Yorktown VII Company LP is the sole general partner of Yorktown Energy Partners VII, L.P. Yorktown VII Associates LLC is the sole general partner of Yorktown VII Company LP. As a result, Yorktown VII Associates LLC and Yorktown VII Company LP may be deemed to have the power to vote or direct the vote or to dispose or direct the disposition of the shares owned by Yorktown Energy Partners VII, L.P.</additionalInformation>
    </coverPage>
    <signatureBlock>
      <name>Bryan H. Lawrence</name>
      <title>Managing Member of the General Partner's General Partner</title>
      <phone>212-515-2112</phone>
      <signature>/s/ Bryan H. Lawrence</signature>
      <city>New York</city>
      <stateOrCountry>NY</stateOrCountry>
      <signatureDate>11-14-2019</signatureDate>
    </signatureBlock>
    <summaryPage>
      <otherIncludedManagersCount>2</otherIncludedManagersCount>
      <tableEntryTotal>4</tableEntryTotal>
      <tableValueTotal>28540</tableValueTotal>
      <isConfidentialOmitted>false</isConfidentialOmitted>
      <otherManagers2Info>
        <otherManager2>
          <sequenceNumber>1</sequenceNumber>
          <otherManager>
            <cik>0001423200</cik>
            <form13FFileNumber>028-17365</form13FFileNumber>
            <name>Yorktown VII CO LP</name>
          </otherManager>
        </otherManager2>
        <otherManager2>
          <sequenceNumber>2</sequenceNumber>
          <otherManager>
            <cik>0001423201</cik>
            <form13FFileNumber>028-17370</form13FFileNumber>
            <name>Yorktown VII Associates LLC</name>
          </otherManager>
        </otherManager2>
      </otherManagers2Info>
    </summaryPage>
  </formData>
</edgarSubmission>
