What is marked on your barrel? Is it marked 5.56 Nato? If so the answer is yes you can shoot both.
From Wikipedia:
5.56 mm NATO versus .223 Remington[edit source]
The 5.56 mm NATO and .223 Remington cartridges and chamberings are similar but not identical.[36] While the cartridges are identical other than powder load, the chamber leade, i.e. the area where the rifling begins, is cut to a sharper angle on some .223 commercial chambers. Because of this, a cartridge loaded to generate 5.56mm pressures in a 5.56mm chamber may develop pressures that exceed SAAMI limits when fired from a short-leade .223 Remington chamber.
Brass casing[edit source]
The dimensional specifications of 5.56 NATO and .223 commercial brass casings are identical. The cases tend to have similar case capacity when measured, with variations chiefly due to brand, not 5.56 vs .223 designation. The result of this is that there is no such thing as "5.56 brass" or ".223 brass", the differences in the cartridges lie in pressure ratings and in chamber leade length, not in the shape or thickness of the brass.[37][38]
Pressure[edit source]
C.I.P. defines the maximum service and proof test pressures of the .223 Remington cartridge equal to the 5.56 mm NATO, at 430 MPa (62,366 psi). This differs from the SAAMI maximum pressure specification for .223 Remington of 380 MPa (55,114 psi), due to CIP test protocols measuring pressure using a drilled case, rather than an intact case with a conformal piston, along with other differences.[39] NATO uses CIP pressure test protocols for their small arms ammunition specifications.
Because of these differences in methodology, the CIP pressure of 430 MPa (62,366 psi) is the same as a SAAMI pressure of 380 MPa (55,114 psi), which is reflected in US Military specifications for 5.56 mm NATO, which call for a mean maximum pressure of 55,000 PSI (when measured using a protocol similar to SAAMI).[40]
These pressures are generated and measured using a chamber cut to 5.56 NATO specifications, including the longer leade. Firing 5.56mm NATO from a chamber with a shorter .223 Remington leade can generate pressures in excess of SAAMI maximums.
Chamber[edit source]
The 5.56 mm NATO chambering, known as a NATO or mil-spec chamber, has a longer leade, which is the distance between the mouth of the cartridge and the point at which the rifling engages the bullet. The .223 Remington chambering, known as SAAMI chamber, is allowed to have a shorter leade, and is only required to be proof tested to the lower SAAMI chamber pressure. To address these issues, various proprietary chambers exist, such as the Wylde chamber (Rock River Arms)[41] or the ArmaLite chamber, which are designed to handle both 5.56×45mm NATO and .223 Remington equally well. The dimensions and leade of the .223 Remington minimum C.I.P. chamber also differ from the 5.56 mm NATO chamber specification.
Using commercial .223 Remington cartridges in a 5.56 mm NATO chambered rifle should work reliably, but until recently, it was believed this was less accurate than when fired from a .223 Remington chambered gun due to the longer leade.[42] Although that may have been true in the early 1960s when the two rounds were developed, recent testing has shown that with today's ammunition, rifles chambered in 5.56mm can also fire .223 ammunition every bit as accurately as rifles chambered in .223 Remington, and the 5.56mm chamber has the additional advantage of being able to safely fire both calibers.[43] Using 5.56 mm NATO mil-spec cartridges (such as the M855) in a .223 Remington chambered rifle can lead to excessive wear and stress on the rifle and even be unsafe, and SAAMI recommends against the practice.[44][45] Some commercial rifles marked as ".223 Remington" are in fact suited for 5.56 mm NATO, such as many commercial AR-15 variants and the Ruger Mini-14 (marked ".223 cal"), but the manufacturer should always be consulted to verify that this is acceptable before attempting it, and signs of excessive pressure (such as flattening or gas staining of the primers) should be looked for in the initial testing with 5.56 mm NATO ammunition.[46]
It should also be noted that the upper receiver (to which the barrel with its chamber are attached) and the lower receiver are entirely separate parts in AR-15 style rifles. If the lower receiver has either .223 or 5.56 stamped on it, it does not guarantee the upper assembly is rated for the same caliber, because the upper and the lower receiver in the same rifle can, and frequently do, come from different manufacturers – particularly with rifles sold to civilians or second-hand rifles.
In more practical terms, as of 2010 most AR-15 parts suppliers engineer their complete upper assemblies (not to be confused with stripped uppers where the barrel is not included) to support both calibers in order to satisfy market demand and prevent any potential problems.