How to Make a Homemade Railgun




Introduction: How to Make a Homemade Railgun

These are brief instructions on how to make a homemade railgun.
In order to make this project, it is necessary to work with high voltages, so don't even think about making a project like this unless you are familiar with electricity, especially capacitors.(ie. Don't blame me if you hurt yourself)

If you ask a question I'll try and answer it.

I made this for my science fair project in order to see how efficient I could make a railgun (not very). See this here:

If you want to see video of this its on youtube:

Step 1: Making the Actual Railgun

Ok, so this involves actually making the railgun. So, my one essentially consists of rails sandwiched between two sheets of perpex. The first photo shows this. You can see on the sides two extra sheets of perpex next to the aluminium rails. This was initially meant to make the railgun stronger, but in hindsight was unnecessary. 

I used 6x20mm aluminium, and 6mm perspex.

This top down photo shows the "fake" perspex rails on the right, and the aluminium rails on the left. If you don't get how this works, i'll explain it at the end.
The transition from the perspex rails to the aluminium rails needs to be smooth so sand it lightly.

There really needs to be a close tolerance of the projectile fitting inside the barrel. I had a bore of 6mm, which made it easy to use the 6mm aluminium as a spacer to make sure the gap was 6mm all the way down.

Step 2: Attaching the Cables

This is not the ideal way to attach the wires, as not the greatest surface area, but it is the easiest.

I used 25mm copper wire and some lugs.

Step 3: Injection System-1

I used some hose to connect my air injection system to the railgun, just to give myself some distance from it. I simply glued the hose to a piece of wood which is screwed on.

The mesh is there to stop the projectile falling into the hose.

Step 4: Injection System-2

Right, so the first picture shows the end of the pressure chamber where air compressor goes on. 
Just use a bike valve, drill a hole and just some glue.
Make sure the adhesive you use to secure the PVC endcaps is rated for pressure.

The other end is much harder. I used a 15-15mm nipple to connect the ball valve to the pressure chamber. It was quite difficult to make this seal airtight, so I used a layer of rubber on the inside with lots of cheap epoxy. Also make sure you use teflon tape to seal the threads. I just glued the hose in.

Step 5: Capacitor Bank (be Careful)

I used 4x3900mF caps rated to 450V. Connect them in parallel using either copper/aluminium busbar.

Step 6: Resistor/Bleeder Resistor

Here I just wired up two lightbulbs to a lightswitch each.

One of the was to put the charging circuit so I had a switch to start and stop charging, and so there was some resistance in the charging circuit.

The other one was also hooked up the capacitors to use as a bleeder resistor if anything went wrong (Lots of diagrams to come later).

Step 7: Projectile

I used a piece of 6mm aluminium as it fitted nicely. Just needs some light sanding so that it slides smoothly.

Step 8: Diagrams/Pictures of the Whole Thing

Well here is some stuff that I made for my science fair presentation if it helps anyone.
The board is there to work out velocities for my experiment (

1. Board with lines of masking tape in 10cm increments.
2. Perspex enclosure for rail gun
3. Aluminium rails
4. Perspex ‘fake’ rails
5. Voltmeter measuring voltage across the capacitors
6. PVC pressure chamber with ball valve
7. Foot pump with PSI gauge
8. Thick 25mm cables
9. 15.6mF capacitor bank
10. Variable power supply, 0-390V DC
11. Light bulb 1
12. Light bulb 2 (bleeder resistor)
13. Switch 1
14. Switch 2
15. 120fps camera
16. Aluminium projectile
17. Hose

Step 9: Quick Rundown

I also wrote this quick explanation for my science fair if anyone wants it:

How it works
The aluminium projectile is pushed down the barrel, in between the two fake Perspex rails (4). With the projectile in this position the railgun is circuit is not complete, allowing the capacitors to be charged.
The DC power supply (10) is connected to the capacitor banks. When the power supply is switched on, it places a voltage across the capacitors which the capacitors store. When the capacitors reach the desired voltage as measured by the voltmeter (5), switch 1 (13) is pressed to stop the charging.
The ball valve of the pressure chamber (6) is closed, and 20 psi is pumped into the chamber as measured by the pressure valve.
The camera (15) is made to begin recording at 120fps.
The ball valve is opened by hand as quickly as possible. Air flows through the hose (17), into the rail gun, which pushes the projectile forwards.
Eventually the projectile comes into contact with the conductive aluminium rails (3). At this point the circuit is complete, and the capacitors discharge. A large current passes through the rails, which should result in a force of the projectile (as explained in ‘Concept’).
Because the projectile passes in front of a board with 10cm increments on it (1), the velocity of the projectile can easily be determined by reviewing the high speed footage.
The purpose of lightbulb 2 (12) is as a bleeder resistor. In the event that the railgun misfires, and the capacitors are charged to a dangerous voltage, the capacitors can be safely discharged by pressing switch 2 (14). This allows the energy in the capacitors to be discharged through the lightbulb.
The air injection system (6) is required so that the projectile contacts the rails with some initial velocity. Otherwise, there is a significant chance that the projectile may be spot-welded to the rails.

Weekend Projects Contest

Participated in the
Weekend Projects Contest

Be the First to Share


    • Pocket-Sized Speed Challenge

      Pocket-Sized Speed Challenge
    • Audio Challenge 2020

      Audio Challenge 2020
    • Maps Challenge

      Maps Challenge

    18 Discussions


    Question 1 year ago on Step 1

    Do the rails have to be aluminum or can they be copper?

    25 years ago, I made a Rail Gun out of PVC PIPE that was barrel I held all my sections of bolts (Electro Magnets with relays)!!!

    I got so hyped knowing that they were making Guns Now,

    but upset also because I should have patented my idea but I imagine someone else was or had already made one too, 25 years ago..

    I could send steal projectiles through concrete blocks no problem !!!

    I never got to do more than a couple weeks of testing after my Mother found out..

    She got rid of it on me while I was at school because she felt it was too dangerous..:(

    But now I am collecting all my materials again at age 37, to make a really good one !!!

    I got plan's from a guy that built a "Sentry Gun" Which I am in the middle of building also !!!

    Hey maybe I will be able to combine my Railgun on to a Sentry Gun Platform !!!

    The hardest thing would be to design a perfect ammunition & way to load automatically & eventually rapidly if I can get the gun to be efficient enough to take quicker shots !!!

    Well Thanks for sharing !!!

    You can e-mail me at :,

    If you would like to talk more !!!

    Thanks Again !!



    Reply 1 year ago

    Pls make and/or link instructions for this, it sound very interesting but this comment is a little hard to read


    6 years ago on Step 5

    Where did you buy your capacitors?


    Reply 1 year ago

    Alibaba 4 life.


    Question 2 years ago on Step 9

    Do you have any circuit diagrams for how to make the charging circuit and the discharge circuit


    3 years ago

    why did you used multiple low capacitance high voltage caps instead of one high capacitance low voltage capacitor? is it because ohms law allows for a high current in the rails?


    Reply 3 years ago

    You need high voltage to get the raw energy required. Voltage is joules per coulomb, so if you have a high capacitance but low voltage, you end up with far less energy than a lower capacitance with much higher voltage. I've been using this as a guideline for how much energy my bank has.


    3 years ago

    I know that this was posted a long time ago, but just in case you'll answer i'll ask anyways: could you elaborate on your charging circuit? Or maybe could someone point me to someone else who goes into detail about a 400v charging circuit? I've figured out everything but that piece.


    4 years ago

    How fast does it fire in m/s?


    4 years ago on Introduction

    sorry im not sure how to ask questions on this site but it seems to be the place with people in the know.

    i have several thousand dollars and a few months on my hands. i want a railgun. i dont mean the weak ones everyone else has. i want one that

    rivals a rifle in speed and could do some seriious damage. could anyone point me to what parts to order from online?

    or any tips to wiring and assembly? i have friends with cnc equipment and plenty of spare metal so it's not an issue, i just need some basic instructions

    on how to get started and what speeds would be possible. if i have to incoporate a backpack too that's fine. i just want to put solid proof out there

    that it's possible with todays tech. thank you.


    5 years ago on Introduction

    Would extending the length of the rails be any benefit? or do the capacitors have enough time to fully discharge at this length?


    6 years ago on Introduction

    This is a great instructable. There are lots of railgun tutorials, but you answered some of the questions I had. Everything was very clearly explained.


    Reply 6 years ago on Introduction

    How does it work? Does it accelerate faster than on air pressure alone?


    Reply 6 years ago on Introduction

    Thanks! It works because of the Lorentz force- current in a magnetic field experiences a force. My experiment was to find if there was any acceleration. Although it managed to accelerate some sparks quite quickly, it did not accelerate my aluminium projectile at all. I think this is simply because I didn't generate a large enough current. I made a video about my experiment which is on youtube by the way :)


    Reply 5 years ago on Introduction

    Awesome !!!

    The one I built years ago was strickly electronic !!!

    But this idea of using air is definatly a good idea also !!!

    Especialy if you set it up to use Paintball Gun Tanks !!!!

    Thanks 4 Sharing Again !!!