The Pentagon’s accelerating push to embed artificial intelligence across defense and national security operations has put a spotlight on a small group of pure-play federal AI vendors. With the U.S. Government’s AI Acceleration Strategy now driving real bookings, two NYSE-listed names trading well under $20 have moved from speculative bets to credible defense AI plays. Both are unprofitable, both are volatile, and both sit squarely in the path of a generational federal spend on disruptive defense tech.
With that in mind, here are two stocks trading under $20 that look positioned to benefit as Pentagon AI dollars flow.
C3.ai (NYSE: AI)
C3.ai (NYSE:AI | AI Price Prediction) is an enterprise AI software company supplying agentic and generative AI applications to large commercial customers and a growing roster of federal agencies, including the U.S. Air Force, Department of Energy, and NATO.
Shares began May up 8.15% over the past month but down 58.04% over the past year. For a retail investor, that single-digit handle reflects a deeply discounted business in transition rather than a quiet compounder.
The fundamentals are ugly in the near term. Q3 FY2026 revenue came in at $53.26 million, down 46.1% YoY, missing expectations by 29.59%, with non-GAAP EPS of -$0.40 and gross margin collapsing to 17%. Market cap sits near $1.30 billion, and the P/E is negative at -4.50.
The bull case rests on the federal mix. Federal, defense, and aerospace bookings rose 134% YoY in Q3 and now represent 55% of total bookings, with 90% of revenue recurring through subscriptions. A 26% workforce reduction is expected to deliver roughly $135 million in annual non-GAAP operating expense savings. CEO Stephen Ehikian told investors the company is now “a more agile, more disciplined, and more accountable organization” focused on a return to growth.
The risk that cuts against the thesis is real: cash burn is accelerating, with Q3 free cash flow of -$56.20 million, and securities class actions are pending over disclosure of the prior CEO’s health. For investors who can stomach that, AI stock offers leveraged exposure to federal AI spending at a beaten-down valuation.
BigBear.ai (NYSE: BBAI)
BigBear.ai (NYSE:BBAI) builds AI-powered decision intelligence software for national security, defense, border security, and travel and trade customers, with the U.S. government as its anchor client.
The stock has trended up 21.05% over the past month and 23.95% over the past year. At that price, it is accessible to small accounts but carries a beta of 3.236, so volatility is part of the package.
Q4 2025 revenue was $27.3 million, down 38% YoY, with EPS of -$0.01 and gross margin of 20.3%. Market cap is roughly $1.98 billion, and the analyst target price stands at $5.33.
The bull case is the balance sheet plus the pipeline. BigBear.ai raised $693 million through ATM facilities and warrants, converted $125 million in convertible notes to equity, cut debt by more than 90%, and finished 2025 with $462 million in total cash and investments. The $250 million Ask Sage acquisition added a generative AI platform serving 100,000+ users across 16,000 government teams, and backlog now exceeds $400 million. Management guided 2026 revenue to $135 million to $165 million. CEO Kevin McAleenan said the One Big Beautiful Bill brings “over $170 billion in supplemental funding to the Department of Homeland Security, and $150 billion to the Department of Defense for disruptive defense technology.”
The key risk is concentration. A material weakness in internal control over financial reporting, DOGE-related contract pressure, and reliance on federal customers all loom. Even so, BBAI looks like a direct play on the Pentagon AI thesis.
The Bottom Line
A low share price by itself is never a reason to buy or avoid a stock. Both AI and BBAI carry real execution, legal, and contract concentration risks that a $20 ceiling does not erase. Use this list as a starting point for research on federal AI exposure, then dig into the filings, guidance, and risk factors before committing capital.