Quote History Quoted:So 2 people say an inch and one person says 1/2 inch? Clear as mud
View Quote
Technically both are right, depending what exactly you're trying to measure. Here's a generic image that may help:
To get "A", Subtract one inch from advertised length. This would tell you the longest rail you could have that ends at the shoulder on the barrel's muzzle and leaves the threads exposed.
To get "B", Subtract half an inch from advertised length. This would tell you the longest rail that would completely cover the barrel, including threads.
Distance "C" is one inch, and more literally answers your initial question of how much of the barrel is "in the receiver". but this includes the threaded area of the receiver that extends out past the end of the receiver's rail, and thus the "half inch discrepancy" depends on what you call the "front of the receiver", is it the end of the threads or the end of the upper rail?