He was running against Catherine Cresswell, who won York County by almost 100 votes; Jim Taylor; and Bob Curley.
The district's seat was left open when longtime Sen. Terry Punt, R-Franklin, said in January he will retire this year.
The district includes seven York County precincts as well as some precincts in other counties.
How the district voted
With 129 of 129 precincts, or 100 percent
Richard Alloway - 9,266 - 34 percent
Jim Taylor - 8,933 - 33 percent
Catherine Cresswell - 7,778 - 28 percent
Bob Curley - 1,379 - 5 percent
How the county voted
With 7 of 7 precincts, or 100%
Richard ALLOWAY II - 619 - 30.78%
Catherine A. CRESSWELL - 713 - 35.45%
Bob CURLEY - 101 - 5.02%
Jim TAYLOR - 577 - 28.69%