TRACKING
How SuperX calculates the dividend yield and P/E
The dividend yield is cash paid over twelve months divided by the price, worked out by SuperX. The P/E is the PSX data portal's figure moved to the current price.
By the SuperX team · Updated
SuperX works out the trailing dividend yield itself, as the cash dividends per share with an ex-date in the last 365 days divided by the share price, where PSX’s own notices confirm a dividend in that window. It does not work out the trailing price-to-earnings ratio (P/E): it takes the figure the PSX data portal files and moves it to the price the page shows. Both figures are trailing, which means they look back at the past twelve months and do not forecast.
How does SuperX calculate the dividend yield?
The yield has two steps.
- Dividends per share over twelve months. SuperX adds up every cash dividend whose ex-date falls in the last 365 days and is not in the future. PSX announces a dividend as a percentage of face value, so each payout is converted: percent of face value, divided by 100, multiplied by the face value of that company’s shares. Where SuperX has no verified face value it uses Rs 10.
- Divide by the price. That sum is divided by the share price, multiplied by 100 and rounded to two decimals.
A worked example, from the snapshot of 19 October 2026: OGDC’s five cash dividends with ex-dates in the previous 365 days were Rs 6.00, Rs 3.25, Rs 4.25, Rs 3.50 and Rs 5.00, which add up to Rs 22.00 a share. At the price of Rs 299.47, that is a yield of 7.35%. The payout table on each stock page lists the dividends, so you can add them yourself.
When does SuperX use the portal’s yield instead?
SuperX uses its own yield when PSX’s notices record a cash dividend for the company in the last twelve months, or when the portal filed no yield at all. Otherwise it shows the portal’s figure. The yield tile says which: a caption such as “Rs 22.00/sh last 12m ÷ Rs 299.47” marks SuperX’s own figure, and “as filed by PSX” marks the portal’s. In the API the field is dividend_yield_basis, with the values derived, derived:no-filed and filed.
SuperX chose one rule for every page because two rules gave two answers: the portal’s yield is often a fiscal-year or indicated figure, which answers a different question from “trailing”.
A yield of 0 means no cash dividend was paid in the last twelve months. A high yield can mean the price fell, so read the yield beside the payout history, and see dividend yield and yield on cost for the difference between two common measures.
How does SuperX calculate the P/E?
The P/E is the share price divided by earnings per share over the last twelve reported months. SuperX does not calculate the earnings side. It reads the portal’s trailing P/E and, when the portal’s reading was taken at a different price from the one SuperX serves, moves the P/E with the price:
P/E served = portal P/E × (price served ÷ price at the portal’s reading)
SuperX applies the opposite move to a filed yield, and the same move to a filed market capitalisation, because earnings and dividends per share do not change day to day. Where the portal files a P/E of 0, SuperX treats that as blank and shows no figure. On the snapshot of 19 October 2026, 342 of 721 pages had no P/E. A blank means no figure was available. It does not prove the company made a loss.
For sector medians, read P/E ratio on PSX by sector.
What are these figures not?
Neither figure predicts anything. A low P/E does not make a share cheap, and a high yield does not promise a payout. SuperX shows data and does not give investment advice. For where each input comes from, read where SuperX’s market data comes from, and to flag a figure that looks wrong, report it.