The answer to carrying on your property varies from state to state.
Others appear to have addressed Washington.
In California it is legal if it is not open to the public, but the courts have determined that unenclosed private property (like most driveways) is "public". If enclosed then it is entirely legal, even in the middle of the city. If it is an unfenced front yard or driveway then it is illegal.
Fortunately in one of the cases dealing with this did not rule against firearm owners. It was a case of a thug at a friends house with a gun in his waistband in a fenced yard in a bad part of LA (Watts I believe.) A passing cop saw the gun in his waistband, chased him from the yard into the house, and retrieved the gun and found cocaine on him.
The court ruled that since the person was in the enclosed area, (even though the fence was not closed I believe) it was not open nor intended to be open to the public, and possession of a loaded gun there was entirely legal, and so the officer had no probable cause leading to the search and arrest and all charges were thrown out.
Had the high court found an excuse to allow the charges to stick on the thug, all firearm owners in California very likely would have lost the ability to have loaded firearms on their property.
That is why it is important to base decisions on the law not the person being prosecuted. Putting one thug likely dealing cocaine and armed with a handgun sitting in an enclosed front yard behind bars would have cost all Californians their rights.
Courts cost citizens their rights all the time by finding an interpretation that allows for such charges to stand and create case law working against everyone, simple because the individual in the specific case was obviously a bad guy and deserved to be prosecuted.
What about confront a trespasser in your yard with a long gun?
While it may be technically legal to have the gun, technically legal does not equate to determined to have been legal when charged in a court of law.
You may say you had the gun for one reason, the prosecutor may say you took the gun to intimidate.
Plus trespassing is not even a serious crime, and is not a felony.
Even worse is if you are subsequently forced to shoot.
What may have been valid self defense becomes what a prosecutor says was you reacting to a crime by grabbing your gun and running out to punish the criminal with lethal force.
I have used the example many times, but you can find cases all around the country of people attempting to stop car thefts prosecuted for just that.
In such cases it is often even legal to perform a citizen's arrest of a car thief committing a felony, it is often legal to take a gun (but not use it either by firing or assaulting) and yet nobody can read your mind and know your intent was lawful.
The court alleges a different intent, the evidence is the same irregardless of the intent, and they don't take your word that your intent was legal and lawful.
The result is conviction and prison time for running out to stop criminals with your gun if you have to shoot, even if the criminal forces your hand by trying to attack you.
The media hears the case as one where someone angry about a property crime ran out and committed murder, and it won't be one highlighted on gun boards of someone defending themselves, because nobody knows that is what it was.
While in situations where the person does not have to shoot the outcome varies a lot more, in some places and situations the home owner is charged and in some they are not. So you may or may not be prosecuted if everything works out, and the person was committing a crime (but it better not be just trespassing.) You could get a pat on the back from the cops, or go to court for felony assault, all based on how your local police and your local DA choose to proceed.
The law is more complicated than "is it legal". What is technically legal may be alleged and successfully prosecuted as something illegal, and is all the time when they look like the same thing to a jury hearing different versions of what happened.
While actually taking your gun out specifically to scare off trespassers because it is intimidating, as some of your later posts show you would like yo be able to, is certainly felony assault. That is not even a gray area that could be interpreted as illegal, that is illegal.