Is investing in stocks haram?
Question 1098
Question
Is it permissible for a Muslim to buy shares and invest in the stock market, and how can you tell which stocks are halal?
Summary of answer
Investing in stocks is halal. A share is part-ownership of a real business, and Allah has made trade lawful (2:275). The scholars ask that the company's main business be lawful, that its interest-bearing debt and impure income stay small (AAOIFI Standard 21 sets 30% and 5%), and that the investor give away the small impure portion of the return. Long-term investing in screened companies or funds is a sound way to grow and protect wealth.
﴿وَأَحَلَّ ٱللَّهُ ٱلۡبَيۡعَ وَحَرَّمَ ٱلرِّبَوٰاْۚ﴾
Allah has made trade lawful and forbidden usury.
Answer
الحمد لله Praise be to Allah.

Buying a share means buying a small part of a real business: its shops, factories, software, and the work of its people. Islamic law has always welcomed this kind of ownership. Investing in stocks is halal when the company’s main business is lawful, and the stronger view (al-rājiḥ) among contemporary scholars allows it even when a lawful company keeps a small amount of interest on its books, provided the investor purifies that part of the return. Long-term investing in screened companies is one of the cleanest ways a Muslim can save for a family, a home, or old age.
Is the stock market haram or halal?
The Quran draws its line between trade, which Allah made lawful, and usury (ribā), which He forbade. It also sets the condition for every lawful transaction: mutual consent and a fair exchange.
لَا تَأۡكُلُوٓاْ أَمۡوَٰلَكُم بَيۡنَكُم بِٱلۡبَٰطِلِ إِلَّآ أَن تَكُونَ تِجَٰرَةً عَن تَرَاضٖ مِّنكُمۡۚ
“Do not consume one another’s wealth unjustly; trade instead, by mutual consent among you.”
A shareholder is a partner. The jurists of every school wrote long chapters on partnership (sharika) and on the silent partnership in which one side supplies capital and the other supplies work (muḍāraba). The Prophet ﷺ himself traded with the capital of Khadija (may Allah be pleased with her) before his prophethood, and the two shared in the profit. A share in a modern company follows the same logic: the owner shares in profit and loss and is never promised a fixed return on money lent. The International Islamic Fiqh Academy affirmed in its 1992 session in Jeddah (resolution 63) that founding a joint-stock company with lawful purposes is lawful, and scholars such as ʿAli al-Khafif, Wahba al-Zuhayli, and Muhammad Taqi Usmani have permitted buying such shares.
How do you know if a stock is halal?
Scholars and Islamic index providers screen companies in two steps.
The business screen
The company’s core business must be lawful. That excludes alcohol, pork, gambling, pornography, and conventional interest-based banking and insurance. Many Muslim investors also leave out tobacco and weapons, in keeping with the objectives of the sharia (maqāṣid al-sharīʿa), which protect life and health.
The financial screen
Most large companies borrow and hold cash in ordinary banks. The Accounting and Auditing Organization for Islamic Financial Institutions (AAOIFI) set limits in its Shari’a Standard No. 21 (2004):
- interest-bearing debt below 30% of the company’s market value;
- interest-bearing deposits below 30% of its market value;
- income from impermissible sources below 5% of total income.
The Dow Jones Islamic Market Index, launched in 1999, brought Shariah screening to the world’s markets, and today screened index funds, ETFs, and screening apps make the work easy for an ordinary saver.
Why can a company with a little interest still be halal?
The scholars differed (ikhtalafa al-ʿulamāʾ) on companies whose business is lawful and whose finances touch interest at the edges. The Fiqh Academy’s resolution took prohibition as the default for such companies. AAOIFI, the Fiqh Council of North America, and most Shariah boards today permit them within the limits above. Their reasoning rests on established principles: a small amount mixed into a large lawful whole takes the ruling of the whole, the shareholder does not direct the company’s borrowing, and a rule that kept Muslims out of nearly every listed company would cause the hardship the sharia lifts. The second view is the stronger one, because it keeps Muslim savings in lawful enterprise while still keeping the investor’s own hands clean through purification.
How do you purify stock income?
Purification (taṭhīr) means giving away the part of your return that came from impermissible income. If a company earned 2% of its income from interest, then 2% of the dividend attributable to your shares goes to charity, with no expectation of reward for it. AAOIFI places the duty on whoever holds the share when the financial period closes; the Fiqh Council of North America prorates it by the days you held the share. Screened funds and apps usually calculate the figure for you.
Is trading stocks haram?
Buying and selling real shares, even often, is a form of trade. Some modern instruments raise sharper questions. The Fiqh Academy ruled options contracts impermissible and forbade selling shares one does not own, which covers most short selling, and many scholars treat margin loans as interest-bearing debt. Frequent trading with borrowed money can also drift toward the gambling (maysir) the Quran forbids. These questions are covered in Is day trading or options trading haram? and Is gambling or the lottery haram?. For other modern assets see Is crypto haram?.
Do you pay zakat on stocks?
Yes. Shares count toward your zakatable wealth. A long-term investor may pay on the share of the company’s zakatable assets behind each share, or, more easily, on the market value of the holding, while an active trader pays 2.5% of the market value. The details are in How does zakat work?.
Investing as an act of worship
Islamic law asks the investor to be truthful and generous as well as careful. The Prophet ﷺ prayed for the merchant who deals gently:
«رَحِمَ اللَّهُ رَجُلاً سَمْحًا إِذَا بَاعَ، وَإِذَا اشْتَرَى، وَإِذَا اقْتَضَى»
“May Allah have mercy on a man who is generous when he sells, when he buys, and when he asks for what he is owed.”
He also said that when buyer and seller are truthful and clear, their sale is blessed, and when they hide and lie, its blessing is erased (Sahih al-Bukhari 2079). Choose companies that treat workers fairly and care for the earth, keep away from interest-bearing debt in your own life where you can (Is bank interest haram?), and let your savings serve your family and the poor.
After the Friday prayer, the Quran tells the believers to go out and seek the bounty of Allah:
فَإِذَا قُضِيَتِ ٱلصَّلَوٰةُ فَٱنتَشِرُواْ فِي ٱلۡأَرۡضِ وَٱبۡتَغُواْ مِن فَضۡلِ ٱللَّهِ وَٱذۡكُرُواْ ٱللَّهَ كَثِيرٗا لَّعَلَّكُمۡ تُفۡلِحُونَ
“When the prayer is over, spread out through the land and seek the bounty of Allah, and remember Allah often, so that you may prosper.”
May Allah bless what you earn, make it a means of good for those you love, and keep your heart attached to Him more than to any market.
And Allah knows best. والله أعلم
Frequently asked questions
Is investing in an S&P 500 index fund halal?
A broad index fund also holds banks, brewers, and casino companies, so most scholars advise a Shariah-screened fund instead. Screened versions of the major indices keep only the companies that pass the business and financial tests.
Do I have to purify my dividends and capital gains?
Give away the share of income that came from impermissible sources, usually a small percentage that a screened fund or a screening app reports. That amount goes to charity and is not counted as your own sadaqa.
What does Hanafi fiqh say about stocks?
Hanafi scholars such as Muhammad Taqi Usmani permit buying shares in companies whose main business is lawful, provided the investor purifies the part of the dividend that came from interest. The other Sunni schools follow the same approach.
What is the Shia view on investing in stocks?
Jaʿfari jurists also permit investing in companies that do not sell alcohol or other forbidden goods and do not deal in interest. The same screens serve Shia investors well.
Related questions
Sources
- AAOIFI, Shari'a Standard No. 21: Financial Paper (Shares and Bonds), 2004
- International Islamic Fiqh Academy, Resolution 63 (1/7) on Financial Markets, Jeddah, 1992
- Fiqh Council of North America, Investing in Stocks
- Sahih al-Bukhari 2076, 2079
- Muhammad Taqi Usmani, An Introduction to Islamic Finance
Image: Marsupium, The complex of Sultan Qalawun, Cairo, 2024. CC BY 4.0, via Wikimedia Commons.. Image credits