The Shooters, Fishers and Farmers Party has secured its first seat in lower house of the NSW Parliament after its candidate, Philip Donato, was declared victorious in the Orange byelection by just 50 votes.

The final result was decided on Monday, following a recount conducted at the request of the NSW Nationals on Friday night.

The final result saw a record 34 per cent swing against the Nationals on primary votes and a two-candidate-preferred swing of 21.8 per cent.

Orange is now held by the Shooters, Fishers and Farmers by just 0.1 per cent, making it the most marginal seat in NSW.