<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0206</schemaVersion>

    <documentType>3</documentType>

    <periodOfReport>2017-05-23</periodOfReport>

    <noSecuritiesOwned>0</noSecuritiesOwned>

    <issuer>
        <issuerCik>0000027093</issuerCik>
        <issuerName>DATARAM CORP</issuerName>
        <issuerTradingSymbol>DRAM</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001167113</rptOwnerCik>
            <rptOwnerName>RECTOR DAVID</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O DATARAM CORPORATION</rptOwnerStreet1>
            <rptOwnerStreet2>777 ALEXANDER ROAD, SUITE 100</rptOwnerStreet2>
            <rptOwnerCity>PRINCETON</rptOwnerCity>
            <rptOwnerState>NJ</rptOwnerState>
            <rptOwnerZipCode>08540</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>COO U.S. Gold Corp.</officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>41667</value>
                    <footnoteId id="F1"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">Represents shares of the Issuer's common stock issued to the Reporting Person in connection with the closing of the merger contemplated under the Agreement and Plan of Merger, as amended and restated, by and among the Issuer, Dataram Acquisition Sub, Inc., a Nevada corporation and wholly-owned subsidiary of the Issuer, U.S. Gold Corp., a Nevada corporation (&quot;USG&quot;) and Copper King LLC, the principal shareholder of USG.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ David Rector</signatureName>
        <signatureDate>2017-06-15</signatureDate>
    </ownerSignature>
</ownershipDocument>
