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

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2024-06-05</periodOfReport>

    <issuer>
        <issuerCik>0000798783</issuerCik>
        <issuerName>UNIVERSAL HEALTH REALTY INCOME TRUST</issuerName>
        <issuerTradingSymbol>UHT</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001956479</rptOwnerCik>
            <rptOwnerName>Guzman Rebecca A</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>1201 NORTH MARKET STREET</rptOwnerStreet1>
            <rptOwnerStreet2>SUITE 501</rptOwnerStreet2>
            <rptOwnerCity>WILMINGTON</rptOwnerCity>
            <rptOwnerState>DE</rptOwnerState>
            <rptOwnerZipCode>19801</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Shares Of Beneficial Interest</value>
            </securityTitle>
            <transactionDate>
                <value>2024-06-05</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness></transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>785</value>
                    <footnoteId id="F1"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>1656</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">These restricted shares of beneficial interest were granted pursuant to the Amended and Restated Universal Health Realty Income Trust 2007 Restricted Stock Plan and shall vest on the second anniversary of the grant date.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Charles F. Boyle, attorney-in-fact for Ms. Guzman</signatureName>
        <signatureDate>2024-06-06</signatureDate>
    </ownerSignature>
</ownershipDocument>
