NEW YORK (CNNMoney.com) -- Oil prices showed modest gains Tuesday as the latest news on the housing market helped bolster the stock market and boosted demand for oil.
What prices are doing: Crude for May delivery closed up 31 cents to $81.91 a barrel.
What's moving the market: Prices inched higher after a report on existing home sales helped push the stock market to new 18-month highs.
The National Association of Realtors said sales of existing homes slipped in February on a month-over-month basis. The decline wasn't as bad as economists had anticipated, helping lift sentiment.
That helped push the Dow Jones industrial average (INDU) higher in late-afternoon trading.
But gains were muted by continued uncertainty over Greece's debt woes, pushing the dollar higher against the euro. A stronger dollar makes crude, which is priced in the greenback, more expensive for foreign investors. This, in turn, puts downward pressure on demand and prices.
What analysts are saying: Despite steady upticks in the stock market, worries about global economic growth will continue to undercut support for oil in the near term, analysts say.
"We're going to be stuck in this $78 to $82 a barrel trading range for the next couple months until the market sees some definitive news on the economy," said Gianna Bern, president of Brookshire Advisory and Research, Inc.
And traders remain unwilling to place big bets ahead of a weekly inventory report from the U.S. Department of Energy due out Wednesday.
According to research firm Platts, crude inventories are expected to have risen by 1.67 million barrels last week, which implies lower demand. After several weeks of builds in inventory, another will be "bearish for the markets," said Bern.
Looking ahead: Although crude inventories are a major concern for investors looking for growing demand, many analysts are keeping a close watch on gasoline prices, which are up 45% from last March and still rising.
"Gasoline has been going gang busters. We're experiencing an earlier than normal ramp up in prices," said Bern. Higher gas prices could put pressure on consumer spending and stifle the economic recovery.
The national average price for a gallon of regular unleaded gasoline fell to $2.816, essentially flat compared to the previous day's price of $2.820, according to motorist group AAA.
Still prices are below the record high of $4.114 a gallon that AAA reported on July 17, 2008.
|Overnight Avg Rate||Latest||Change||Last Week|
|30 yr fixed||3.83%||3.80%|
|15 yr fixed||3.16%||3.14%|
|30 yr refi||3.79%||3.79%|
|15 yr refi||3.14%||3.13%|
Today's featured rates:
More than 5% of DACA recipients have started their own businesses since enrolling the program, according to a recent survey. More
Employers of some of the country's lowest paid workers are stealing billions from their paychecks -- and federal and state law enforcement agencies have only been able to recover a fraction of those lost wages. More
NIO is turning heads with its new 7-seater electric SUV, which costs nearly 50% less than Tesla's Model X in China. More
In 1998, Ntsiki Biyela won a scholarship to study wine making. Now she's about to launch her own brand. More
Homeowners would be able to deduct interest on the first $750,000 of a new mortgage under the final tax bill -- down from the current $1 million threshold. More